[Support] Linuxserver.io - Nextcloud


Recommended Posts

On 12/12/2020 at 2:54 PM, skois said:

 

I use NginxProxyManager, after adding my proxy host i go to /mnt/user/appdata/NginxProxyManager/nginx/proxy_host/numberoftheNChost.conf 
i copied the whole "location / " block and then i edited again the proxy host though webui (npm webui), Advanced tab.
Pasted the location /  block and added the following lines.

proxy_connect_timeout 1d;
proxy_send_timeout 1d;
proxy_read_timeout 1d;
send_timeout 1d;

Anywhere in the block doesn't matter.

Hey mate,
I´m having the same issue, I think. If I share data that takes longer then 15min to download, the download interrupts. I have tried your solution, which did not work for me.

 image.png.a66c25c47ba587f048dea81a3a56f18a.png

The NGINX Proxy Manager saves the chances into the /mnt/user/appdata/NginxProxyManager/nginx/proxy_host/numberoftheNChost.conf file but nobody is able to download large files.

image.png.0b8632a14032ee67e27c0fb4b6d1dac3.png

Do you know any other solution or I´m forced to switch to swag instead?

Link to comment
8 minutes ago, MPHxLegend said:

Hey mate,
I´m having the same issue, I think. If I share data that takes longer then 15min to download, the download interrupts. I have tried your solution, which did not work for me.

 image.png.a66c25c47ba587f048dea81a3a56f18a.png

The NGINX Proxy Manager saves the chances into the /mnt/user/appdata/NginxProxyManager/nginx/proxy_host/numberoftheNChost.conf file but nobody is able to download large files.

image.png.0b8632a14032ee67e27c0fb4b6d1dac3.png

Do you know any other solution or I´m forced to switch to swag instead?

It's been a while and I don't use NMP anymore or unraid at all.
But just to make sure.. you changed the `numberoftheNChost.conf` with the actual number of the conf file right?
it will probably be something like 5.conf or whatever.

Link to comment

Hi, I recently changed from Android to iOS and now i cant sync contacts and calendar.
It seems like iOS cant sync with a username in the format "firstname lastname" nor "firstname.lastname@mail.com".
I have tried with a dummy user that had the username "kaka" and then it worked.

So i need to create a new user for me and migrate all data to that user, what is the easiest way to migrate?

Link to comment

I am on release candidate 2 for Unraid and every time I update nextcloud I have errors. Could it be because no everything on the container is update to work on the new Unraid version 6.10 RC2? I tried to update to 21.0.7 just now and it kept telling me

"The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

Remote Address: 10.10.x.x"

However, when I checked the logs on "cat /mnt/user/appdata/nextcloud/www/nextcloud/data/nextcloud.log" and there was nothing. Has anyone ran into this problem?

Link to comment

I run into the "update in procress" Problem while the last update.. tried to stop the maintenance via ssh with no succes..i did it bei editing the config.php. i^ve tried do do start tzhe update manual, like on the first page in this thread...but still have problems:

docker exec -it nextcloud updater.phar
sh: docker: not found
docker exec -it nextcloud occ maintenance:mode --on
sh: docker: not found
 

I guess the best idea would be an backup restore...i've found them but don't know how to do it..totally noob..

 

Link to comment
20 hours ago, Slaytanic said:

I run into the "update in procress" Problem while the last update.. tried to stop the maintenance via ssh with no succes..i did it bei editing the config.php. i^ve tried do do start tzhe update manual, like on the first page in this thread...but still have problems:

docker exec -it nextcloud updater.phar
sh: docker: not found
docker exec -it nextcloud occ maintenance:mode --on
sh: docker: not found
 

I guess the best idea would be an backup restore...i've found them but don't know how to do it..totally noob..

 

Dont go into the docker console to enter those commands. Use Unraid terminal. Also for manual update start at step 3 on the first post. 

  • Like 1
Link to comment

