Linux Server + Plesk = Already in use?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Sinkist
Posts: 9
Joined: 02 May 2017, 12:56

Linux Server + Plesk = Already in use?

Postby Sinkist » 20 May 2017, 12:11

Hi,
im trying to start sfs on my linux v-server. When i run ./sfs2x.sh i get this:

root@abcdefg:/home/sfs/SFS2X# ./sfs2x.sh
11:59:24,166 INFO [main] v2.SmartFoxServer - Boot sequence starts...
11:59:24,555 INFO [main] core.SFSEventManager - AnonymousService-1 initialized
11:59:24,575 INFO [main] impl.DefaultFileReplicator - Using "/tmp/vfs_cache" as temporary files store.
11:59:24,627 INFO [main] v2.SmartFoxServer - License loaded:

==========================================
LICENSE DETAILS
------------------------------------------
Type : Community Edition
Max users : 100
==========================================

11:59:24,628 INFO [main] managers.SFSBannedUserStorage - BanUserStorage initialized
11:59:24,637 INFO [main] managers.SFSBannedUserManager - BanUser data loaded: 0 records.
11:59:24,642 INFO [main] v2.SmartFoxServer - Protocol Type is: BINARY
11:59:24,644 INFO [main] config.DefaultConfigLoader - Loading: zones/BasicExamples.zone.xml
11:59:24,667 INFO [main] managers.SFSZoneManager -

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
>> Zone: BasicExamples
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

11:59:24,691 INFO [main] managers.SFSRoomManager - Room created: { Zone: BasicExamples }, [ Room: The Lobby, Id: 0, Group: default, isGame: false ], type = SFSRoom
11:59:24,697 INFO [main] managers.SFSRoomManager - Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 1, Group: default, isGame: false ], type = SFSRoom
11:59:24,740 INFO [main] core.AdminToolService - AdminTool Service started
11:59:24,780 INFO [SFSWorker:Sys:1] v2.SmartFoxServer - Listening Sockets: { 0.0.0.0:9933, (Tcp) } { 127.0.0.1:9933, (Udp) }
11:59:24,780 INFO [SFSWorker:Sys:1] v2.SmartFoxServer -
_____ _____ _____ ___ __ __
| __| __| __| |_ | | |
|__ | __|__ | | _|- -|
|_____|__| |_____| |___|__|__|
_____ _____ _____ ____ __ __
| __ | __| _ | \| | |
| -| __| | | |_ _|
|__|__|_____|__|__|____/ |_|
[ 2.13.0 ]

11:59:24,780 INFO [SFSWorker:Sys:1] v2.SmartFoxServer - SmartFoxServer 2X (2.13.0) READY!
11:59:25,550 INFO [main] v3.SessionFilter - BlueBox-2X Service (3.1.0) READY.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:214)
at org.eclipse.jetty.start.Main.start(Main.java:457)
at org.eclipse.jetty.start.Main.main(Main.java:75)
at com.smartfoxserver.v2.http.JettyServer.start(JettyServer.java:35)
at com.smartfoxserver.v2.SmartFoxServer.start(SmartFoxServer.java:321)
at com.smartfoxserver.v2.Main.main(Main.java:14)
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:317)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:235)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:390)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1510)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1435)
... 10 more

Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information
11:59:25,920 INFO [Thread-0] managers.SFSZoneManager - BuddyList saveAll...
11:59:25,921 WARN [SFS2X ShutdownHook] core.SFSShutdownHook - SFS2X is shutting down. The process may take a few seconds...
11:59:25,922 INFO [Thread-1] managers.SFSBannedUserManager - BanUser data saved.

I think plesk is blocking some ports because on my previous linux setup without plesk it works out of the box.

I tryed already to change port 8080 to 8090 as i found here: http://www.smartfoxserver.com/forums/viewtopic.php?t=18186.
It doesnt helped.

