-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed start with json.decoder.JSONDecodeError #261
Comments
Hi @hifi25nl , thanks for reporting! |
@hifi25nl I think the problem is in file |
No, never touched it. I want to copy my previous configuration to a new computer. Maybe my procedure is not correct:
After I start script-server as user with /usr/bin/python /opt/script-server/launcher.py |
Hi @hifi25nl, from which working directory are you starting the server? I mean |
I am using git clone of the address https://github.com/bugy/script-server.git
|
Hi @hifi25nl, regarding the initial problem with json decoding. Could it be, that you have a bit larger log? From this log I cannot see, which json file is corrupted
I think it's better to always run everything as a normal user, otherwise, you may end up with some files created by root, and the normal user won't have access to them (that's why you have to chmod it)
I would recommend using releases, instead of building the tool yourself. You just need to download and extract it. You can also extract server version from version.txt file, which is bundled now |
I think that I know the source of the problem. I am using now the package at https://github.com/bugy/script-server/archive/1.15.1.tar.gz |
Hi @hifi25nl, please use: https://github.com/bugy/script-server/releases/download/1.15.1/script-server.zip (it wasn't available for this release, because of an error during upload yesterday. Fixed now) |
Ok, I have rebuild the package with the new link and made a new systemd service that will launch script-server as root. WITH RUNNERS NOT DELETED After, if I run one first time without runners and conf.son and copy back runners and conf.json and restart the launcher all is working fine. |
Hi @hifi25nl , thanks, that helps! In your case, could you find broken configuration and fix it, please? I think the easiest way would be try to open a main server page (index.html) and then check logs/server.log file. There should be an error, showing which scripts failed to be open |
I have found the problematic file in /runners looking at server.log |
Fixed. Now migrations shouldn't fail startup |
Sometime it works, sometime not. This is the error:
feb 01 16:48:44 archlinux python[1003]: json_object = json.loads(content, object_pairs_hook=OrderedDict)
feb 01 16:48:44 archlinux python[1003]: File "/usr/lib/python3.8/json/init.py", line 370, in loads
feb 01 16:48:44 archlinux python[1003]: return cls(**kw).decode(s)
feb 01 16:48:44 archlinux python[1003]: File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
feb 01 16:48:44 archlinux python[1003]: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
feb 01 16:48:44 archlinux python[1003]: File "/usr/lib/python3.8/json/decoder.py", line 353, in raw_decode
feb 01 16:48:44 archlinux python[1003]: obj, end = self.scan_once(s, idx)
feb 01 16:48:44 archlinux python[1003]: json.decoder.JSONDecodeError: Invalid \escape: line 3 column 67 (char 113)
The text was updated successfully, but these errors were encountered: