Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Nextcloud

Featured Replies

11 minutes ago, Boyturtle said:

Apologies, I should have said that I have done this already and I get the same outcome.

Could not open input file: /config/www/nextcloud/occ as it is totally missing: Contents of /config/www/nextcloud are only

drwxrwxr-x 1 abc abc 284 Dec 17 18:12 apps
drwxrwxr-x 1 abc abc  64 Dec 17 18:12 config
-rw-rw-r-- 1 abc abc  57 Dec 17 18:12 index.php
-rw-rw-r-- 1 abc abc  57 Dec 17 18:12 public.php
-rw-rw-r-- 1 abc abc  57 Dec 17 18:12 remote.php
-rw-rw-r-- 1 abc abc  57 Dec 17 18:12 status.php
drwxrwxr-x 1 abc abc   0 Dec 17 18:12 themes
drwxrwxr-x 1 abc abc  42 Feb 12  2020 updater

 

I've run the find command and I can't find folder /occ anywhere in the docker

 

Go to your /data folder, there should be a folder updater-randomstring inside backups should be your files. copy them to /config/www/nextcloud/

Do backup before you do anything tho

  • Replies 7.1k
  • Views 1.7m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Here's my list of instructions....    Use them at your own risk.....   If upgrading to v12 please see here:   ##Turn on maintenance mode docker exec -it nextcloud occ m

  • When i did enter the docker container with ssh and did run the following command the error message was gone   sudo -u abc php /config/www/nextcloud/occ db:add-missing-indices   Onl

  • gustomucho
    gustomucho

    After tinkering with this for a while, it seems the solution is much simpler than I thought. For some reason, the only step required is to modify the config.php file. No need to install ffmp

Posted Images

Hey everyone. So I am following some of the suggestions that @skois has been recommending in regards to the large file 504 gateway timeout error. I accessed my NextCloud console and edited the /config/php/php-local.ini file to include the necessary lines to allow for a greater upload size. I thought this may have been the fix, but alas I am stuck with this 504 Gateway on MOVE error. I have attached my most recent error log below:

