[Support] Linuxserver.io - Nextcloud


Recommended Posts

1 minute ago, 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. 

No you didn't! but config.php contains a lot! ;)

Link to comment

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:

 

User uid: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing...
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing...
[cont-init.d] 60-memcache: exited 0.
[cont-init.d] 70-aliases: executing...
[cont-init.d] 70-aliases: exited 1.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
PHP Fatal error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found in /config/www/nextcloud/apps/printer/lib/AppInfo/Application.php on line 33

 

Would rather not have to restore from back up. I'm CLI illiterate though.

 

Thanks!

Link to comment

This was a surprisingly easy Docker to set up!  And to think I avoided it for so long...

 

Incase anyone else is using Caddy v2 for their reverse proxy, or I suffer a huge failure one day:

 

Modify /config/config.php as follows (for completeness, I know this is repeated over and over in this forum):

  'trusted_domains' => 
  array (
    0 => 'unraid_IP:unraid_PORT',
	1 => 'cloud.your_Domain.your_TLD',
  ),
  'trusted_proxies' => array('unraid_IP'),
  'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'),
  'overwritehost' => 'cloud.your_Domain.your_TLD',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://cloud.your_Domain.your_TLD',

And in your caddyfile:

cloud.your_Domain.your_TLD {
  reverse_proxy https://unraid_IP:unraid_PORT {
    transport http {
      tls_insecure_skip_verify
    }
  }	
  encode gzip
  tls email_for_auto_certificate_generation@gmail.com {
  }  
  header {
    # don't advertise "Caddy" as server
    -Server
    # docker ngix server contains all the necessary security headers already - instant A+ at https://scan.nextcloud.com/
    Strict-Transport-Security "max-age=31536000; includeSubDomains;"
  } 	
}

 

Edited by thespooler
Typos
Link to comment

I am having a problem upgrading to v20.04, it would not work from with the webui. I then tried to run the sudo -u abc php updater.phar  from the /config/www/nextcloud/updater/ folder but I get to item 6, Extracting and it fails giving me the following error

Quote

...PHP Warning:  require(/config/www/nextcloud/updater/../version.php): failed to open stream: No such file or directory in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 658
PHP Fatal error:  require(): Failed opening required '/config/www/nextcloud/updater/../version.php' (include_path='.:/usr/share/php7') in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 658

After aborting the update, I am unable to access NC at all, the webui shows Update in process.

I have tried to run sudo -u abc php /config/www/nextcloud/occ maintenance:repair, but it seems I have no directory call occ in /config/www/nextcloud, so something has gone very awry.

Any suggestions, if not for the upgrade, at least to get me back up and running on the older version?

Link to comment
2 minutes ago, Boyturtle said:

I am having a problem upgrading to v20.04, it would not work from with the webui. I then tried to run the sudo -u abc php updater.phar  from the /config/www/nextcloud/updater/ folder but I get to item 6, Extracting and it fails giving me the following error

After aborting the update, I am unable to access NC at all, the webui shows Update in process.

I have tried to run sudo -u abc php /config/www/nextcloud/occ maintenance:repair, but it seems I have no directory call occ in /config/www/nextcloud, so something has gone very awry.

Any suggestions, if not for the upgrade, at least to get me back up and running on the older version?

try running "occ maintenance:repair" or "updater.phar" depending on what you want.
In this docker you dont need the sudo part.

Link to comment
2 minutes ago, skois said:

try running "occ maintenance:repair" or "updater.phar" depending on what you want.
In this docker you dont need the sudo part.

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

 

Link to comment
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

Link to comment

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 🙂

Link to comment
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
Link to comment
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!?

Link to comment
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.

Link to comment
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? 

Link to comment

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.

Link to comment
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.

Link to comment
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.

  • Like 1
Link to comment
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..

Link to comment
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!

Link to comment
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 </> 

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.