Could not update patch 2.13.8

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

Moderators: Lapo, Bax

Post Reply
balamost
Posts: 14
Joined: 08 May 2017, 10:29

Could not update patch 2.13.8

Post by balamost »

Hi Lapo,

I am using SFS2X version 2.13.0
now I update using this patch 2.13.8 get from there: https://www.smartfoxserver.com/download#p=updates
After copy this zip file, unzip to "SmartFoxServer_2X" folder and run install-linux.sh
I got this error:
[linuxroot@sg1n-j-sf09] # sudo ./install-linux.sh
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/linuxroot/SmartFoxServer_2X/jre/lib/amd64/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1668)
at java.awt.Component.<clinit>(Component.java:593)
at gotoandplay.utils.patcher.Patcher.main(Patcher.java:44)


Please help check
Thanks
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not update patch 2.13.8

Post by Lapo »

Hi,
a couple of questions:
1) What linux distro is the server running on?
2) Is it possibile you've replaced the original Java Runtime?

You can check with JRE you're using by checking the log files, in SFS2X/logs/boot/boot.log

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
balamost
Posts: 14
Joined: 08 May 2017, 10:29

Re: Could not update patch 2.13.8

Post by balamost »

Hi Lapo,

1. "Ubuntu 22.04.5 LTS"
2. I have not replaced the original Java Runtime. But I already ran another update path for 2.13 before, maybe it changed JRE
This is "jre" folder I using:
https://drive.google.com/file/d/1TAMJHy ... sp=sharing

Thanks alot!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not update patch 2.13.8

Post by Lapo »

We cannot reproduce the issue.
Our test was run on a slightly more recent version of Ubuntu, but it doesn't matter.

2. I have not replaced the original Java Runtime. But I already ran another update path for 2.13 before, maybe it changed JRE

None of our updates modify or change the JRE.

I would recommend the following:
- download and install a fresh copy of SFS2X 2.13 in a different location on your drive
- apply the latest patch

If this works, migrate your settings from the old installation to the new.
Here's a comprehensive list of files/settings you may need to migrate: https://docs2x.smartfoxserver.com/Getti ... /migration

Let us know
Lapo
--
gotoAndPlay()
...addicted to flash games
balamost
Posts: 14
Joined: 08 May 2017, 10:29

Re: Could not update patch 2.13.8

Post by balamost »

Hi Lapo,

Please give me link to download SFS2X 2.13
The webpage currenly have newest version

Thanks
balamost
Posts: 14
Joined: 08 May 2017, 10:29

Re: Could not update patch 2.13.8

Post by balamost »

Hi Lapo,

I have resolved this issue.

The solution was to add the parameter -Djava.awt.headless=true to the install-linux.sh script.

Please feel free to close this topic.

Thank you for your support!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not update patch 2.13.8

Post by Lapo »

Thanks for update.
Still not sure why that was needed, but I am glad it worked for you.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
vukasin0107
Posts: 3
Joined: 09 Jan 2025, 14:26

Re: Could not update patch 2.13.8

Post by vukasin0107 »

Hello Lapo,

I was able to successfully run patcher.jar output of patch command was successful:

[INFO]: *******************************
[INFO]: SFS2XPatcher
[INFO]: ver 1.2.2
[INFO]: (c) gotoAndPlay 2012-2025
[INFO]: *******************************
[INFO]: SFS2X 2.13.8 Patch Installer
[INFO]: Working... 14 task(s) left...
[INFO]: Working... 13 task(s) left...
[INFO]: Working... 12 task(s) left...
[INFO]: Working... 11 task(s) left...
[INFO]: Working... 10 task(s) left...
[INFO]: Working... 9 task(s) left...
[INFO]: Working... 8 task(s) left...
[INFO]: Working... 7 task(s) left...
[INFO]: Working... 6 task(s) left...
[INFO]: Working... 5 task(s) left...
[INFO]: Working... 4 task(s) left...
[INFO]: Working... 3 task(s) left...
[INFO]: Working... 2 task(s) left...
[INFO]: Working... 1 task(s) left...
[INFO]: Patch installation SUCCESS!
[INFO]: You can now start the Server.

However, I'm wondering how can I be sure that patched version of the server is started.
I can't seem to find any log or information that I'm really running 2.13.8 and not 2.13 version.

Can help me with this? And bear in mind that I don't have admintool portal.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not update patch 2.13.8

Post by Lapo »

Once the patch is applied, you can start up the server and check the logs (under SFS2X/logs)
You will find a message with the version of the server, such as this:

Code: Select all

17:09:39,182 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - SmartFoxServer 2X (2.19.3) READY!

(in your case it should say 2.13.8 )

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
vukasin0107
Posts: 3
Joined: 09 Jan 2025, 14:26

Re: Could not update patch 2.13.8

Post by vukasin0107 »

Hi Lapo, thank you for quick response!

I would expect that version can be seen in logs, but I went through every log file and there is no such information in my logs

Code: Select all

# ls -lo logs/
total 680
-rw-r--r-- 1 root      0 Jan 10 03:13 bi.log
drwxr-xr-x 2 root     22 Jan 10 03:13 boot
-rw-r--r-- 1 root  23953 Jan 10 03:14 boot.log
-rw-r--r-- 1 root 197184 Jan 10 11:01 gcdata.log.0.current
drwxrwxrwx 2 root     36 Jan 10 03:14 http
-rw-r--r-- 1 root 342744 Jan 10 11:02 smartfox.log
-rw-r--r-- 1 root      0 Jan 10 03:13 transfer.log


Perhaps there is some sort of detailed logging option that is not enabled on my side and maybe you can tell me more about it?
Or there is some other way to retrieve this information?

Any help would be much appreciated. Thanks
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not update patch 2.13.8

Post by Lapo »

The version number is printed out to the logs twice (logs/smartfox.log) when the boot is complete:
Check the screenshot below
Screenshot 2025-01-10 alle 12.47.25.png
version
(138.59 KiB) Not downloaded yet


Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
vukasin0107
Posts: 3
Joined: 09 Jan 2025, 14:26

Re: Could not update patch 2.13.8

Post by vukasin0107 »

Only when I enabled DEBUG logs for the following(not sure which one exactly helped):

in conf/log4j.properties file:

Code: Select all

log4j.category.com.smartfoxserver=DEBUG,consoleAppender,fileAppender
log4j.category.sfs2x=DEBUG,consoleAppender,fileAppender


Only then I saw version that's being started

Code: Select all

2025-01-13T12:05:24,954 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     |
 _____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_|
[ 2.13.8 ]

2025-01-13T12:05:24,954 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     | SmartFoxServer 2X (2.13.8) READY!


I didn't occur to me that 'INFO' log line needs 'DEBUG' log level to be enabled.

Thank you for your support, it was very helpful.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not update patch 2.13.8

Post by Lapo »

There is no need to set the logging level to DEBUG.
The INFO log messages are normally logged with the default setting: in fact the screenshot I posted in my previous response was obtained after having patched a fresh copy of 2.13 and without touching its config.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply