Support intro
Sorry to hear you’re facing problems
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
Nextcloud version (eg, 20.0.5): 27.0.2.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.6 LTS
Apache or nginx version (eg, Apache 2.4.25): 2.4 (not sure)
PHP version (eg, 7.4): 8.2.9
The issue you are facing:
I’m not able to access the webinterface, which times out. Loading files from the Windows client or IOS app works.
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
Not sure, but it started happening when I got a new router. Although it worked for the first 24 hours
The output of your Nextcloud log in Admin > Logging:
Can’t access it since the webinterface doesn’t work. But here’s a pastebin of /data/nextcloud/nextcloud.log. I had to shorten it down because pastebin wouldn’t allow me to post the full log, but I think this is the most relevant part: nextcloud.log - Pastebin.com
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'default_phone_region' => 'CH',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'password' => '',
'port' => 6379,
),
'instanceid' => '',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => '',
1 => '',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '27.0.2.1',
'overwrite.cli.url' => '',
'dbname' => 'nextcloud',
'dbhost' => 'db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '',
'installed' => true,
'loglevel' => 2,
'maintenance' => false,
'overwriteprotocol' => 'https',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'noreply',
'mail_domain' => '',
'mail_smtpauth' => 1,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => '',
'mail_smtpport' => '',
'mail_smtpname' => '',
'mail_smtppassword' => '',
);
The output of your Apache/nginx/system log in /var/log/____
:
Can’t access any of those file in the docker container. It says apache2/error.log is a device file
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
I think this is the same as I posted above: nextcloud.log - Pastebin.com
Here’s my docker-compose file
version: '3'
services:
db:
image: mariadb:10.5
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
env_file:
- db.env
redis:
image: redis:alpine
restart: always
app:
image: nextcloud:27-apache
restart: always
ports:
- 80:80
volumes:
- nextcloud:/var/www/html
- ./config:/var/www/html/config
- /data/nextcloud:/var/www/html/data
environment:
# - VIRTUAL_HOST=
# - LETSENCRYPT_HOST=
# - LETSENCRYPT_EMAIL=
- MYSQL_HOST=db
- REDIS_HOST=redis
env_file:
- db.env
depends_on:
- db
- redis
networks:
# - proxy-tier
- default
cron:
image: nextcloud:27-apache
restart: always
volumes:
- nextcloud:/var/www/html
- ./config:/var/www/html/config
- /data/nextcloud:/var/www/html/data
entrypoint: /cron.sh
depends_on:
- db
- redis
# proxy:
# build: ./proxy
# restart: always
# ports:
# - 80:80
# - 443:443
# labels:
# com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
# volumes:
# - certs:/etc/nginx/certs:ro
# - vhost.d:/etc/nginx/vhost.d
# - html:/usr/share/nginx/html
# - /var/run/docker.sock:/tmp/docker.sock:ro
# networks:
# - proxy-tier
#
# letsencrypt-companion:
# image: nginxproxy/acme-companion
# restart: always
# volumes:
# - certs:/etc/nginx/certs
# - acme:/etc/acme.sh
# - vhost.d:/etc/nginx/vhost.d
# - html:/usr/share/nginx/html
# - /var/run/docker.sock:/var/run/docker.sock:ro
# networks:
# - proxy-tier
# depends_on:
# - proxy
volumes:
db:
nextcloud:
# certs:
# acme:
# vhost.d:
# html:
#networks:
# proxy-tier:
I have Nextcloud running behing haproxy, which also manages the SSL certificates. That’s why it’s all commented out in the docker-compose file. As said this setup worked fine until I switched routers. But after the switch the web-ui still worked for about 24 hours. I don’t know exactly when it stopped working. I already tried disabling the firewall of the router and the port-forwarding rules are setup for ports 80 and 443 (TCP/UDP also tried only TCP).
If you need more information about my setup or system feel free to ask.
Thanks for your help in advance!