Its my first time doing any kind of networking in along time. I just made my Unraid server a little while ago. I want to connect it so I can use it as a cloud machine as well. 

 

I am using this guide: https://medium.com/@chrismorris_82249/setup-a-reverse-proxy-nextcloud-server-on-unraid-using-letsencrypt-831905d94f7d

 

I got stuck on let's encrypt where I am getting the following error:

 

Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:

Domain: unraiddnsrosh.duckdns.org
Type: connection
Detail: Fetching http://unraiddnsrosh.duckdns.org/.well-known/acme-challenge/9HVgFbSc0kexwymYiTK4JAcppmx74-9uY53Hyb1doKw: Timeout during connect (likely firewall problem)

Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 80. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.

Some challenges have failed.

Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container

Some challenges have failed.

Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container

 

Would appreciate it if someone could help me resolve this issue. Plus when I click on my SSL Provisions button it just keeps spinning.

Link to comment
20 hours ago, tazire said:

Dont go into the docker console to enter those commands. Use Unraid terminal. Also for manual update start at step 3 on the first post. 

I did a restore of an backup. my NExtcloud is running now.. but thank you anyway...just tested the maintenance mode in the terminal and it works!

Link to comment

I'll spare the details but essentially I as trying to resolve the cache writing issues to my new cache pools and must have messed something up during mover to my array or back from my array. Now nextcloud's php error log gives me this:

 

2021/11/21 06:12:48 [error] 1794#1794: *63211 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /config/www/nextcloud/lib/private/DB/Connection.php:87
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /config/www/nextcloud/lib/private/DB/Connection.php(231): Doctrine\DBAL\Connection->executeQuery()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
#4 /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /config/www/nextcloud/lib/private/AppConfig.php(344): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /config/www/nextcloud/lib/private/AppConfig.php(109): OC\AppConfig->loadConfigValues()
#7" while reading response header from upstream, client: 154.3.44.228, server: _, request: "PROPFIND /remote.php/dav/files/TBoneStaek/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.[mydomain].com"
2021/11/21 06:12:48 [error] 1794#1794: *63213 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /config/www/nextcloud/lib/private/DB/Connection.php:87
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /config/www/nextcloud/lib/private/DB/Connection.php(231): Doctrine\DBAL\Connection->executeQuery()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
#4 /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /config/www/nextcloud/lib/private/AppConfig.php(344): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /config/www/nextcloud/lib/private/AppConfig.php(109): OC\AppConfig->loadConfigValues()
#7" while reading response header from upstream, client: 154.3.44.228, server: _, request: "PROPFIND /remote.php/dav/files/Coaldez341/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.[mydomain].com"

 

Please ELI5 as I have very very little CLI knowledge (though Nextcloud so far has been changing this...)

 

I can't access the web gui locally or through reverse proxy.

Edited by TBoneStaek
Link to comment
22 minutes ago, TBoneStaek said:

I'll spare the details but essentially I as trying to resolve the cache writing issues to my new cache pools and must have messed something up during mover to my array or back from my array. Now nextcloud's php error log gives me this:

 

2021/11/21 06:12:48 [error] 1794#1794: *63211 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /config/www/nextcloud/lib/private/DB/Connection.php:87
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /config/www/nextcloud/lib/private/DB/Connection.php(231): Doctrine\DBAL\Connection->executeQuery()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
#4 /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /config/www/nextcloud/lib/private/AppConfig.php(344): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /config/www/nextcloud/lib/private/AppConfig.php(109): OC\AppConfig->loadConfigValues()
#7" while reading response header from upstream, client: 154.3.44.228, server: _, request: "PROPFIND /remote.php/dav/files/TBoneStaek/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.[mydomain].com"
2021/11/21 06:12:48 [error] 1794#1794: *63213 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /config/www/nextcloud/lib/private/DB/Connection.php:87
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /config/www/nextcloud/lib/private/DB/Connection.php(231): Doctrine\DBAL\Connection->executeQuery()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
#4 /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /config/www/nextcloud/lib/private/AppConfig.php(344): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /config/www/nextcloud/lib/private/AppConfig.php(109): OC\AppConfig->loadConfigValues()
#7" while reading response header from upstream, client: 154.3.44.228, server: _, request: "PROPFIND /remote.php/dav/files/Coaldez341/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.[mydomain].com"

 

