I cannot logging to my Nextcloud server anymore, i am getting a HTTP500 error and like i mentioned Webmin is so slow after login i am not seeing a page after 25 minutes.
I know that Internal server errors are quite unspecific without further information. But i am pretty novice when it comes to linux. So i don’t know how and which logfile(s) i am suppose to supply you guys with. Could someone tell me where to look?
I am using Nextcloud 18.1 on a Hyper-V virtual machine running Ubuntu (The Hanssonit image file).
Many thanks in advance!
P.S. of course i used the search, but all the topics are specific because of the included logfiles. So not very helpful (for now).
did you check with df -h if a filesystem is full?
did you check with top if any process is running wild?
you can check with sudo systemctl status postgresql if your database is running. (assuming you use postgres on ubuntu. otherwise you have to use the service name of your database insstead of postgresql
same applies to php: sudo systemctl restart php7.2-fpm.service
@Reiner_Nippes,
Thanks for your reply!
NCdata is 100%. How do i delete an user (incl. the data) using the CLI? Since i am not able to login using a browser.
What do you mean “setup youre NC”? My NC was working, but most likely because ncdata is 100% it is stuck now. I have seen this before. So i think when i remove the one user i am thinking of the problem should be solved (after a reboot).
This shouldn’t be required. You can try to login on your system and delete stuff manually. A few things you could delete:
There often is a nextcloud.log, you can empty it (if you are not sure, if you might need it to debug other problems, copy it to a local drive or a USB stick before emptying).
the updater-xyz contains the code of the older versions and downloaded folders. If your last update was complete, you can empty that as well. Also updater.log.
Is that enough that you can run the occ command? With that you can just empty trash bins and delete versioned file data (if not needed any more). Perhaps this step is not required to login.
Sounds good… Could you tell me how to do this? I still have to learn a lot when it comes to Linux.
Login with a browser is not possible so i will have to do it from the CLI.
Probably the easiest thing to do is delete old updates, and then login with a browser and empty the bin?
i haven’t run the delete command (sudo -u www-data php occ user:delete user1) because @thijssie85 said it probably wasn’t gonna work. I didn’t wanna run something that isn’t gonna work.
Do you think i should just try to run the occ command?
I am able login using sftp but what do i do next? the folder ncdata will not show anything. the rest of the folders do show things, but where to go from here?
@Operations Actually, the only thing you need to do is run the update script built into the VM (located in /var/scripts). It automatically checks if the disk is full and performs a cleaning of unneeded files like snapshots and trashbin.