NextCloud Internal Server Error

  • Hi all,


    Something happened to my nextcloud seemingly over night. Whenever I go to my domain or locally I get an internal server error. I have tried digging through the logs, but I don't see any errors pertaining to it. Maybe I'm not looking at the right logs? Also my bookstack app is giving the same 500 error. Is it possibly something with my db? I haven't touched the db any time recently.


    If there are any logs you guys think might help, please let me know. I really don't want to have to rebuild nextcloud again.


    Thanks in advance.

  • I am running it in docker and using portainer. Here's the log from portainer.

    Doesn't look like there is anything useful in there.

  • Nothing there either.


  • I am going to just delete everything and start over, however, the file/folders in the /data directory are marked as read-only and I can't seem to get around that. I am running as root so permissions shouldn't be the issue. Any ideas on how to delete that?

  • They are located on mergerfs array under /data/nextcloud/


    Code
    drwxrwx--- 7 1000  1000 4096 Jun  5 12:51 nextcloud
    drwxr-s--- 5 root users 4096 Jun  5 12:46 nextcloud-backup
    drwxr-s--- 7 root users 4096 Jun  5 12:55 nextcloud-new

    There is the output of ls -l

    • Offizieller Beitrag

    Are you running the docker as root?

    You should not. And if you run the docker as another user, permissions are messed up and you might be able to fix permissions instead of reinstalling.


    On my installation the files are owned by the user that is running the docker. Group is "users".


    There might be issues to use docker on mergerfs. Not sure as I am not using mergerfs, but might be worth searching the forum.


    You should be able to delete the directories when you ssh in the server as root.

    • Offizieller Beitrag

    I run the docker as a user named docker1 which has been created in the GUI of OMV.


    The directories are owned by docker1:users.

    UID is 1000

    GID is 100 (as all users created in the GUI of OMV on a default installation)


    drwxr-sr-x 9 docker1 users 4096 May 15 21:11 nextcloud

    • Offizieller Beitrag

    The directories are owned by docker1:users.

    UID is 1000

    Just to clarify for rocketcoder the first user you create will have the UID is 1000. If you already have a user (or users) created and you create a new user to own dockers then that user will have a UID of 1001 (or higher, depending on how many users you already have). You may already know this. Just ICYMI.

    System Backup Typo alert: Under the Linux section the command should be sudo umount /dev/sda1 NOT sudo unmount /dev/sda1

    Backup Data Disk to Backup Disk on Same Machine: In a Scheduled Job:rsync -av --delete /srv/dev-disk-by-uuid-f8814ed9-9a5c-4e1c-8830-426968c20ea3/ /srv/dev-disk-by-uuid-e67439d5-00a3-4942-bd5f-b84ab86aa850/ Don't forget trailing slashes, and BE CAREFUL. (HT: Getting Started with OMV5)

    Equipment - Thinkserver TS140, NanoPi M4 (v.1), Odroid XU4 (Using DietPi): PiHole

  • Hi All,


    I am now having this issue. rocketcoder did you manage to resolve the issue and if so how?


    Thanks,

    Normally if its in red it's bad!!!


    Machine 1 - Dell OptiPlex 790 - Core i5-2400 3.10GHz - 16GB RAM - OMV5

    Machine 2 - Raspberry PI4 - ARMv7 - 2GB - OMV5

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!