-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
🐛 [webtrees] Auto-update from 2.2.1 to 2.2.1-4 - site error and unexpected user experience #1707
Comments
This is strange - I just did a test changing the path from /config/data to /config/data2 in my addon options. The code executed correctly : the /config/data folder was renamed to /config/data_migrated, all data went into /config/data2, and everything started up exactly as expected |
With version So apart from the issue of nested folders /data/data that you encountered, on my system everything is working as expected. I wonder if the variable |
@alexbelgium what's your take on the vision / roadmap with additional details surfacing in webtrees/issues/5101? Feel free to continue there. I've not yet continued testing (will do this week) to isolate NAS level permissions, still think they might be the culprit, despite full permissions granted at mount time. |
Hi, thanks for having made this thread. In terms of user experience simplicity, the easiest is to use the current system based on symlink that I put in place for the data folder. This means that INDEX_DIRECTORY should be overlooked - of course it should not exist in the first place unless it is specifically specified by the user. In terms of robustness, indeed having a CLI to define data_folder would be a solution which would be much better in a programmation sense. This is for example how the nextcloud addon works : I have some script executing prior to the app being loaded, then I use their cli once the app is loaded to use their own functions to update configuration. For your specific issue, have you tried setting the data folder to your nas drive from the addon options? This will migrate all your existing elements too |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
I wish we collaborated in staging before pushing this update 🤣 Looks like you changed a few configs, paths and also deprecated (or omitted) passing quite a few add-on env variables that were there before.
It looks like the root cause is around not picking up some symlinks (...from logs:
[04:26:29] WARNING: Data location was changed from /share/webtrees to /config/data, migrating files
and... creating symlinks
)?.. - were they supposed to be created?..Here's the full log of my User Experience.
auto-update
so ended up with panic attack from unexpectedly being forced in to setup wizard, but using phpmyadmin add-on checked that I got the database more or less current and immediately backed it up.+trick
to continue.Unable to create a directory at /share/webtrees/data/.
. Quickly
grep
-ed through the SQL backup from (1) and with phpmyadmin fixed:/config/data/media/
but migration left them in/config/data/data/media
, and not sure what's33
owner:But in /config/data/data/media I had:
So I had to copy them once more preserving the
-p
ownership for photos to work:Reproduction steps
Addon Logs
Architecture
aarch64
OS
HAos
The text was updated successfully, but these errors were encountered: