Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/
Steps to reproduce 1. n/a 2. 3.
Expected behaviour ownCloud should work, or at least complain about what doesn't work
Actual behaviour It locks up, uses 100% of one CPU, and then eventually I get a 504 Gateway Time-out from NginX
Server configuration Operating system: Ubuntu Server 16.04 (was Ubuntu Server 15.10) Web server: NginX + PHP7.1-FPM (was NginX + PHP7.0-FPM) Database: SQLite PHP version: 7.1.0beta2 ownCloud version (see ownCloud admin page): One patch from the latest version I think (can't check obviously) Updated from an older ownCloud or fresh install: not during this migration process ownCloud log (data/owncloud.log, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808):
Nothing new
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): Reverse proxy: Nginx sits in front of PHP7.1-FPM.
Integrity status for oC9+
Sorry, can't check this.
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
Actual post
I'm performing a server migration, and while I've been moving ownCloud I've hit upon a snag. After setting up NginX and PHP7.1-FPM and moving across the NginX and PHP FPM config files, ownCloud now locks up, uses 100% of one of my CPUs, and times out eventually.
The current php-packages on Ubuntu 16.04 are 7.0.8-0ubuntu0.16.04.2. Did you even install php7 from external sources? Does your php run (put a test script with <?php phpinfo(); ?> in your DocumentRoot).
Gateway timeout could indicate a general php settings error, or an error between nginx<->php. Please enable php-logging (see you php.ini-files) and you webserver logs for more details.
Yes, before reporting such issues make sure that you're running a stable release of PHP. No one can guarantee that this is not a bug in the beta PHP release...
THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!
Umm all the config files I'm using are identical to the ones I used on the previous server. I don't understand why raising the max execution time on this (better and faster) server would solve the problem, as I didn't need to do it on the old server (I think it's set to about 60 seconds currently).
Ok so raising one of those timeouts solved the problem. But why? The page took nowhere near that amount of time to load, so it really should have caused an issue. I'm rather worried now.
You could use tools such as blackfire to analyze which part of the code is responsible for the delay. You might want to contact a developer if you need help.
Judging on your configuration, the use of a real database and a filecache (Redis/APCU) do improve the overall performance considerably.
No need to say sorry, you can't know every single post here
To partly answer this question:
Ok so raising one of those timeouts solved the problem. But why? The page took nowhere near that amount of time to load, so it really should have caused an issue. I'm rather worried now.
You probably only moved the nginx and php configs. However there could be a lot of other components in between (down to the kernel) which could cause such issues. As the migration was done between two releases (15.10 to 16.04) different defaults could be also responsible.
I have issue when migrating my owncloud apps to new server
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 server log.