Nextcloud not responding after disk full incident
-
I have searched the forum for a similar case and found this one. Link to the solution:
https://forum.cloudron.io/post/70404
I have the exact same log errors. The problem is that I have no backup to restore a working config.php file from.
What to do in this case? Will it help to make a backup of the current non-responding Nextcloud, install a fresh one and recover from the former backup?
I am out of ideas. Help appreciated.
-
The backups got accidentally dropped as they were on the same volume as the system. Dumb situation. Nothing else got removed though. The disk full issue has been resolved. I will try and install a second instance to compare the config files.
I am wondering why the config.php does not contain a datadirectory parameter at all.
Update: The old config differs significantly compared to the new one. I suppose the "update config" and "run migration" steps in the log are trying to migrate the config.php to the new standard. This seems to fail for some reason. The application loops through the follwing again and again:
==> Copying htaccess Jan 07 19:36:49==> update config Jan 07 19:36:49==> run migration Jan 07 19:36:49Nextcloud is not installed - only a limited number of commands are available Jan 07 19:36:49 Jan 07 19:36:49 Jan 07 19:36:49 Command "upgrade" is not defined. Jan 07 19:36:49 Jan 07 19:36:49 Jan 07 19:36:54=> Healtheck error: Error: connect EHOSTUNREACH 172.18.19.126:80
-
Running the app in recovery mode gives me the following:
Jan 07 20:51:02 Command "upgrade" is not defined. Jan 07 20:51:02Nextcloud is not installed - only a limited number of commands are available Jan 07 20:51:05[GET] /healthcheck Jan 07 20:51:05box:tasks update 4766: {"percent":30,"message":"Setting up addons"} Jan 07 20:51:05box:services setupAddons: Setting up ["postgresql","sendmail","ldap","redis","localstorage","scheduler","turn"] Jan 07 20:51:05box:services setupAddons: setting up addon postgresql with options {} Jan 07 20:51:05box:services Setting up postgresql Jan 07 20:51:05box:services Setting postgresql addon config to [{"name":"CLOUDRON_POSTGRESQL_URL","value":"postgres://user1af67d47f12d4d8b9890304a9c7e915b:30234061fc3bfa5e3c9c8f6d760fee506c9d6cb66069523f6c00ea7bb4addd9c4fb5f942c853d832967cee25d5b42d08eb3e2c766bc13954f0bd54459685c9d9@postgresql/db1af67d47f12d4d8b9890304a9c7e915b"},{"name":"CLOUDRON_POSTGRESQL_USERNAME","value":"user1af67d47f12d4d8b9890304a9c7e915b"},{"name":"CLOUDRON_POSTGRESQL_PASSWORD","value":"30234061fc3bfa5e3c9c8f6d760fee506c9d6cb66069523f6c00ea7bb4addd9c4fb5f942c853d832967cee25d5b42d08eb3e2c766bc13954f0bd54459685c9d9"},{"name":"CLOUDRON_POSTGRESQL_HOST","value":"postgresql"},{"name":"CLOUDRON_POSTGRESQL_PORT","value":"5432"},{"name":"CLOUDRON_POSTGRESQL_DATABASE","value":"db1af67d47f12d4d8b9890304a9c7e915b"}] Jan 07 20:51:05box:services setupAddons: setting up addon sendmail with options {"supportsDisplayName":false} Jan 07 20:51:05box:services Setting up SendMail Jan 07 20:51:05box:services Setting sendmail addon config to [{"name":"CLOUDRON_MAIL_SMTP_SERVER","value":"mail"},{"name":"CLOUDRON_MAIL_SMTP_PORT","value":"2525"},{"name":"CLOUDRON_MAIL_SMTPS_PORT","value":"2465"},{"name":"CLOUDRON_MAIL_STARTTLS_PORT","value":"2587"},{"name":"CLOUDRON_MAIL_SMTP_USERNAME","value":"wolke@tee-server.de"},{"name":"CLOUDRON_MAIL_SMTP_PASSWORD","value":"6257492a4e30247b589fefb907b9e8b4d5bdf3396d2c5914"},{"name":"CLOUDRON_MAIL_FROM","value":"wolke@tee-server.de"},{"name":"CLOUDRON_MAIL_DOMAIN","value":"tee-server.de"}] Jan 07 20:51:05box:services setupAddons: setting up addon ldap with options {} Jan 07 20:51:05box:services setupAddons: setting up addon redis with options {} Jan 07 20:51:05box:services Re-using existing redis container with state: {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":42957,"ExitCode":0,"Error":"","StartedAt":"2024-01-07T11:40:56.222621687Z","FinishedAt":"2024-01-07T11:40:55.251426628Z"} Jan 07 20:51:05box:services Waiting for redis-1af67d47-f12d-4d8b-9890-304a9c7e915b Jan 07 20:51:05box:services setupAddons: setting up addon localstorage with options {} Jan 07 20:51:05box:services setupLocalStorage Jan 07 20:51:05box:shell createVolume spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/mkdirvolume.sh /home/yellowtent/appsdata/1af67d47-f12d-4d8b-9890-304a9c7e915b/data Jan 07 20:51:05box:shell createVolume (stderr): sudo: unable to resolve host 1001415-406: Name or service not known Jan 07 20:51:05box:services setupAddons: setting up addon scheduler with options {"housekeeping":{"schedule":"*/5 * * * *","command":"/app/pkg/cron.sh"}} Jan 07 20:51:05box:services setupAddons: setting up addon turn with options {"optional":true} Jan 07 20:51:05box:services Setting up TURN Jan 07 20:51:05box:tasks update 4766: {"percent":60,"message":"Creating container"} Jan 07 20:51:05box:apptask createContainer: creating container Jan 07 20:51:06Repair mode. Use the webterminal or cloudron exec to repair. Sleeping Jan 07 20:51:06box:shell addLogrotateConfig spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/configurelogrotate.sh add 1af67d47-f12d-4d8b-9890-304a9c7e915b /tmp/1af67d47-f12d-4d8b-9890-304a9c7e915b.logrotate Jan 07 20:51:06box:shell addLogrotateConfig (stderr): sudo: unable to resolve host 1001415-406: Name or service not known Jan 07 20:51:06box:apptask startApp: starting container Jan 07 20:51:06box:tasks update 4766: {"percent":100,"message":"Done"} Jan 07 20:51:06box:tasks setCompleted - 4766: {"result":null,"error":null} Jan 07 20:51:06box:taskworker Task took 9.183 seconds Jan 07 20:51:06box:tasks update 4766: {"percent":100,"result":null,"error":null} Jan 07 20:51:10=> Healtheck error: Error: connect ECONNREFUSED 172.18.19.126:80```
-
@whitespace The config files differ because nextcloud for some reason though it's a new installation and probably created a new config file. I don't want to suggest something here without looking at the exact situation especially since there are no backups. Can you contact us at support@cloudron.io to debug ? Otherwise, alternative is of course just reimport your files into another nextcloud installation.
Something like:
- Install another nextcloud
- Copy over files from old nextcloud into new nextcloud . You have to copy these into
/home/yellowtent/appsdata/<appid>/data/<userid>/...
- Run occ scan . https://docs.cloudron.io/apps/nextcloud/#rescan-files
-
-
@girish Just contacted you.
In case I try migrating the users, does this also migrate all user settings, passwords and so on? Or do the user directories only contain data?
Users are managed by the app on this instance, not by Cloudron.
-
@whitespace I see that earlier in the thread you said you had no backups. But just wanted to double check, if you had any (even ancient ones) ? The reason is config.php has passwordsalt and secret which is what is used to hash the db entries. https://github.com/nextcloud/server/issues/34780 has some suggestions which may or may not work .
As for your question, not a nextcloud expert, but if I had to guess user settings and password will be reset since the data files is only the files.
-