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): 22.1.1.2
Operating system and version (eg, Ubuntu 20.04): YunoHost 4.4.3 (Debian 10.13)
Apache or nginx version (eg, Apache 2.4.25): nginx/1.14.2
PHP version (eg, 7.4): PHP 7.3.31-1~deb10u2
The issue you are facing:
Hello, I am a newbie here trying to maintain his own server. Its storage ( installed on a raspberry pi 3 B+) was reaching full capacity and I tried to empty the trash bin following instructions from here:
Trash bin: AbstractTrash::getSize() must be of the type integer, float returned · Issue #13160 · nextcloud/server · GitHub and here Can't access to the trashbin - #16 by Johannes_Kattnig
After following them I was able to see the trash bin in the nextcloud website, which I couldn’t at the beginning. However I couldn’t delete files there. I tried the command specified in those links: sudo -u www-data php occ trashbin:cleanup --all-users
however there was an error message saying the web server had no permissions to write on config. So I dug more and found other links that suggested to run this to give permissions to the web server:
chown -R www-data:www-data /var/www/owncloud/config
I changed owncloud for nextcloud and run it. Then I run again sudo -u www-data php occ trashbin:cleanup --all-users
and since then when I tried to reach mydomain/nextcloud it was giving error. I found in the config folder a new file called config.save.php that was not there and I don’t know why on earth I decided to delete it (don’t be to hars, I am still learning, probably there was the main mistake). Since then when I try to reach mydomain/nextcloud there is a white background and the message File not found. I cannot reach it via web and all my devices connected cannot either. I can access the server via ssh or its own yunohost web interface though.
Thank you in advance for your help and your attention, it is highly appreciated.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
chown -R www-data:www-data /var/www/owncloud/config
sudo -u www-data php occ trashbin:cleanup --all-users
rm config.save.php
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => 'XXXX',
'secret' => 'XXXX',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'mydomain/nextcloud',
),
'datadirectory' => 'nextcloud/data',
'dbtype' => 'mysql',
'version' => '22.2.10.2',
'overwrite.cli.url' => 'https://mydomain/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxx',
'dbpassword' => 'xxx',
'installed' => true,
'instanceid' => 'xxx',
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'updatechecker' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'integrity.check.disabled' => true,
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'hashing_default_password' => true,
'localstorage.allowsymlinks' => true,
'logout_url' => 'https://mydomain/yunohost/sso/?action=logout',
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
'maintenance' => false,
'loglevel' => 2,
'simpleSignUpLink.shown' => false,
'config_is_read_only' => false,
);
The output of your Apache/nginx/system log in /var/log/nginx/mydomain-error.log
:
2023/01/19 15:34:38 [error] 1128#1128: *4853 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: XXX, server: mydomain, request: "GET /nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
2023/01/19 15:34:38 [error] 1128#1128: *4853 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx, server: mydomain, request: "GET /nextcloud/nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
2023/01/19 15:35:40 [error] 1128#1128: *4856 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx, server: mydomain, request: "GET /nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
2023/01/19 15:35:40 [error] 1128#1128: *4856 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx, server: mydomain, request: "GET /nextcloud/nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
2023/01/19 15:36:42 [error] 1128#1128: *4859 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx, server: mydomain, request: "GET /nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
2023/01/19 15:36:42 [error] 1128#1128: *4859 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx, server: mydomain, request: "GET /nextcloud/nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
2023/01/19 15:37:44 [error] 1128#1128: *4863 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx, server: mydomain, request: "GET /nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
2023/01/19 15:37:44 [error] 1128#1128: *4863 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx, server: mydomain, request: "GET /nextcloud/nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
2023/01/19 15:38:45 [error] 1128#1128: *4866 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx, server: mydomain, request: "GET /nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
2023/01/19 15:38:45 [error] 1128#1128: *4866 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: xxx, server: mydomain, request: "GET /nextcloud/nextcloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "mydomain"
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.
/var/www/nextcloud/
has no nextcloud.log, is empty.