[PHP] Error: Error: rmdir(/data/USER/uploads/516641516): No such file or directory at /config/www/nextcloud/lib/private/Files/Storage/Local.php#125 at <<closure>>

 0. <<closure>>
    OC\Log\ErrorHandler::onError(2, "rmdir(/data/rma ... y", "/config/www/nex ... p", 125, {path: "uploads/ ... }})
 1. /config/www/nextcloud/lib/private/Files/Storage/Local.php line 125
    rmdir("/data/USER/uploads/516641516")
 2. /config/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php line 311
    OC\Files\Storage\Local->rmdir("uploads/516641516")
 3. <<closure>>
    OC\Files\Storage\Wrapper\Encryption->rmdir("uploads/516641516")
 4. /config/www/nextcloud/apps/files_trashbin/lib/Storage.php line 183
    call_user_func([OC\Files\Storag ... "], "uploads/516641516")
 5. /config/www/nextcloud/apps/files_trashbin/lib/Storage.php line 118
    OCA\Files_Trashbin\Storage->doDelete("uploads/516641516", "rmdir")
 6. /config/www/nextcloud/lib/private/Files/View.php line 1167
    OCA\Files_Trashbin\Storage->rmdir("uploads/516641516")
 7. /config/www/nextcloud/lib/private/Files/View.php line 350
    OC\Files\View->basicOperation("rmdir", "/516641516", ["delete"])
 8. /config/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 309
    OC\Files\View->rmdir("/516641516")
 9. /config/www/nextcloud/apps/dav/lib/Upload/FutureFile.php line 102
    OCA\DAV\Connector\Sabre\Directory->delete()
10. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 168
    OCA\DAV\Upload\FutureFile->delete()
11. /config/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php line 95
    Sabre\DAV\Tree->move("uploads/USER/516641516/.file", "files/USER/Test/5GB.txt")
12. /config/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php line 77
    OCA\DAV\Upload\ChunkingPlugin->performMove("uploads/USER/516641516/.file", "files/USER/Test/5GB.txt")
13. /config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    OCA\DAV\Upload\ChunkingPlugin->beforeMove("uploads/USER/516641516/.file", "files/USER/Test/5GB.txt")
14. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 632
    Sabre\DAV\Server->emit("beforeMove", ["uploads/rmathe ... "])
15. /config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpMove(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
16. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 474
    Sabre\DAV\Server->emit("method:MOVE", [Sabre\HTTP\Requ ... }])
17. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 251
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
18. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 319
    Sabre\DAV\Server->start()
19. /config/www/nextcloud/apps/dav/lib/Server.php line 332
    Sabre\DAV\Server->exec()
20. /config/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
21. /config/www/nextcloud/remote.php line 167
    require_once("/config/www/nex ... p")

MOVE /remote.php/dav/uploads/USER/516641516/.file
from 10.10.150.1 by USER at 2020-12-18T05:26:36+00:00

I hope this may potentially shed some light on this common issue we are all facing. I get stuck whenever I try and upload files that are a byte larger than 2GB, and it all just seems so bizarre. All I want are 5GB uploads to work without users seeing that nasty red "Gateway-Timeout" banner. If there is any other information or testing I can do to help out, please let me know 🙂

18 hours ago, TBoneStaek said:

Running (I believe) NC 19.xxx. Recently updated a few apps within NC and now I can't access it locally or otherwise.

Log shows this error:

PHP Fatal error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found in /config/www/nextcloud/apps/printer/lib/AppInfo/Application.php on line 33

 

--edit: I used our latest backup.

That's exactly what happened here after I tried to update some add-ons. Last 3 Updates threw an error, after that NC is dead.

What can we do?

 

Regards,

Thomas

 

Edited by VincentVegas
edit

4 hours ago, VincentVegas said:

--edit: I used our latest backup.

That's exactly what happened here after I tried to update some add-ons. Last 3 Updates threw an error, after that NC is dead.

What can we do?

 

Regards,

Thomas

 

Yeah, I went a different route. Someone on Discord suggested I remove the offending file Application.php so I changed it to Application (BAK).php. Restarted NextCloud and I was able to log in and disable the printer app. I tried re-adding it but the problem arose again. Dunno what to do but not sure I've even used that app anyone or would miss it any time soon. So... ta-da!?

On 12/17/2020 at 9:47 PM, skois said:

Go to your /data folder, there should be a folder updater-randomstring inside backups should be your files. copy them to /config/www/nextcloud/

Do backup before you do anything tho

Unfortunately, NC wasn't happy at all and I couldn't even get into console properly. I just restored appdata from CA Backup/Restore and it is now back up, but in the earlier version. I will retry the update over the Christmas break, when I have a bit of spare time. Thanks for your input.

On 12/16/2020 at 1:57 PM, Falcowe said:

No it doesn't. I do get a different error though than the upload and edit side gets. 

For the upload and editing I get the error: "An unknown error has occurred". And nothing happens after that.

With the upload only I get the error: "Could not upload "[FILE NAME]" ". I this case it was a mov file. 

 

Finally you left a note to "Please hide sensitive info!" did I post sensitive info? I thought I hadn't. 

Oops I completely missed your request to post the config.php. Now your Hide sensitive info makes sense! Ok here it goes: 

 

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'random_string_of_characters',
  'passwordsalt' => 'a_different_random_string_of_characters',
  'secret' => 'not_your_string_of_random_characters_;)',
  'trusted_domains' => 
  array (
    0 => 'LAN-IP:NexcloudPort',
    1 => 'URL-for-nextcloud',
  ),
  'dbtype' => 'mysql',
  'version' => '19.0.6.2',
  'overwrite.cli.url' => 'https://LAN-IP:DifferentNextcloudPort',
  'dbname' => 'NameOfHost',
  'dbhost' => 'LAN-IP:dbHostPort',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'MyUserName',
  'dbpassword' => 'MyPassword',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);
 

 

Also, how do you post code or other things so they show up in that box you can scroll through? 

So My nextcloud ask me to run 

occ db:convert-filecache-bigint'

While the instance is offline, but how do I do that?

If I just do this:

docker exec nextcloud sudo -u abc php7 /config/www/nextcloud/occ db:convert-filecache-bigint

What happens is this:

image.png.b4486002db139609ccadff05f679743a.png

y doesnt work

Tried this and it doesnt work

docker exec nextcloud sudo -u abc php7 /config/www/nextcloud/occ y

Both comes with unknown command/command not found.

1 hour ago, Mihle said:

So My nextcloud ask me to run 


occ db:convert-filecache-bigint'

While the instance is offline, but how do I do that?

If I just do this:


docker exec nextcloud sudo -u abc php7 /config/www/nextcloud/occ db:convert-filecache-bigint

What happens is this:

image.png.b4486002db139609ccadff05f679743a.png

y doesnt work

Tried this and it doesnt work


docker exec nextcloud sudo -u abc php7 /config/www/nextcloud/occ y

Both comes with unknown command/command not found.

Remove the command and execute it after you have exec into the container.

1 hour ago, saarg said:

Remove the command and execute it after you have exec into the container.

How do you "exec in to the container"?

 

Edited by Mihle

1 hour ago, Mihle said:

How do you "exec in to the container"?

 

You already did it with the command you posted. You simply split the command in two, removing everything after nextcloud. Then use the rest after nextcloud as the next command.

5 minutes ago, saarg said:

You already did it with the command you posted. You simply split the command in two, removing everything after nextcloud. Then use the rest after nextcloud as the next command.

image.png.1418479fe180a7b7539938f71d1b32de.png

 

 

image.png.258b8e39f1bb67f04d89938340deb88e.png

Edited by Mihle

2 hours ago, Mihle said:

image.png.1418479fe180a7b7539938f71d1b32de.png

 

 

image.png.258b8e39f1bb67f04d89938340deb88e.png

Sorry about that. You need -it in front of nextcloud.

49 minutes ago, saarg said:

Sorry about that. You need -it in front of nextcloud.

If you mean like this it doesnt work:

image.png.c85679743b2d452ceeb9b8282d62c94d.png

35 minutes ago, Mihle said:

If you mean like this it doesnt work:

image.png.c85679743b2d452ceeb9b8282d62c94d.png

Long time since I actually did command line stuff, so I'm forgetting everything. You also need to add bash after nextcloud. Or you can do the simple thing and click on the nextcloud icon on the docker page and select console. Then you do the same thing. Then run the last command there.

1 hour ago, saarg said:

Long time since I actually did command line stuff, so I'm forgetting everything. You also need to add bash after nextcloud. Or you can do the simple thing and click on the nextcloud icon on the docker page and select console. Then you do the same thing. Then run the last command there.

That is so much easier, should have just done that but I didnt know about it..

18 hours ago, Boyturtle said:

Unfortunately, NC wasn't happy at all and I couldn't even get into console properly. I just restored appdata from CA Backup/Restore and it is now back up, but in the earlier version. I will retry the update over the Christmas break, when I have a bit of spare time. Thanks for your input.

Good to hear you are back online, i haven't had to roll back an update ever, but having appdata backups is a good thing!

14 hours ago, Falcowe said:

Oops I completely missed your request to post the config.php. Now your Hide sensitive info makes sense! Ok here it goes: 

 

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'random_string_of_characters',
  'passwordsalt' => 'a_different_random_string_of_characters',
  'secret' => 'not_your_string_of_random_characters_;)',
  'trusted_domains' => 
  array (
    0 => 'LAN-IP:NexcloudPort',
    1 => 'URL-for-nextcloud',
  ),
  'dbtype' => 'mysql',
  'version' => '19.0.6.2',
  'overwrite.cli.url' => 'https://LAN-IP:DifferentNextcloudPort',
  'dbname' => 'NameOfHost',
  'dbhost' => 'LAN-IP:dbHostPort',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'MyUserName',
  'dbpassword' => 'MyPassword',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);
 

 

Also, how do you post code or other things so they show up in that box you can scroll through? 

Hmm, config looks ok, atleast for local it should work. Is there any logs on nextcloud logging panel?

For external i would add this:

 

  'trusted_domains' => 
  array (
    0 => '10.10.10.254:9443',
    1 => 'cloud.mydomain.me',
  ),
  'trusted_proxies' => 
  array (
    0 => 'NginxProxyManager',
  ),
  'overwrite.cli.url' => 'https://10.10.10.254:9443',
  'overwriteprotocol' => 'https',
  'overwritehost' => 'cloud.mydomain.me',

if you using swag 
change NginxProxyManager with swag 
or the name of your docker if you have named it different



For the code block there is a button on the top of the edit box </> 

1 hour ago, skois said:

Hmm, config looks ok, atleast for local it should work. Is there any logs on nextcloud logging panel?

For external i would add this:

 


  'trusted_domains' => 
  array (
    0 => '10.10.10.254:9443',
    1 => 'cloud.mydomain.me',
  ),
  'trusted_proxies' => 
  array (
    0 => 'NginxProxyManager',
  ),
  'overwrite.cli.url' => 'https://10.10.10.254:9443',
  'overwriteprotocol' => 'https',
  'overwritehost' => 'cloud.mydomain.me',

if you using swag 
change NginxProxyManager with swag 
or the name of your docker if you have named it different



For the code block there is a button on the top of the edit box </> 

Hey skios, thanks for your help. Sadly the changes to the config file didn't change the errors I'm getting. And there don't appear to be any errors in the log of nextcloud that would indicate why noting is uploading over a certain size. 

The changes I made to the config file were:

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'random characters',
  'passwordsalt' => 'different randoom characters',
  'secret' => 'longer string of random characters',
  'trusted_domains' => 
  array (
    0 => 'LAN IP: And nexcloud port',
    1 => 'mycloudURL',
  ),
  'trusted_proxies' =>
  array (
  0 => 'swag',
  ),
  'dbtype' => 'mysql',
  'version' => '19.0.6.2',
  'overwrite.cli.url' => 'https://LANIP:different nextcloud port',
  'overwriteprotocol' => 'https',
  'overwritehost' => 'mycloudURL',
  'dbname' => 'MyServerName+cloud',
  'dbhost' => 'LANIP:DPPort',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'its_me!',
  'dbpassword' => 'myPassword',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

Any further ideas?

Hey skios, thanks for your help. Sadly the changes to the config file didn't change the errors I'm getting. And there don't appear to be any errors in the log of nextcloud that would indicate why noting is uploading over a certain size. 
The changes I made to the config file were:
php$CONFIG = array ( 'memcache.local' => '\\OC\\Memcache\\APCu', 'datadirectory' => '/data', 'instanceid' => 'random characters', 'passwordsalt' => 'different randoom characters', 'secret' => 'longer string of random characters', 'trusted_domains' =>  array (   0 => 'LAN IP: And nexcloud port',   1 => 'mycloudURL', ), 'trusted_proxies' => array ( 0 => 'swag', ), 'dbtype' => 'mysql', 'version' => '19.0.6.2', 'overwrite.cli.url' => 'https://LANIP:different nextcloud port', 'overwriteprotocol' => 'https', 'overwritehost' => 'mycloudURL', 'dbname' => 'MyServerName+cloud', 'dbhost' => 'LANIP:DPPort', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'its_me!', 'dbpassword' => 'myPassword', 'installed' => true, 'maintenance' => false, 'theme' => '', 'loglevel' => 2,);

Any further ideas?

Nope,sorry, can't think of anything else right now [emoji849]

Sent from my Mi 10 Pro using Tapatalk

When I am in my NextCloud UI, it shows that v18.0.2 is available in Stable channel. However, LinuxServer shows v20.0.3-ls111 is the latest release. When I run the command "docker exec -it nextcloud updater.phar", it also shows the latest version as v18.0.2. So what am I missing?

EDITED BIT:  I ended up restoring from [Plugin] CA Appdata Backup / Restore .... Mess around with v20.0.4 after Christmas.

 

Hi,

 

This is doing my head in... What have I done??... And how do I fix??  😕

 

Fix is prolly sooo easy, I just can't see it ATM.

 

I upgraded to 20.0.4 from settings/overview page.

 

Security & setup warnings. 

 

There are some warnings regarding your setup.

The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running "occ db:add-missing-primary-keys" those missing primary keys could be added manually while the instance keeps running.

Missing primary key on table "oc_federated_reshares".

Missing primary key on table "oc_systemtag_object_mapping".

Missing primary key on table "oc_comments_read_markers".

Missing primary key on table "oc_collres_resources".

Missing primary key on table "oc_collres_accesscache".

Missing primary key on table "oc_filecache_extended".

Edited by Joc

EDITED BIT:  I ended up restoring from [Plugin] CA Appdata Backup / Restore .... Mess around with v20.0.4 after Christmas.
 
Hi,
 
This is doing my head in... What have I done??... And how do I fix??  [emoji53]
 
Fix is prolly sooo easy, I just can't see it ATM.
 
I upgraded to 20.0.4 from settings/overview page.
 
Security & setup warnings. 
 
There are some warnings regarding your setup.
The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running "occ db:add-missing-primary-keys" those missing primary keys could be added manually while the instance keeps running.
Missing primary key on table "oc_federated_reshares".
Missing primary key on table "oc_systemtag_object_mapping".
Missing primary key on table "oc_comments_read_markers".
Missing primary key on table "oc_collres_resources".
Missing primary key on table "oc_collres_accesscache".
Missing primary key on table "oc_filecache_extended".
By running "occ db:add-missing-primary-keys" those missing primary keys could be added manually while the instance keeps running.
Right click on docker and go to console

Sent from my Mi 10 Pro using Tapatalk

Hello,

 

I recently changed the IP of my server which broke my external shares on nextcloud. When I click on external storage in the admin settings I am hit with an internal server error and the page won't load.  All other admins settings pages work and load properly. Below is the code from the most recent log. Any ides on hwo to fix this? Thank you

 

 - [22/Dec/2020:11:17:42 -0500] "GET /settings/admin/externalstorages HTTP/1.1" 500 4036 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36 Edg/87.0.664.52"

 

This is form the nginx access log as nothing is showing in the error log

 

Anyone knows how to take care of these errors.

 

There are some warnings regarding your setup.

You are currently running PHP 7.2.18. Upgrade your PHP version to take advantage of performance and security updates provided by the PHP Group as soon as your distribution supports it.

Nextcloud 20 is the last release supporting PHP 7.2. Nextcloud 21 requires at least PHP 7.3.

This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.

bcmath

1 hour ago, mrtek007 said:

Anyone knows how to take care of these errors.

 

There are some warnings regarding your setup.

You are currently running PHP 7.2.18. Upgrade your PHP version to take advantage of performance and security updates provided by the PHP Group as soon as your distribution supports it.

Nextcloud 20 is the last release supporting PHP 7.2. Nextcloud 21 requires at least PHP 7.3.

This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.

bcmath

Might be time to update your container. The latest container has version 7.3.25

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.