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

Photonix does not detect newly added photos. #417

Open
grainsoflight opened this issue Jan 9, 2023 · 7 comments
Open

Photonix does not detect newly added photos. #417

grainsoflight opened this issue Jan 9, 2023 · 7 comments

Comments

@grainsoflight
Copy link

Describe the bug
When adding photos to the server path mapped to /data/photos. photos do not appear in photonix. Additionally, the "watch folder for new photos" toggle in settings will not remain on. Photonix does recognize photo path as it did create the "raw-photos...." directory in that location when running docker-compose.

To Reproduce
Steps to reproduce the behavior:
Add photos to photo directory, see no change in photonix.

Toggle "watch folder.." on in "settings." Leave settings and return to settings, option will be off again.

Expected behavior
Photos should automatically add to photonix.

Server (please complete the following information):

  • Device: QNAP NAS running container station utilizing Docker Compose
  • OS: QutOS 5.0.1
  • Architecture: x86_x64

Desktop (please complete the following information):

  • OS: Mac OS Ventura
  • Browser Chrome, Safari
@grainsoflight
Copy link
Author

YEs I experience both of these also. Currently need to restart the docker!

Restarting the container does not resolve this for me

@grainsoflight
Copy link
Author

Anyone?

@grainsoflight
Copy link
Author

`2023-01-19 02:02:05,847 ERROR Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/promise/promise.py", line 489, in resolve_from_executor
executor(resolve, reject)
File "/usr/local/lib/python3.8/site-packages/promise/promise.py", line 756, in executor
return resolve(f(*args, **kwargs))
File "/usr/local/lib/python3.8/site-packages/graphql/execution/middleware.py", line 75, in make_it_promise
return next(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/mutations.py", line 60, in mutate
return cls.refresh(*arg, **kwargs)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/decorators.py", line 110, in wrapper
result = f(cls, root, info, **kwargs)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/refresh_token/mixins.py", line 24, in refresh
refresh_token = get_refresh_token(refresh_token, context)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/refresh_token/shortcuts.py", line 20, in get_refresh_token
raise JSONWebTokenError(
('Invalid refresh token'))
graphql.error.located_error.GraphQLLocatedError: Invalid refresh token

2023-01-19 02:02:21,523 ERROR Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/promise/promise.py", line 489, in resolve_from_executor
executor(resolve, reject)
File "/usr/local/lib/python3.8/site-packages/promise/promise.py", line 756, in executor
return resolve(f(*args, **kwargs))
File "/usr/local/lib/python3.8/site-packages/graphql/execution/middleware.py", line 75, in make_it_promise
return next(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/mutations.py", line 60, in mutate
return cls.refresh(*arg, **kwargs)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/decorators.py", line 110, in wrapper
result = f(cls, root, info, **kwargs)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/refresh_token/mixins.py", line 24, in refresh
refresh_token = get_refresh_token(refresh_token, context)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/refresh_token/shortcuts.py", line 20, in get_refresh_token
raise JSONWebTokenError(
('Invalid refresh token'))
graphql.error.located_error.GraphQLLocatedError: Invalid refresh token

2023-01-19 02:02:37,514 ERROR Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/promise/promise.py", line 489, in resolve_from_executor
executor(resolve, reject)
File "/usr/local/lib/python3.8/site-packages/promise/promise.py", line 756, in executor
return resolve(f(*args, **kwargs))
File "/usr/local/lib/python3.8/site-packages/graphql/execution/middleware.py", line 75, in make_it_promise
return next(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/mutations.py", line 60, in mutate
return cls.refresh(*arg, **kwargs)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/decorators.py", line 110, in wrapper
result = f(cls, root, info, **kwargs)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/refresh_token/mixins.py", line 24, in refresh
refresh_token = get_refresh_token(refresh_token, context)
File "/usr/local/lib/python3.8/site-packages/graphql_jwt/refresh_token/shortcuts.py", line 20, in get_refresh_token
raise JSONWebTokenError(
('Invalid refresh token'))
graphql.error.located_error.GraphQLLocatedError: Invalid refresh token

@patchedmonkey
Copy link

Same here! I mean there was a command via the console to reload the photos manually. Will get back to you when I know more.

@patchedmonkey
Copy link

patchedmonkey commented Jan 29, 2023

Same here! I mean there was a command via the console to reload the photos manually. Will get back to you when I know more.

Docker build of the developer version works for me.

@grainsoflight
Copy link
Author

grainsoflight commented Jan 30, 2023 via email

@steffenr
Copy link

steffenr commented Mar 14, 2023

You can trigger a rescan by running
python photonix/manage.py rescan_photos
in your photonix installation.

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

3 participants