I get "Internal Server Error" when installing on Manjaro (Arch Linux)

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 23
Operating system and version (eg, Ubuntu 20.04): Manjaro XFCE 4.16
Apache or nginx version (eg, Apache 2.4.25): 2.4.51
PHP version (eg, 7.4): `8.0.13’

The issue you are facing:

I followed a tutorial on youtube on how to set up nextcloud, and I can’t use it on my browser at all saying “Internal Server Error” and “The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.”

I think it’s a compatibility issue with PHP being newer than it’s supposed to be (7.0).

I don’t know where the log is, or if it was generated at all.

Is this the first time you’ve seen this error? (Y/N):
Y
Steps to replicate it:

  1. Enter “localhost” on address bar.

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

(can't find it)

The output of your Apache/nginx/system log in /var/log/____:

nginx/access.log :

127.0.0.1 - - [28/Dec/2021:14:05:45 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:14:07:05 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:14:07:47 -0300] "GET / HTTP/1.1" 500 2249 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [28/Dec/2021:14:22:06 -0300] "GET /index.php/csrftoken HTTP/1.1" 500 2528 "http://localhost/" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:14:37:06 -0300] "GET /index.php/csrftoken HTTP/1.1" 500 2528 "http://localhost/" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:14:52:06 -0300] "GET /index.php/csrftoken HTTP/1.1" 500 2528 "http://localhost/" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:15:23:56 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:15:52:36 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:16:08:18 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:16:08:37 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:17:36:13 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:19:31:53 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:21:18:02 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:21:48:42 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:21:56:36 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:22:00:07 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:22:04:21 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:22:08:34 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:22:08:35 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [28/Dec/2021:22:09:47 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [29/Dec/2021:10:33:14 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [29/Dec/2021:11:24:55 -0300] "GET / HTTP/1.1" 500 2528 "-" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
127.0.0.1 - - [29/Dec/2021:11:39:56 -0300] "GET /index.php/csrftoken HTTP/1.1" 500 2528 "http://localhost/" "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"

Hi @yataghan012

I’m afraid we need more details to be able to help…

What tutorial?

This can mean all sorts of things. What does the Nextcloud log say?

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/logging_configuration.html

PHP 8.0 is fine and even the recommended version in Nextcloud 23. Did you install and enable all of the required PHP packages / modules?

https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

Did you add “localhost” to the trusted domains in the /path/to/nextcloud/config/config.php file?

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html?highlight=trusted%20domains#default-parameters

1 Like

I can’t seem to open config.php on nextcloud/config, says I don’t have access. I’ve tried with sudo.

Hmm. Sorry I’m not familiar with installing Nextcloud on Arch Linux, but he mentions in the video description, that there are changes in the configuartion necessary for php8. You could read the Arch Wiki article to find out what has changed… https://wiki.archlinux.org/title/Nextcloud

But in general, I would not recommend running Nextcloud directly on your desktop PC, except for testing and learning purposes. Also, a rolling release distro like Manjaro is imho not the best choice for server applications like Nextcloud, because there are very frequent changes. Especially as a beginner you make your life unnecessarily difficult…

If you absolutly have to run it on your PC, and you want to set it up manually in order to learn how these things work, spin up a VM and install Debian or Ubuntu in it, for which you can use the official Nextcloud documentation. Or use the snap package, if you just want to quickly have a working instance on your PC,

If you want to use it productively and maybe even expose it to the internet, buy a separate box and install it there. This doesn’t have to be a high-end server machine. A RaspberryPi with 4GB or better 8GB and an USB-disk is quite sufficient.

1 Like

What are the cons of just using a snap package (so I don’t have to install a new OS or a VM)?

I do not use it myself, but from what I hear it works quite well. Updates to new major versions are released a bit delayed as far as I know, but I would rather see that as an advantage, since new versions right after the release are usually still a bit buggy. Otherwise, I think you will not have many disadvantages. And if you want to run Nextcloud on your desktop PC, it’s probably the best option anyway. With the snap package you have a self-contained package that runs isolated from the rest of the system. As long as the Snap service is running, so is your Nextcloud. Another option would be Docker, but this adds at least somewhat more complexity to it. And again I would not wanna run a docker stack with server applications directly on my desktop computer.

1 Like

Thanks man, you’ve been really helpful anyway. :wink: