photonixapp / photonix

A modern, web-based photo management server. Run it on your home server and it will let you find the right photo from your collection on any device. Smart filtering is made possible by object recognition, face recognition, location awareness, color analysis and other ML algorithms.
https://photonix.org/
GNU Affero General Public License v3.0
1.85k stars 127 forks source link

Photonix does not detect newly added photos. #417

Open grainsoflight opened 1 year ago

grainsoflight commented 1 year ago

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):

Desktop (please complete the following information):

grainsoflight commented 1 year ago

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

Restarting the container does not resolve this for me

grainsoflight commented 1 year ago

Anyone?

grainsoflight commented 1 year ago

`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_refreshtoken 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_refreshtoken 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_refreshtoken raise JSONWebTokenError(('Invalid refresh token')) graphql.error.located_error.GraphQLLocatedError: Invalid refresh token

patchedmonkey commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Make sure you change the default database password, that fixed it for me

On Sun, Jan 29, 2023, 3:48 PM Patched Monkey @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/photonixapp/photonix/issues/417#issuecomment-1407778410, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHANMY4VRCYQZ36GTDSMHC3WU3QSLANCNFSM6AAAAAATV5BKB4 . You are receiving this because you authored the thread.Message ID: @.***>

steffenr commented 1 year ago

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