Skip to content
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

ownfoil:v2 Unable to read json file #54

Closed
shoyrock opened this issue Oct 18, 2023 · 8 comments
Closed

ownfoil:v2 Unable to read json file #54

shoyrock opened this issue Oct 18, 2023 · 8 comments

Comments

@shoyrock
Copy link

I updated to version 2 that came out yesterday, but I'm now getting this erroI was was working fine on the older version 2


Traceback (most recent call last):
File "/app/app.py", line 174, in
init()
File "/app/app.py", line 15, in init
update_titledb(app_settings)
File "/app/titles.py", line 173, in update_titledb
load_titledb(app_settings)
File "/app/titles.py", line 82, in load_titledb
cnmts_db = json.load(f)
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1115346 column 14 (char 37282819)
warning: The following paths are not up to date and were left despite sparse patterns:
US.en.json

After fixing the above paths, you may want to run git sparse-checkout reapply.
Traceback (most recent call last):
File "/app/app.py", line 174, in
init()
File "/app/app.py", line 15, in init
update_titledb(app_settings)
File "/app/titles.py", line 173, in update_titledb
load_titledb(app_settings)
File "/app/titles.py", line 82, in load_titledb
cnmts_db = json.load(f)
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1115346 column 14 (char 37282819)
warning: The following paths are not up to date and were left despite sparse patterns:
US.en.json

After fixing the above paths, you may want to run git sparse-checkout reapply.
Traceback (most recent call last):
File "/app/app.py", line 174, in
init()
File "/app/app.py", line 15, in init
update_titledb(app_settings)
File "/app/titles.py", line 173, in update_titledb
load_titledb(app_settings)
File "/app/titles.py", line 82, in load_titledb
cnmts_db = json.load(f)
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1115346 column 14 (char 37282819)
users:x:100:games
Starting ownfoil
users:x:100:games,ownfoil
ownfoil:x:99:100:Linux User,,,:/home/ownfoil:/sbin/nologin
Starting ownfoil
reading conf file
users:x:100:games,ownfoil
ownfoil:x:99:100:Linux User,,,:/home/ownfoil:/sbin/nologin
Starting ownfoil
reading conf file

@a1ex4 a1ex4 changed the title ownfoil:v2 ownfoil:v2 Unable to read json file Oct 19, 2023
@a1ex4
Copy link
Owner

a1ex4 commented Oct 19, 2023

To identify every games Ownfoil uses the database from Tinfoil, which gets updated periodically by the creator by scraping the Nintendo e-shop. But sometimes files are updated with errors and so that breaks Ownfoil too, I opened an issue on the repository to see if we can prevent that from happening in the future (blawar/titledb#28).

In the meantime, in Ownfoil the database is updated every start of the app (it will be updated periodically in the future), so you need to wait for the database to be fixed upstream and then a restart of the container should grab the latest update.

Also make sure to pull the latest image, I should have fixed the git sparse-checkout issues with the latest commits.

@acaltas
Copy link

acaltas commented Oct 19, 2023

have the same with latest image of V2

Starting ownfoil
Traceback (most recent call last):
File "/app/app.py", line 174, in
init()
File "/app/app.py", line 15, in init
update_titledb(app_settings)
File "/app/titles.py", line 173, in update_titledb
load_titledb(app_settings)
File "/app/titles.py", line 82, in load_titledb
cnmts_db = json.load(f)
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 293, in load
reading conf file
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1115346 column 14 (char 37282819)

@SiscuPrats
Copy link

I also verify that I have the same problem with the latest version.

Starting ownfoil
Traceback (most recent call last):
File "/app/app.py", line 174, in
init()
File "/app/app.py", line 15, in init
update_titledb(app_settings)
File "/app/titles.py", line 173, in update_titledb
load_titledb(app_settings)
File "/app/titles.py", line 82, in load_titledb
cnmts_db = json.load(f)
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1115346 column 14 (char 37282819)

@a1ex4
Copy link
Owner

a1ex4 commented Oct 19, 2023

Fixed upstream by blawar, restarting Ownfoil should fix it locally.

@a1ex4 a1ex4 closed this as completed Oct 19, 2023
@shoyrock
Copy link
Author

Nice, I was able to get the container running but now I’m running into another error
image

@acaltas
Copy link

acaltas commented Oct 19, 2023

check the container log.. mabybe its indexing everything

@a1ex4
Copy link
Owner

a1ex4 commented Oct 19, 2023

@shoyrock maybe you ran the app twice ? I would suggest stopping the container, removing the ./config/ownfoil.db file (you'll lose the users registered but the library will be indexed again) and restarting the container.

@shoyrock
Copy link
Author

I removed the container and did a clean install that seems to have worked, and I've also been having an issue where I’m unable to use a container on custom docker networks. It only works when using the host; I can’t use the bridge also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants