CptRetro Posted January 6 Share Posted January 6 23 hours ago, CptRetro said: Hi all, is there an explanation why the NextCloud container keeps losing the MariaDB connection? I have now set up everything for the 2nd time and overnight the connection to DB is gone. I fed adminer with the credentials from config.php and was able to log in to the DB. Therefore the credentials should be correct. Can it perhaps be due to the custom docker network? Here I have specified the internal IP and not the unraid server plus port. Any suggestion to solve this? Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused in /config/www/nextcloud/lib/private/DB/Connection.php:139 Stack trace: #0 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1519): OC\DB\Connection->connect() #1 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1041): Doctrine\DBAL\Connection->getWrappedConnection() #2 /config/www/nextcloud/lib/private/DB/Connection.php(261): Doctrine\DBAL\Connection->executeQuery() #3 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\DB\Connection->executeQuery() #4 /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(281): Doctrine\DBAL\Query\QueryBuilder->execute() #5 /config/www/nextcloud/lib/private/AppConfig.php(415): OC\DB\QueryBuilder\QueryBuilder->execute() #6 /config/www/nextcloud/lib/private/AppConfig.php(180): OC\AppConfig->loadConfigValues() #7 /config/www/nextcloud/lib/private/AppConfig.php(371): OC\AppConfig->getApps() #8 /config/www/nextcloud/lib/private/legacy/OC_App.php(965): OC\AppConfig->getValues() #9 /config/www/nextcloud/lib/private/Server.php(725): OC_App::getAppVersions() #10 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\Server->OC\{closure}() #11 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #12 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\Container->offsetGet() #13 /config/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query() #14 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query() #15 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(184): OC\AppFramework\Utility\SimpleContainer->get() #16 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #17 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #18 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\Container->offsetGet() #19 /config/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query() #20 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query() #21 /config/www/nextcloud/lib/private/Server.php(1119): OC\AppFramework\Utility\SimpleContainer->get() #22 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\Server->OC\{closure}() #23 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #24 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\Container->offsetGet() #25 /config/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query() #26 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query() #27 /config/www/nextcloud/lib/private/Server.php(2070): OC\AppFramework\Utility\SimpleContainer->get() #28 /config/www/nextcloud/lib/private/Files/View.php(117): OC\Server->getLockingProvider() #29 /config/www/nextcloud/lib/private/Server.php(462): OC\Files\View->__construct() #30 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\Server->OC\{closure}() #31 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #32 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\Container->offsetGet() #33 /config/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query() #34 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query() #35 /config/www/nextcloud/lib/private/Server.php(1472): OC\AppFramework\Utility\SimpleContainer->get() #36 /config/www/nextcloud/lib/base.php(617): OC\Server->boot() #37 /config/www/nextcloud/lib/base.php(1144): OC::init() #38 /config/www/nextcloud/cron.php(43): require_once('...') #39 {main} @linuxserver.io any suggestions? Quote Link to comment
Featured Comment Squid Posted January 6 Featured Comment Share Posted January 6 On 1/6/2023 at 5:55 AM, CptRetro said: @linuxserver.io any suggestions? For all linuxserver containers, the best place to ask for help is via their Discord (Click on the container in question and select Discord) 1 Quote Link to comment
adminmat Posted January 11 Share Posted January 11 (edited) SOLVED I'm still struggling with getting rid of errors: Your web server is not properly set up to resolve "/.well-known/webfinger". Your web server is not properly set up to resolve "/.well-known/nodeinfo". Based on advice in this thread I've deleted files default AND default.config from /mnt/user/appdata/nextcloud/nginx/site-confs/ I then clear browser cache, restart the container and when logging into NC i get "502 Bad Gateway - nginx/1.20.2" So I copied the default.config file (i had a backup) back into the directory and I can access Nextcloud again. But still have the errors. So the config file that is being recreated has a conflict. Is there any updated way to fix these errors? I'm on NC 25.0.2 latest container. SOLVED - - I had to delete the nginx.conf file in /mnt/user/appdata/nextcloud/nginx/ as well. Then restart the container and errors are gone. Edited January 11 by adminmat Quote Link to comment
adminmat Posted January 11 Share Posted January 11 On 1/6/2023 at 6:27 AM, Squid said: For all linuxserver containers, the best place to ask for help is via their Reddit (Click on the container in question and select Reddit) Did you mean Discord? Quote Link to comment
XisoP Posted January 13 Share Posted January 13 (edited) On 1/14/2021 at 1:23 PM, skois said: *Click Finish Setup. (DONT CLOSE PAGE on 504 error) *With the page still displaying 504 error, go to /mnt/user/appdata/nextcloud/www/nextcloud/config/ and edit the config.php truested_domain section should look like this (dont forget the comma after each entry). ofc change the ips according to yours. You should only need to add the line 1, 0 should be there. 'trusted_domains' => array ( 0 => '10.0.0.72:444', 1 => '10.0.0.*', ), *After saving the config.php. Go back to your browser and refresh the page. It should now ask you to log in. In case still shows 504 error. Try restarting docker WITHOUT CLOSING the page. and when docker restarts, refresh the page once more. My install keeps sending me back to the login page. Updated congig.php with my own IP range/domain. Did a full clean install after a live install died this week. Fortunately all data is stored on external storage Yesterday I did manage to get it somehow going on a donor-database, but shortly after migrating to the live one, MadiaDB died. I was hoping to get everything going again, but no luck for the past 16 hours getting the same issue with SQLite btw 😭 Edited January 13 by XisoP Quote Link to comment
Michel Amberg Posted January 18 Share Posted January 18 Seems like my nextcloud is broken at the moment. Has anyone seen this error before? PHP Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 70 Quote Link to comment
AmokK Posted January 18 Share Posted January 18 Hi ! I updated to nextcloud 25.0.3, and I have some new warnings (I already had some for monthes, about security-headers and policies, and also reverse proxy, but don't have the skills yet to fix them) regarding the apps folder permissions, it says that the owner is different from the web server user. I think it could be fixed with a little bit of chmod, but what is the default web server username ? in nextcloud docs, it is often "www-data", is that the case here ? Quote Link to comment
Rockstar Posted January 20 Share Posted January 20 On 1/2/2023 at 3:36 AM, Raczo said: Hi i updated the container in unraid webgui now i get this when trying to access nextcloud in my browser: This version of Nextcloud is not compatible with > PHP 7.4. You are currently running 8.0.25. How can i fix this? sooo... this was fun! I just went through this process and realized that the Nextcloud version does not update with the container...so here I was running a 2 year old version and in the same boat as you! how to fix: Stop container, edit and pull an older tag "linuxserver/nextcloud:20.0.4" or something like that. This should then allow you to start the container and login... now you can manually update and webui update. For some reason I could not update via the webui so I did it manually Nextcloud docker console updater.phar Follow the prompts. It's very very straight forward. You'll want to leave maintenance mode on after each session. You will need to run this command after each successful update (18 -> 19 -> 20 etc.) you do need to do this for every version you're behind. you can turn off maintenance mode once you're at the latest version! after all that, you can edit the docker container back to ":latest" and test it out! all should be working now. Quote Link to comment
Mustangf22 Posted January 20 Share Posted January 20 On 9/8/2018 at 7:00 PM, dysolve said: you need to downgrade your install change the respository yo "linuxserver/nextcloud:140" and it will downgrade it. then you will need to manually upgrade next cloud to v13 and then remove the ":140" part and upgrade and you will be fine. This is a long one. Sorry in advance. I love my Nextcloud, but I am not very knowledgeable about how to fix my issues with it. bear with me. I am currently having a very similar issue to what I found in this thread. My Nextcloud has been working fine for a few years now, but a few months ago it quit and started giving me the message "This version of Nextcloud is not compatible with > PHP 7.4. You are currently running 8.0.25." (I have been too busy to address the issue, so it sat broken for quite some time.) When I finally got to addressing the issue, My first step was to run an update command in the nextcloud console. That seemed to go just fine, but it did not change my problem. Next: I followed the advice here and downgraded my container with the tag :140. This only made me receive a similar but different message: "This version of Nextcloud requires at least PHP 7.2 You are currently running 7.1.17. Please update your PHP version." So I tried going to 150 assuming that the tag line means version of nextcloud. (15.0) And now I am back in on the UI side except I am in Maintenance mode and cannot get out of it. I tried following the update instructions on the first page and updating through unraid terminal, but NOW I get errors when I try. I do not have access to the nextcloud UI to use OCC due to maintenace mode not being able to be turned off. I will attach pics of what terminal looks like when I try to update or turn off maintenace mode. Maybe I am just inputting commands wrong... Quote Link to comment
Mustangf22 Posted January 21 Share Posted January 21 12 hours ago, Mustangf22 said: This is a long one. Sorry in advance. I love my Nextcloud, but I am not very knowledgeable about how to fix my issues with it. bear with me. I am currently having a very similar issue to what I found in this thread. My Nextcloud has been working fine for a few years now, but a few months ago it quit and started giving me the message "This version of Nextcloud is not compatible with > PHP 7.4. You are currently running 8.0.25." (I have been too busy to address the issue, so it sat broken for quite some time.) When I finally got to addressing the issue, My first step was to run an update command in the nextcloud console. That seemed to go just fine, but it did not change my problem. Next: I followed the advice here and downgraded my container with the tag :140. This only made me receive a similar but different message: "This version of Nextcloud requires at least PHP 7.2 You are currently running 7.1.17. Please update your PHP version." So I tried going to 150 assuming that the tag line means version of nextcloud. (15.0) And now I am back in on the UI side except I am in Maintenance mode and cannot get out of it. I tried following the update instructions on the first page and updating through unraid terminal, but NOW I get errors when I try. I do not have access to the nextcloud UI to use OCC due to maintenace mode not being able to be turned off. I will attach pics of what terminal looks like when I try to update or turn off maintenace mode. Maybe I am just inputting commands wrong... Nevermind, I got this sorted out. I just needed to keep updating. I was like on nextcloud version 18 since I have never once updated nextcloud. I always thought that the docker image kept it updated. But know I know. Also I did not realize that when I told it to update the first time it was only an incremental update. I had to update like 5 or six times in order to make to the the current stable version of 25.0.3 Quote Link to comment
blaine07 Posted January 23 Share Posted January 23 Well, anyone have verdict on 25.0.3; is it safe to upgrade? Everything good? Quote Link to comment
HHUBS Posted January 23 Share Posted January 23 I updated to 25.0.3 via occ and it's been running smoothly for ~1 week. Then I got this: I can't stop nor restart the container. So I tried to "force upgrade" just to see what it output and I got this: Tried "docker ps" but the docker ID is only 12 characters, not that long like in the picture. Then I tried to downgrade to 25.0.2 and it works fine again. But after an hour, the container is unreachable and I get the execution error again. What to do? Quote Link to comment
aliengoa Posted January 23 Share Posted January 23 Hello, I also had problems updating nextcloud and the only thing that worked was by running updater.phar. via console. I managed to go up to 25.0.3 Quote Link to comment
XisoP Posted January 24 Share Posted January 24 On 1/13/2023 at 12:55 PM, XisoP said: My install keeps sending me back to the login page. Updated congig.php with my own IP range/domain. Did a full clean install after a live install died this week. Fortunately all data is stored on external storage Yesterday I did manage to get it somehow going on a donor-database, but shortly after migrating to the live one, MadiaDB died. I was hoping to get everything going again, but no luck for the past 16 hours getting the same issue with SQLite btw 😭 I fixed my issue. Unfortunately I couldn't save my love database, have to add everyone again. Turns out it was a networking issue. Got new networking hardware some time ago, installed all the VLANs on my main NIC. This caused some serious issues turned out. Got an extra NIC, removed the VLANs from the main nic and installed them on the second. Done a fresh install of nextcloud:latest with a new database (old one was corrupted after trial and error). Just left the gateway timeout on initialization for a couple of minutes and had a succesfull login. Quote Link to comment
mathgoy Posted January 24 Share Posted January 24 Hi everyone, I am trying to install the Recognize app (for face recognition) and I am getting the following error: Any idea how I could fix this? Thanks! Quote Link to comment
phileeny Posted January 24 Share Posted January 24 (edited) I don't know the programming language to get under the hood so all this "docker exec -i Nextcloud sudo -u root php -f is lost on me but I'm learning, I figured -u is user. I have searched the forum and the web but all I get is more confused. I have nextcloud installed and running but I can't figure out CRON in nextcloud, it says CRON recommended Use system cron service to call the cron.php file every 5 minutes. Recommended for all instances. The cron.php needs to be executed by the system user "www-data". my nextcloud cron.php file is in location "/mnt/user/appdata/nextcloud/html/cron.php" but how do I run the file? I tried with User Scripts #!/bin/bash docker exec -i Nextcloud sudo -u root php -f /mnt/user/appdata/nextcloud/html/cron.php but this did nothing and I see crontab on websites, I did find it on terminal "crontab -e" but not sure what to type in and any thing I try I try is just a stab in the dark, I can't even get it to save or run. Could someone please help. Edited January 24 by phileeny Quote Link to comment
Archonw Posted January 24 Share Posted January 24 Hi everyone, I am trying to install the Recognize app (for face recognition) and I am getting the following error: Any idea how I could fix this? Thanks! Hi i am also interested. Although it shows this error it seems to work and i get some faces organized and tagged but it goes slow.And when i click in a tagged foto oft a person it won't show up large. Just this rolling circle all the time.Gesendet von meinem Pixel 6 Pro mit Tapatalk Quote Link to comment
dius Posted January 24 Share Posted January 24 (edited) I updated my Nextcloud docker container today, and now I am not able to connect to it. This is the error I get: Where should I look in order to try to diagnose this problem? I don't see any errors in the log file. Any help would be greatly appreciated. Edited January 24 by dius Quote Link to comment
Archonw Posted January 25 Share Posted January 25 Do you always connect to your nextcloud via IP adress vor do you use a domain?It seems there is a ssl certificate error. If you hit advanced you should be able to click in something like go to IP adress unsecure...Gesendet von meinem Pixel 6 Pro mit Tapatalk Quote Link to comment
dius Posted January 25 Share Posted January 25 (edited) Thanks @Archonw for your help. In answer to your question, I always use a domain. If I click on Advanced and try to go to the site I get this error and can't go any further. Edited January 27 by dius Quote Link to comment
itskamel Posted January 26 Share Posted January 26 On 12/9/2022 at 11:12 PM, blaine07 said: In Unraid file manager who does it show has ownership of Nextcloud app data? What is its read write rules? how do you get it to show you the permissions? mine doesnt show folder permissions. do i have to enable it somewhere? Quote Link to comment
Kilrah Posted January 26 Share Posted January 26 7 hours ago, itskamel said: how do you get it to show you the permissions? mine doesnt show folder permissions. do i have to enable it somewhere? They are there but the change dialog hides them... Quote Link to comment
dius Posted January 26 Share Posted January 26 Since there doesn't seem to be any way to fix what has broken on my Nextcloud installation, I was wondering if I could simply remove it, then add it again. Would that solve my problem? For the benefit of anyone reading this, my Nextcloud service was working fine. I always accessed it using a domain. Just a couple of days ago, I was notified that there was an update to my Nextcloud docker so I went ahead and updated it. Nextcloud starts just fine. There are no errors in the log, however I can no longer access it. It doesn't matter if I use the domain or the IP address. The result is the same. It appears that there may be some kind of certificate issue but I have no idea how to debug it it and fix it. My thinking is that I may just remove it entirely from my Unraid server, then download and install a new one. I may lose all of my configurations, and may have to figure out how to get Collabora working again, but that may get me back up and running. Any other recommendations? Any help would be greatly appreciated. Quote Link to comment
sonofdbn Posted January 27 Share Posted January 27 @dius I'm having the same problem. Nextcloud was working fine, today after updating recently my Windows client can't access Nextcloud (which I access via a domain). No errors that I could see in the log but there were these lines: **** The following active confs have different version dates than the samples that are shipped. **** **** This may be due to user customization or an update to the samples. **** **** You should compare the following files to the samples in the same folder and update them. **** **** Use the link at the top of the file to view the changelog. **** /config/nginx/nginx.conf /config/nginx/site-confs/default.conf cont-init: info: /etc/cont-init.d/85-version-checks exited 0 I don't know much about nginx but I think it's the application that allows the accessing via the domain. So maybe there's a problem here? Quote Link to comment
Recommended Posts
Posted by Squid,
1 reaction
Go to this post
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.