Please ELI5 as I have very very little CLI knowledge (though Nextcloud so far has been changing this...)

 

I can't access the web gui locally or through reverse proxy.

"MySQL server has gone away in /config/www/nextcloud/lib/private/DB/Connection.php:87"

 

You need to investigate your MariaDB/MySQL Container as the problem lies there, not with nextcloud.

Link to comment
On 11/19/2021 at 1:14 PM, tazire said:

Have you tried doing the manual update in the first post on this thread?? I have stopped doing the updates in nextcloud because I get errors every now and then and the manual update just works every time for me. Currently on 22.2.3

I tried doing it the manual way and got an error "Exception: Database error when running migration latest for app notifications" and after some research i see that mariadb 10.6 is not compatible. So i checked my mariadb and its on "MySQL version: 5.5.5-10.5.13-MariaDB-log" so i have no idea why. Welp, ill try another version when its release and see. Thank you @tazire

Link to comment

Hi all. I have a maybe unique question. How would I go about migrating my existing docker instance of Nextcloud (current image from linuxserver.io) to Unraid? It's currently set up on docker-compose in Proxmox. Search results return tones of tutorials in how to set up a new instance in Docker, and how to transfer from the oldschool install to docker. But nothing that I've found to transfer from 1 docker instance to a new docker instance (this time in Unraid.)

 

Any guidance would be appreciated.

Link to comment
On 11/8/2021 at 1:25 PM, capt.shitface said:
  Reveal hidden contents

 

 

Mine is working now, i dont really know what caused the problem, i cleand my array from som plugins & dockers that i didn't need or didn't use, rebooted and then i worked.

I also had the "OpenSpeedTest-Server" docker, that stopped working.

Dont know if its related but i just removed it without troubleshooting.

My server also started to hang/crash every other day. I googled i found that i should disable c-state in BIOS. After that its been working for a few(3-4) days now.

Edit: I checked "Previous installed" in Apps. I removed these:
Dockers: Dozzle, Whoogle, OpenSpeedTest.
Plugins: Dynamix Cache Dirs, Speedtest 


Its not working anymore again, i'm so fucking tired with all the strange problems on my unraid lately.
I give up.... 😢

i spent over 11000sek (~1200$) on this machine, i just want it to work.


I ordered a new USB-stick today, backing-up as much as i can and try to re-do the whole server from scratch in the weekend.

 

Link to comment
On 2/25/2021 at 9:13 PM, capt.shitface said:

Got some trouble while upgrade via web-gui.
Tried the updater.phar in docker instead. it says

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity

[   ] Extracting ...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
root@c3af26c4f37e:/data# cd /config/www/nextcloud/updater/

Im stuck.

 

Same here.

Any news how to fix this?

Link to comment

 

32 minutes ago, jafi said:

 

Same here.

Any news how to fix this?

On 3/1/2021 at 1:40 PM, capt.shitface said:

No. I deleted the Docker and used CA CLEANUP APPDATA to clean-up appdata. Then reinstalled. Not too much work because database and /data is not affected.
Be ware, 2FFA didn't work after reinstall, i had to use backup-codes to login and the "reinstall and re-activate" 2FFA. 

 

Link to comment
2 hours ago, alturismo said:

 

from page 1 ... may try this

 

image.png.41ddf8fafdc61688777b23ca5ebefd74.png

 

Like capt.shitface said in the quote that I used, we tried to use updater.phar via console. But it fails.

 

docker exec -it nextcloud updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Current version is 22.2.0.

