March 4, 201511 yr I'm also getting the 502 Bad Gateway error a few times a day, are there logs I can upload to help with nailing this bug down?
March 6, 201511 yr Author Any updates on this? Not yet, this bug is proving to be difficult to debug.
March 6, 201511 yr I did find this that seems like a possibility. https://www.unixmen.com/how-i-fixed-nginx-502-bad-gateway-error/
March 12, 201511 yr Has anyone had any luck setting the 'overwritewebroot' flag to set a custom root? I'm try to set a custom root so I have something to filter on for my reverse proxy, but whenever I set that flag I get a "File not found: 404" in my browser and a line in the logs about a config file it can't find on a path that doesn't exist.
March 12, 201511 yr Whenever I try and do an update to the owncloud docker, it tries to update my database and just gets stuck on the page that says: "This ownCloud instance is currently being updated, which may take a while. This page will refresh itself when the ownCloud instance is available again." I'm using a mariadb docker with this. Any ideas? Tony
March 13, 201511 yr Hi, Update was good. Using mariaDB backend, I just update using "Check for updates" on docker page of Unraid. It's working great. You might install a new version of ACPu inside your docker file because it now report that inside the "Administration" portion of owncloud : APCu below version 4.0.6 installed APCu below version 4.0.6 is installed, for stability and performance reasons we recommend to update to a newer APCu version.
March 13, 201511 yr Yes, I did the docker update and then when going back into owncloud, I get the upgrading database issue. It just stays there. I have to reinstall everything from scratch each time (deleting docker appdata)
March 13, 201511 yr Author Hi, Update was good. Using mariaDB backend, I just update using "Check for updates" on docker page of Unraid. It's working great. You might install a new version of ACPu inside your docker file because it now report that inside the "Administration" portion of owncloud : APCu below version 4.0.6 installed APCu below version 4.0.6 is installed, for stability and performance reasons we recommend to update to a newer APCu version. This was the cause of php-fpm stalls: https://bugs.launchpad.net/ubuntu/+source/php-apcu/+bug/1374892 Whenever I try and do an update to the owncloud docker, it tries to update my database and just gets stuck on the page that says: "This ownCloud instance is currently being updated, which may take a while. This page will refresh itself when the ownCloud instance is available again." I'm using a mariadb docker with this. Any ideas? Tony Try this: docker exec ownCloud sudo -u nobody -s /bin/bash -c "php /var/www/owncloud/occ upgrade" This will upgrade ownCloud from the terminal, and avoid the webgui timeouts.
March 13, 201511 yr Hi, Update was good. Using mariaDB backend, I just update using "Check for updates" on docker page of Unraid. It's working great. You might install a new version of ACPu inside your docker file because it now report that inside the "Administration" portion of owncloud : APCu below version 4.0.6 installed APCu below version 4.0.6 is installed, for stability and performance reasons we recommend to update to a newer APCu version. This was the cause of php-fpm stalls: https://bugs.launchpad.net/ubuntu/+source/php-apcu/+bug/1374892 Is there a way to fix that by a docker exec something to upgrade that package? or it's harmless?
March 13, 201511 yr Try this: docker exec ownCloud sudo -u nobody -s /bin/bash -c "php /var/www/owncloud/occ upgrade" This will upgrade ownCloud from the terminal, and avoid the webgui timeouts. Great - that fixed it! Tony
March 13, 201511 yr Author Hi, Update was good. Using mariaDB backend, I just update using "Check for updates" on docker page of Unraid. It's working great. You might install a new version of ACPu inside your docker file because it now report that inside the "Administration" portion of owncloud : APCu below version 4.0.6 installed APCu below version 4.0.6 is installed, for stability and performance reasons we recommend to update to a newer APCu version. This was the cause of php-fpm stalls: https://bugs.launchpad.net/ubuntu/+source/php-apcu/+bug/1374892 Is there a way to fix that by a docker exec something to upgrade that package? or it's harmless? It's a recommended package, not a required one, so I will remove it from the next update until Ubuntu put version 4.0.7 on the repository.
March 13, 201511 yr Author Try this: docker exec ownCloud sudo -u nobody -s /bin/bash -c "php /var/www/owncloud/occ upgrade" This will upgrade ownCloud from the terminal, and avoid the webgui timeouts. Great - that fixed it! Tony Nice, that goes to the FAQ.
March 13, 201511 yr Has anyone had any luck setting the 'overwritewebroot' flag to set a custom root? I'm try to set a custom root so I have something to filter on for my reverse proxy, but whenever I set that flag I get a "File not found: 404" in my browser and a line in the logs about a config file it can't find on a path that doesn't exist. Along with my earlier question how do I turn off https forcing? I'm working on getting this setup behind my entire public facing reverse proxy with an actual signed cert I have, so I don't want nginx/owncloud creating and forcing https at this layer.
March 14, 201511 yr The update to 8.0.2 went well....as always but the 502 Bad Gateway error still persist or have I missed a workaround?
March 14, 201511 yr Author Has anyone had any luck setting the 'overwritewebroot' flag to set a custom root? I'm try to set a custom root so I have something to filter on for my reverse proxy, but whenever I set that flag I get a "File not found: 404" in my browser and a line in the logs about a config file it can't find on a path that doesn't exist. Along with my earlier question how do I turn off https forcing? I'm working on getting this setup behind my entire public facing reverse proxy with an actual signed cert I have, so I don't want nginx/owncloud creating and forcing https at this layer. In my latest update, I create a plain text service on port tcp 8001. gfjardim: Any progress on tracking down the Bad Gateway issue? After my second update (removal of php5-acpu), I haven't experienced any 502/504 timeouts yet, so let's hope it has been fixed.
March 15, 201511 yr I updated earlier today and so far so good.....I haven't seen the issue pop up again. Thank you for your efforts gfjardim. Edit: Gateway issue seems to be resolved. It's been rock solid since I updated. Thanks again!
March 16, 201511 yr Has anyone had any luck setting the 'overwritewebroot' flag to set a custom root? I'm try to set a custom root so I have something to filter on for my reverse proxy, but whenever I set that flag I get a "File not found: 404" in my browser and a line in the logs about a config file it can't find on a path that doesn't exist. Along with my earlier question how do I turn off https forcing? I'm working on getting this setup behind my entire public facing reverse proxy with an actual signed cert I have, so I don't want nginx/owncloud creating and forcing https at this layer. That's exactly what I'm trying to do with smdion's apache reverse proxy docker. Managed with just about everything else but own cloud has got me stumped. Be interested to hear how you got reverse proxy working if you manage it. I'm very new to web servers so a bit out of my comfort zone to be honest.
March 17, 201511 yr The 502 Bad Gateway error disappeared with the recent update!!! Thanks gfjardim!!!
March 26, 201511 yr Have you considered ownCloud in a docker container? I highly recommend you look into that. I took jonp's advice from a previous post and started to play around with ownCloud for the first time and I must say that it was fairly easy to install this docker. Thanks gfjardim for making this docker available. Generally installing a docker application seems straight forward enough but while reading the previous posts and referring to ownCloud's documentation it seems as though a more robust database server can be used for ownCloud when using it for a large number of accounts and also for real time data syncing. I noticed that thegizzard had some initial issues with MariaDB and getting it to work with ownCloud and even though thegizzard seems to have worked out the issues with MariaDB and ownCloud there is very little documentation provided on how to proceed with the SQLite to MariaDB conversion. I have MariaDB installed but I can't go no further at this point as I have not idea how to access MariaDB config files to change Root password and to create the necessary account info for ownCloud. Even adding phpMyAdmin is a chore with no real guidance on how and where to install it. It would be of great help to others if the instructions on how to roll out MariaDB with ownCloud was posted.
March 26, 201511 yr I have no experience with owncloud and mariadb, but if you just want to set a root password in mariadb, you could connect from a different pc in your network with e.g. Heidisql and set the password.
Archived
This topic is now archived and is closed to further replies.