Upload not working for non-users

Nextcloud version : 19.0.5 - 19.0.5.2
Operating system and version: Linux 4.19.107-Unraid #1 SMP Thu Mar 5 13:55:57 PST 2020 x86_64
Apache or nginx version: nginx/1.18.0 (fpm-fcgi)
PHP version (eg, 7.1): 7.3.24

The issue you are facing:

When people who are not users of my Nextcloud server try to upload data, they get an error message “An unknown error occurred”. I was able to replicate this locally on my machine with the Nextcloud server on the LAN getting the same error “An unknown error occurred” and occasional I also got the error, server disconnected. However I think this is dependent on this unknown error because when users have an account they can upload just fine, and I can upload just fine when I am logged into my account.

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

Steps to replicate it:

  1. Share folder for someone to upload in, changing the link to allow upload and editing or even simply upload only.
  2. Share the link, and the user with this link cannot upload anything. They can create new folders but they can’t upload.

The output of your Nextcloud log in Admin > Logging: Sorry the log is so long.

{"reqId":"pV3coE4MWkLIzYtz1jYk","level":3,"time":"2019-01-04T01:00:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"ecHivfoPzbDUo8euKVIm","level":3,"time":"2019-01-04T01:15:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"9DiTCHTguDyG6v6k4iIf","level":3,"time":"2019-01-04T01:30:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"zaEcw7hoBUDar5gyigfu","level":3,"time":"2019-01-04T01:45:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"Sp0XsXhJTyKH2QRpYqhw","level":3,"time":"2019-01-04T02:00:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"DraoAnytJSeBiB6Dmh1P","level":3,"time":"2019-01-04T02:15:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"d9czPWeyn8exmTx7FzGA","level":3,"time":"2019-01-04T02:30:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"guFuUtSYFwkw9ptvCOj5","level":3,"time":"2019-01-04T02:45:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"TUkDv3UWwTxMjgd26oKf","level":3,"time":"2019-01-04T03:00:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"sEbtYj9x94uYQkZoU668","level":3,"time":"2019-01-04T03:15:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"OorrrMDaT79muQkKdfQF","level":3,"time":"2019-01-04T03:30:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"xeJMjMxtzs3cgb35xgFc","level":3,"time":"2019-01-04T03:45:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"FAiaN7QvL9cwOZt5gKhV","level":3,"time":"2019-01-04T04:00:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"G8ymZwIMcMlS8v3vUQem","level":3,"time":"2019-01-04T04:15:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"CE8RKlO69vTQoIrvb9Mc","level":3,"time":"2019-01-04T04:30:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"4TsOCMggoa0iz2C67L2S","level":3,"time":"2019-01-04T04:45:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"a9tLYYUrWRWdAXuzpwiW","level":3,"time":"2019-01-04T05:00:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"nMH1hPrjdBOhTZirbsm5","level":3,"time":"2019-01-04T05:15:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"DpZDrKkw1EcZuKwRkNoH","level":3,"time":"2019-01-04T05:30:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"amQWVV5yEKqP52Y3hPTf","level":3,"time":"2019-01-04T05:45:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"3m5OU6rAk2wxgkoeKemY","level":3,"time":"2019-01-04T06:00:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"3fhoTWmnRJox8mh5vdad","level":3,"time":"2019-01-04T06:15:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"aoLOiSBLecTYCrleH579","level":3,"time":"2019-01-04T06:30:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/config\/www\/nextcloud\/cron.php","line":41,"args":["\/config\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/config\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}

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',
  'datadirectory' => '/data',
  'instanceid' => 'ocmlx80orl7e',
  'passwordsalt' => 'SeeminglyRandomCharacters',
  'secret' => 'MuchLongerStringOfSeeminglyRandomCharacters',
  'trusted_domains' => 
  array (
    0 => 'a:LAN:IP',
    1 => 'cloud.URL',
  ),
  'dbtype' => 'mysql',
  'version' => '19.0.5.2',
  'overwrite.cli.url' => 'https://a:LAN:IP',
  'dbname' => 'NameOfCloud',
  'dbhost' => 'a:different:LAN:IP',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'adminUser',
  'dbpassword' => 'PASSWORD',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____: I can’t seem to find this log. Let me know if you need it and how to find it and I shall do so.

PASTE HERE

I think the logs does not help.
Please look in gui settings for sharing. Perhaps something is disabled.

Hey Devnull,
Good to know the logs don’t help. I may have missed something on the sharing settings page. Here is a screen grab of it. I have been through it a few times and I thought I had caught everything though.

Anyone else have any ideas why I can’t upload?