Update to Nextcloud 22.2.3 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-22.2.3.zip
Open changelog ↗

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[ ] Extracting ...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

 

Link to comment

I'm having an issue upgrading from 21.0.7 to 22.2.3.  I'm using the Web Updater and it gets all the way to the last step of turning Maintenance Mode off and starting the update process and then I get an "Internal Server Error".  I'm not quite sure where to go from here.  Any suggestions?  Upgrades up until now, including upgrading from 21.0.5 to 21.0.7 worked just fine.

Link to comment

I'm getting a message telling me that my NextCloud is in Maintenance mode. Just a few minutes earlier it was working fine.  I checked for any updates, and found two.  I applied them then when I refreshed the page, I got the message below.  I've restarted the docker image and the log shows no errors.  How do I clear this so I can use the service again?

 

image.png.421fd68fa54637a2d79500f09f418ddb.png

 

Update: I did a google search and was able to fix the issue with the following:

cd /config/www/nextcloud

sudo -u abc ./occ maintenance:mode --off

 

This worked.

Edited by dius
Link to comment

I have an issue on Unraid.

 

I tried to upadte the app from witin nextcloud and it goit stuck in maitance mode. I tried using occ but that gives the following error

 

root@7dbf3a08b34e:/# sudo -u abc php /config/www/nextcloud/occ maintenance:mode --off
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Maintenance mode disabled
root@7dbf3a08b34e:/# sudo -u abc php /config/www/nextcloud/occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Updating <mail> ...
An unhandled exception has been thrown:
ArgumentCountError: Too few arguments to function OCA\Mail\Migration\ProvisionAccounts::__construct(), 0 passed in /config/www/nextcloud/lib/private/Repair.php on line 122 and exactly 1 expected in /config/www/nextcloud/apps/mail/lib/Migration/ProvisionAccounts.php:37
Stack trace:
#0 /config/www/nextcloud/lib/private/Repair.php(122): OCA\Mail\Migration\ProvisionAccounts->__construct()
#1 /config/www/nextcloud/lib/private/legacy/OC_App.php(1035): OC\Repair->addStep()
#2 /config/www/nextcloud/lib/private/legacy/OC_App.php(979): OC_App::executeRepairSteps()
#3 /config/www/nextcloud/lib/private/Updater.php(375): OC_App::updateApp()
#4 /config/www/nextcloud/lib/private/Updater.php(254): OC\Updater->doAppUpgrade()
#5 /config/www/nextcloud/lib/private/Updater.php(130): OC\Updater->doUpgrade()
#6 /config/www/nextcloud/core/Command/Upgrade.php(255): OC\Updater->upgrade()
#7 /config/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
#8 /config/www/nextcloud/3rdparty/symfony/console/Application.php(1000): Symfony\Component\Console\Command\Command->run()
#9 /config/www/nextcloud/3rdparty/symfony/console/Application.php(271): Symfony\Component\Console\Application->doRunCommand()
#10 /config/www/nextcloud/3rdparty/symfony/console/Application.php(147): Symfony\Component\Console\Application->doRun()
#11 /config/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()
#12 /config/www/nextcloud/console.php(100): OC\Console\Application->run()
#13 /config/www/nextcloud/occ(11): require_once('/config/www/nex...')
#14 {main}root@7dbf3a08b34e:/# 

Link to comment
On 6/13/2021 at 8:08 AM, Rayce185 said:

I updated Nextcloud to 21.0.2 on Unraid version 6.9.2 and now I receive following error in the nextcloud log:

PHP Fatal error: Uncaught Error: Call to a member function getLogger() on null in /config/www/nextcloud/cron.php:163

Stack trace:

}
thrown in /config/www/nextcloud/cron.php on line 163

 

Nextcloud isn't accessible anymore with following Error message:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the webserver log.

 

Any advice?

Did you ever get an answer to this, I'm having the exact same error and issue?

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.