pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
2.82k stars 76 forks source link

Database triggers not set up #1128

Closed portalx closed 1 month ago

portalx commented 1 month ago

Describe the bug Database triggers not set up not working.

To Reproduce Steps to reproduce the behavior: As per help from memories app help.

Screenshots If applicable, add screenshots to help explain your problem.

Platform:

Additional context c/p from maintenance:repair

c/p from mysql. +---------------------------------+-------+ | Variable_name | Value | +---------------------------------+-------+ | log_bin_trust_function_creators | ON | +---------------------------------+-------+ 1 row in set (0.00 sec)

Restarted the php-fpm.

Error still persists.

I don't know what else should I search for. Any advice will be useful.

Thank you

pulsejet commented 1 month ago

I don't see the repair steps for Memories being executed. Is the app enabled properly when you run maintenance:repair? It should be something like:

...
 - Copy the share password into the dedicated column
 - Set existing shares as accepted
 - Repair steps for Memories
     - External table schema seem up to date
     - Recreated filecache trigger with: Doctrine\DBAL\Platforms\MariaDb1052Platform
     - exiftool binary is configured: /var/www/html/apps/memories/bin-ext/exiftool-amd64-glibc
     - go-vod binary is configured: /var/www/html/apps/memories/bin-ext/go-vod-amd64
     - ffmpeg binary is configured: /usr/bin/ffmpeg
 - Update OAuth token expiration times
 - Install recognize dependencies
 ...

Maybe try reinstalling Memories.

portalx commented 1 month ago

pulsejet thank you for your answer ! Yes it's enabled and working without problem !! This problem came with the this version. I will install it again to check if the error persists. (I have 45000 photos scanned ! Let's go again :>)

Thank you

portalx commented 1 month ago

Reinstalling Memories fixed the problem !

"Database triggers are set up correctly."

Thank you for your support !!

steadfasterX commented 2 weeks ago

having the same issue on a clean install.. maintenance:repair does not show up memories at all. Tried also with "--include-expensive" but nothing..

what is the best way for such a re-install? simply via the nextcloud UI an uninstall + install? do we need to re-index etc everything again?

portalx commented 2 weeks ago

Hello steadfasterX,

In my case I just removed and reinstalled the app through the Nextcloud UI. After that, everything worked back. I didn’t do any re-index etc..

I don’t know if you need to do a ctrl & f5 to your browser to load again the page if you are browsing through windows.

Thank you.

steadfasterX commented 2 weeks ago

thanks @portalx ! I tried now to simply deactivate it. Then activated it again (so no uninstall) and the error message is gone! dunno what that did in the background but at least it seems to work now :)