Page 1 of 1

Error when running server in Ubuntu

Posted: Fri May 20, 2016 10:21 pm
by Djmann1013
I have a droplet on DigitalOcean (1gb ram) and I am getting this when running the script:
Code: Select all
user@web-1:~/PySnip$ ./run_server.sh
Traceback (most recent call last):
  File "run.py", line 67, in <module>
    config = json.load(open(name, 'rb'))
  File "/usr/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 16 column 2 (char 592)
It worked once, now it doesn't work. I had this same error when I first ran it, but then I logged out of the server then back in and I still get this.

Re: Error when running server in Ubuntu

Posted: Sat May 21, 2016 8:40 am
by LeFizzy
Welcome.
Can you paste the config.txt from pysnip/feature_server directory?
Maybe something missing => comma's or some arguments are missing/bad.

Re: Error when running server in Ubuntu

Posted: Sat May 21, 2016 10:57 pm
by Djmann1013
I fixed it. It turns out my JSON was incorrect. I was missing a comma somewhere.

Thanks!