Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a more detailed log from nextcloud docker container

I followed the guide on https://blog.ssdnodes.com/blog/installing-nextcloud-docker/ and got the docker containers running. I changed the port mappings of nextcloud-proxy to 7443:443, 780:80, since my server already has an apache running.

When I open the page foo.bar.com:7443, it shows me a server error 500 page by nginx.

docker logs --details nextcloud-proxy only shows me, that the error-500-page was successfully delivered.

docker logs --details nextcloud-app does not show any errors regarding the request. It only shows some messages during startup:

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.5. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.5. Set the 'ServerName' directive globally to suppress this message
[Mon Mar 04 19:23:01.413561 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.2.15 configured -- resuming normal operations
[Mon Mar 04 19:23:01.413653 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

It is pretty clear, that there is an error with apache or php (both should be logged by nextcloud-app). But I need to see the error log entries. How do I do this?

like image 735
Leif Avatar asked Mar 04 '19 18:03

Leif


People also ask

How do I get full docker logs?

First of all, to list all running containers, use the docker ps command. Then, with the docker logs command you can list the logs for a particular container. Most of the time you'll end up tailing these logs in real time, or checking the last few logs lines.

How do I monitor logs from a docker container?

Viewing Container Logs You can use docker ps -a to get the IDs and names of your containers. The logs command prints the container's entire log output to your terminal. The output will not be continuous. If you'd like to keep streaming new logs, add the --follow flag to the command.

How do I access Nextcloud logs?

The logfile of Nextcloud is located in the data directory /var/www/nextcloud/data/nextcloud. log .

Where is Nextcloud data stored docker?

The Nextcloud installation and all data beyond what lives in the database (file uploads, etc.) are stored in the unnamed docker volume volume /var/www/html .


1 Answers

Logs are redirected to nextcloud's data folder.

From your nextcloud's root, try with:

$ tail nextcloud/data/nextcloud.log

(or the folder you set for data storage).

like image 152
Marc Bria Avatar answered Oct 20 '22 18:10

Marc Bria