Sorry to hear you’re facing problems
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:
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, 12.0.2): 16.0.4
Operating system and version (eg, Ubuntu 17.04): Docker (with pgsql) under macOS (i5 16G)
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.15.2
PHP version (eg, 7.1): in Docker
The issue you are facing: Performance is too slow
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install Nextcloud via docker-compose (most same as https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/insecure/postgres/fpm )
- Installation wizard timeout (504) even I set the nginx timeout setting to 600s (10mins). This means the installation can’t finish in 10mins.
- I tried use cli to finish the installation in docker container, it could be done well, but also was very slow.
- All operations such as listing files, doing any setting on web (via Chrome) are definitely slow. The average response time (PHP) in Chrome network console reach to 10s.
The output of your Nextcloud log in Admin > Logging:
All the logs seems just normal only with INFO/DEBUG something, no ERROR/WARNING etc.
The output of your config.php file in
/path/to/nextcloud (make sure you remove any identifiable information!):
<?php $CONFIG = array ( 'memcache.local' => '\\OC\\Memcache\\APCu', '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, ), ), 'passwordsalt' => '', 'secret' => ', 'trusted_domains' => array ( 0 => 'localhost', ), 'datadirectory' => '/var/www/html/data', 'dbtype' => 'pgsql', 'version' => '188.8.131.52', 'overwrite.cli.url' => 'http://localhost', 'dbname' => 'nextcloud', 'dbhost' => 'db', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => '', 'dbpassword' => '', 'installed' => true, 'instanceid' => '', 'maintenance' => false, 'theme' => '', 'loglevel' => 2, );
version: '3' services: db: image: postgres:alpine restart: always volumes: - ./db:/var/lib/postgresql/data app: image: nextcloud:fpm-alpine restart: always ports: - 9090:9000 volumes: - ./app:/var/www/html environment: - POSTGRES_HOST=db - POSTGRES_DB=nextcloud depends_on: - db
And my nginx is in the host server.
The output of your Apache/nginx/system log in
Here may be the installation timeout 504 in nginx:
2019/09/15 12:07:10 [error] 6066#0: *5195 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 192.168.1.1, server: localhost, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9090"
When I am using like listing files, the app container CPU in
docker stats will come up to 50%~80%, and come down after the operation is done.
All these test is on my local Mac which server and client just in one computer. I never met any local web server responding so slow before. Hope anyone could help!