Local storage option not available

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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 :heart:

Nextcloud version (eg, 20.0.5): 24.0.7
Operating system and version (eg, Ubuntu 20.04): nextcloud AIO docker and Xubuntu 22.10
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 8.0.25

The issue you are facing: Basically, I can’t see the “local” option inside the admin settings

I want to share the /shared folder from host.

I’ve read lot of posts and maybe I’m missing something :(, sorry if that’s the case. I really don’t like to open issues for these kind of things

What I’ve did and tested:

  1. I’ve tested with NEXTCLOUD_MOUNT env var, and with volumes /shared:/shared/shared:/data/shared, html folder… all the things (I suppose)
  2. If I do bash to the docker container with sudo docker exec -it nextcloud-aio-mastercontainer bash and I see the directory and can write it
  3. If I do (inside the docker) sudo -u www-data bash, I can see the directory and can write it

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

Steps to replicate it:

  1. Follow the guide GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All In One and provides easy deployment and maintenance with most features included in this one Nextcloud instance.

The output of your Nextcloud log in Admin > Logging:

Log is empty

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,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'nextcloud-aio-redis',
    'password' => 'pass',
    'port' => 6379,
  ),
  'overwritehost' => 'host',
  'overwriteprotocol' => 'https',
  'passwordsalt' => 'pass',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'host',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '24.0.7.1',
  'overwrite.cli.url' => 'host',
  'dbname' => 'nextcloud_database',
  'dbhost' => 'nextcloud-aio-database',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_nextcloud',
  'dbpassword' => 'pass',
  'installed' => true,
  'instanceid' => 'id',
  'loglevel' => '2',
  'log_type' => 'file',
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_rotate_size' => '10485760',
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'enabledPreviewProviders' =>
  array (
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MarkDown',
    3 => 'OC\\Preview\\MP3',
    4 => 'OC\\Preview\\TXT',
    5 => 'OC\\Preview\\OpenDocument',
    6 => 'OC\\Preview\\Movie',
    0 => 'OC\\Preview\\Imaginary',
  ),
  'enable_previews' => true,
  'upgrade.disable-web' => true,
  'mail_smtpmode' => 'smtp',
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 30',
  'activity_expire_days' => '30',
  'simpleSignUpLink.shown' => false,
  'share_folder' => '/Shared',
  'tempdirectory' => '/mnt/ncdata/tmp/',
  'one-click-instance' => true,
  'one-click-instance.user-limit' => 100,
  'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
  'htaccess.RewriteBase' => '/',
  'files_external_allow_create_new_local' => false,
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '::1',
  ),
  'allow_local_remote_servers' => true,
  'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
);

The output of your Apache/nginx/system log in /var/log/____:

Trying to fix docker.sock permissions internally...
Creating docker group internally with id 999
Initial startup of Nextcloud All In One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080

If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443

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.

Empty

After adding that variable to the mastercontainer, did you restart your containers via the AIO interface at least once?

1 Like

In fact I’ve restarted the entire host :frowning:

If I execute echo $NEXTCLOUD_MOUNT I see the right value

Can you post the complete nextcloud-aio-nextcloud container logs here?

You mean nextcloud_aio_nextcloud/_data/data/nextcloud.log?

If is that, I don’t see logs since I’ve enabled “external storage” app, this is the last one log I have:

{"reqId":"Jr88jpo6sOOzXiNjx0kq","level":2,"time":"2022-12-01T07:53:44+00:00","remoteAddr":"","user":"--","app":"files","method":"","url":"--","message":"User admin still has unscanned files after running background scan, background scan might be stopped prematurely","userAgent":"--","version":"24.0.7.1","data":{"app":"files"}}

Is there any way to completely “remove” or “clear” external storage app? I’ve tried to disable and enable it again but no logs appears.

Just FYI: I’ve tested with sftp and it works

No, I want the output of sudo docker logs nextcloud-aio-nextcloud

Configuring Redis as session handler...
Setting php max children...
System config value tempdirectory set to string /mnt/ncdata/tmp/
Applying one-click-instance settings...
System config value one-click-instance set to boolean true
System config value one-click-instance.user-limit set to integer 100
System config value one-click-instance.link set to string https://nextcloud.com/all-in-one/
support already enabled
Adjusting log files...
System config value logfile set to string /var/www/html/data/nextcloud.log
Config value logfile for app admin_audit set to /var/www/html/data/audit.log
Applying network settings...
System config value trusted_domains => 1 set to string nextcloud.****
System config value overwrite.cli.url set to string https://nextcloud.****/
System config value htaccess.RewriteBase set to string /
.htaccess has been updated
System config value files_external_allow_create_new_local set to boolean false
System config value trusted_proxies => 0 set to string 127.0.0.1
System config value trusted_proxies => 1 set to string ::1
Config value base_endpoint for app notify_push set to https://nextcloud.****/push
Config value wopi_url for app richdocuments set to https://nextcloud.****/
System config value allow_local_remote_servers set to boolean true
System config value enabledPreviewProviders => 0 set to string OC\Preview\Imaginary
System config value preview_imaginary_url set to string http://nextcloud-aio-imaginary:9000
Activating collabora config...
Activated any config changes
[2022-12-01 08:25:56.322081 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:27:56.317830 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:29:56.336164 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:31:56.325845 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:33:56.356535 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:35:56.355568 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:37:56.381163 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:39:56.318474 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:41:56.303510 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:43:56.331966 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:45:56.385246 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:47:56.350457 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:49:56.350671 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:51:56.338695 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:53:56.351866 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:55:56.332864 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:57:56.350397 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 08:59:56.342022 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:01:56.353273 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:03:56.337726 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:05:56.347777 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:07:56.356319 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:09:56.361063 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:11:56.394968 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:13:56.324933 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:15:56.375365 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:17:56.331554 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials
[2022-12-01 09:19:56.362615 +00:00] WARN [notify_push::connection] src/connection.rs:75: Invalid credentials

It looks like you have not restarted the containers from the AIO interface. Please do so and it should work.

OMG what a noob!

I’ve created a PR → Update readme.md by sergiocasero · Pull Request #1465 · nextcloud/all-in-one · GitHub, do you think it’s necessary?

Thanks again! Sergio.

1 Like

Since you are not the first one that has the problem, I think it makes indeed sense, thanks :slight_smile: