5 days ago I switched from AJAX to CRON according to the manual, which means I updated the crontab file according to https://docs.nextcloud.com/server/11/admin_manual/configuration_server/background_jobs_configuration.html and selected cron on the settings page in the nextcloud web interface.
From then on, whenever I reboot my server (Raspberry Pi, Apache2), all files and settings that I changed in the meantime are reset. This means that I have been able to upload files to the cloud the normal way. However, after I restarted my Pi earlier today, all files that I uploaded in the last 5 days were deleted automatically and all files that have been modified were taken back to the versions that were up-to-date 5 days ago.
Another example: Yesterday I updated the ‘Theming’ app on my nextcloud web interface from 1.4.4 to 1.4.5. After my server rebooted today, I am back to version 1.4.4 again and the updater reminds me that 1.4.5 is available.
This is also true for all the settings I changed in the meantime. For example I deactivated 2-factor authentification and activated it again yesterday, because I switched my phone with the 2nd factor authentification app. I was able to login yesterday after I registered my new phone and revoked access permissions for my old phone on Nextcloud-Settings -> Securty. After I restarted my Pi today, these changes have been reset and I am unable to log into my account, because Nextcloud won’t accept my the key-generator on my new app, but only the old one, which I do not have anymore. I was still able to log in via backup-keys though.
Because I already used 7/10 of these codes, I decided to generate a new set of backup codes. I just had to restart the Pi again for another application, and it seems I cannot use the new set of backup codes. When I try to enter one of these it says “Error while validating your second factor”. So now I am completely locked out from the interface.
Something is seriously broken with my setup. Can anybody assist me and tell me
1.) How can I get access back to the web interface,aka deactivate 2nd-factor-authentification from the server?
2.) How can I fix this issue that the server always reverts everything back to the state that was current 5 days ago?
Have a great day.
Attachment: crontab -l
pi@raspberrypi:~ $ sudo crontab -u www-data -l
# Edit this file to introduce tasks to be run by cron.
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use ‘*’ in these fields (for ‘any’).#
# Notice that tasks will be started based on the cron’s system
# daemon’s notion of time and timezones.
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# For more information see the manual pages of crontab(5) and cron(8)
# m h dom mon dow command
*/15 * * * * php -f /var/www/nextcloud/cron.php