My process list:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 37380 3960 ? Ss 00:55 0:01 init -z
root 2 0.0 0.0 0 0 ? S 00:55 0:00 [kthreadd/269231]
root 3 0.0 0.0 0 0 ? S 00:55 0:00 \_ [khelper/2692311]
root 4 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 5 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 6 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 7 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 8 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 9 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 10 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 11 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 12 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 13 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 14 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 15 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 16 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 17 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 18 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 19 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 20 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 21 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 22 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 23 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 24 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 25 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 26 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 27 0.0 0.0 0 0 ? S 00:55 0:00 \_ [rpciod/2692311/]
root 28 0.0 0.0 0 0 ? S 00:55 0:00 \_ [nfsiod/2692311]
root 88 0.0 0.0 35220 5132 ? Ss 00:55 0:00 /lib/systemd/systemd-journald
root 98 0.0 0.0 41632 1788 ? Ss 00:55 0:00 /lib/systemd/systemd-udevd
syslog 286 0.0 0.0 184632 1992 ? Ssl 00:55 0:00 /usr/sbin/rsyslogd -n
root 288 0.0 0.0 29200 1428 ? Ss 00:55 0:00 /usr/sbin/cron -f
root 384 0.0 0.0 65464 3296 ? Ss 00:55 0:00 /usr/sbin/sshd -D
root 3914 0.0 0.0 103024 4464 ? Ss 13:26 0:00 \_ sshd: root@pts/0
root 3923 0.0 0.0 22768 3772 pts/0 Ss+ 13:26 0:00 | \_ -bash
root 4400 0.0 0.0 66808 3288 ? Ss 14:16 0:00 \_ sshd: [accepted]
sshd 4401 0.0 0.0 66808 1428 ? S 14:16 0:00 \_ sshd: [net]
root 388 0.0 0.2 425116 34380 ? Ss 00:55 0:00 sw-engine-fpm: master process (/etc/sw-engine/sw-engine-fpm.conf)
postfix 404 0.0 0.0 411204 1272 ? Ssl 00:55 0:00 /usr/lib/plesk-9.0/psa-pc-remote -p inet:12768@127.0.0.1 -t 7210 -P /run/psa-pc-remote.pid -u postfix -g popuser -n
mysql 422 0.0 1.2 1499064 157472 ? Ssl 00:55 0:17 /usr/sbin/mysqld
root 426 0.0 0.0 18208 1352 ? Ss 00:55 0:00 /usr/sbin/dovecot
dovecot 516 0.0 0.0 9572 1096 ? S 00:55 0:00 \_ dovecot/anvil
root 518 0.0 0.0 9704 1316 ? S 00:55 0:00 \_ dovecot/log
root 3360 0.0 0.0 34196 2688 ? S 11:28 0:00 \_ dovecot/auth
root 3364 0.0 0.0 9568 1012 ? S 11:28 0:00 \_ dovecot/ssl-params
root 443 0.0 0.0 38308 1560 ? Ss 00:55 0:00 sw-cp-server: master process /usr/sbin/sw-cp-serverd -c /etc/sw-cp-server/config
sw-cp-s+ 445 0.0 0.0 39336 3664 ? S 00:55 0:00 \_ sw-cp-server: worker process
root 470 0.0 0.1 368116 22308 ? Ss 00:55 0:01 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
www-data 532 0.0 0.0 368116 4932 ? S 00:55 0:00 \_ php-fpm: pool www
www-data 535 0.0 0.0 368116 4932 ? S 00:55 0:00 \_ php-fpm: pool www
psaadm 506 0.0 0.0 244580 7752 ? S 00:55 0:00 sw-engine-kv
root 515 0.0 0.0 15000 968 ? Ss 00:55 0:00 /usr/sbin/xinetd -pidfile /run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root 556 0.0 0.0 12788 888 tty2 Ss+ 00:55 0:00 /sbin/agetty --noclear tty2 linux
root 557 0.0 0.0 15948 944 tty1 Ss+ 00:55 0:00 /sbin/agetty --noclear --keep-baud console 115200 38400 9600 vt220
root 563 0.0 0.0 114184 5720 ? Ss 00:55 0:01 /usr/sbin/apache2 -k start
www-data 566 0.0 0.0 113420 2456 ? S 00:55 0:00 \_ /usr/sbin/apache2 -k start
www-data 567 0.0 0.0 2097560 9584 ? Sl 00:55 0:05 \_ /usr/sbin/apache2 -k start
www-data 568 0.0 0.0 2031904 8464 ? Sl 00:55 0:04 \_ /usr/sbin/apache2 -k start
root 815 0.0 0.0 65352 2676 ? Ss 00:55 0:03 /usr/lib/postfix/sbin/master
postfix 821 0.0 0.0 67468 2596 ? S 00:55 0:02 \_ qmgr -l -t fifo -u
postfix 1190 0.0 0.0 80648 3988 ? S 01:02 0:00 \_ tlsmgr -l -t unix -u -c
postfix 4399 0.0 0.0 67420 2552 ? S 14:15 0:00 \_ pickup -l -t fifo -u -c


I think there is no second instance of sfs.
Pleas help, im working for hours now on this :(
regards.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Linux Server + Plesk = Already in use?

Postby Lapo » 20 May 2017, 16:52

Hi,
SFS2X uses the following ports by default: 9933, 8080 and 8443.
Make sure you don't have other services using those same ports.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Sinkist
Posts: 9
Joined: 02 May 2017, 12:56

Re: Linux Server + Plesk = Already in use?

Postby Sinkist » 20 May 2017, 22:37

Ok, 8443 was the fool, blocked by plesk. I changed the port in the corrosponding sfs .xml.

Fixed.
God save ur life.
Cleophus
Posts: 1
Joined: 29 Jun 2019, 12:12

Re: Linux Server + Plesk = Already in use?

Postby Cleophus » 01 Jul 2019, 11:57

Hi,

I think I hace the same problem.

What is the "corrosponding sfs .xml"? I have changed ssl.ini and commented jetty.secure.port=8443, but nothing changes.

Can you help me? Thanks
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Linux Server + Plesk = Already in use?

Postby Lapo » 01 Jul 2019, 14:08

If your server already runs an HTTP server (such as Apache) there can be conflicts with SmartFoxServer's own http server.

SFS2X uses the following ports by default:
TCP 9933
TCP 8080 (http)
TCP 8443 (https)

Make sure these porta are not already in use.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 55 guests