OwnCloud on apache2 fails to bind to port

Hi all, I encountered a problem when updating my raspberry PI the other day. Effectively, ownCloud is broken now, and although I feel somewhat adept with linux, I know little to nothing about web services/ apache.

Please note that I am NOT using a secured connection, so edits in SSH- type files won't have any effect.

I will be able to provide additional information upon request.

Please provide the apache error log as a dump here. It may have relevant information.

are you sure? It's returning something like 6000 lines of information

found a shorter log file, probably with more relevant information

[Sun Dec 13 06:25:07 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 13 06:25:07 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.45-0+deb7u2 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sun Dec 13 07:08:27 2015] [error] [client 73.174.60.201] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:08:32 2015] [error] [client 73.174.60.201] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:09:23 2015] [error] [client 73.174.60.201] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:09:51 2015] [error] [client 73.174.60.201] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:10:04 2015] [error] [client 73.174.60.201] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:10:05 2015] [error] [client 73.174.60.201] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:10:06 2015] [error] [client 73.174.60.201] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:10:06 2015] [error] [client 73.174.60.201] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:10:19 2015] [error] [client 70.198.195.33] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:10:34 2015] [error] [client 70.198.195.33] script '/var/www/status.php' not found or unable to stat
[Sun Dec 13 07:26:14 2015] [error] [client 73.174.60.201] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:104\nStack trace:\n#0 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(104): PDO->query('SHOW FULL TABLE...')\n#1 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(833): Doctrine\DBAL\Driver\PDOConnection->query('SHOW FULL TABLE...')\n#2 /var/www/owncloud/lib/private/db/connection.php(182): Doctrine\DBAL\Connection->executeQuery('SHOW FULL TABLE...', Array, Array, NULL)\n#3 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(766): OC\DB\Connection->executeQuery('SHOW FULL TABLE...', Array, Array)\n#4 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(219): Doctrine\DBAL\Connection->fetchAll('SHOW FULL TABLE...')\n#5 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManag in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 115
[Sun Dec 13 07:28:24 2015] [error] [client 73.174.60.201] File does not exist: /var/www/favicon.ico, referer: http://73.174.60.201/owncloud/index.php
[Sun Dec 13 07:29:53 2015] [notice] caught SIGTERM, shutting down
[Sun Dec 13 07:29:54 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 13 07:29:55 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 13 07:29:55 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.45-0+deb7u2 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sun Dec 13 07:32:32 2015] [notice] caught SIGTERM, shutting down
[Sun Dec 13 07:32:44 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 13 07:32:45 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 13 07:32:45 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.45-0+deb7u2 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sun Dec 13 07:41:53 2015] [notice] caught SIGTERM, shutting down
[Sun Dec 13 07:41:54 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 13 07:41:54 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 13 07:41:54 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.45-0+deb7u2 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sun Dec 13 07:42:12 2015] [notice] caught SIGTERM, shutting down
[Sun Dec 13 07:44:30 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 13 07:44:30 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 13 07:44:30 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.45-0+deb7u2 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sun Dec 13 11:09:47 2015] [error] [client 190.214.21.185] File does not exist: /var/www/phpMyAdmin
[Sun Dec 13 11:09:50 2015] [error] [client 190.214.21.185] File does not exist: /var/www/pma
[Sun Dec 13 11:09:54 2015] [error] [client 190.214.21.185] File does not exist: /var/www/myadmin
[Sun Dec 13 13:18:33 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Sun Dec 13 13:26:22 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Sun Dec 13 13:36:01 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Sun Dec 13 13:36:06 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Sun Dec 13 15:12:55 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Sun Dec 13 15:49:16 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Sun Dec 13 19:43:34 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Sun Dec 13 19:58:25 2015] [error] [client 208.52.161.177] File does not exist: /var/www/myadmin
[Sun Dec 13 20:30:38 2015] [error] [client 141.212.122.97] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /x
[Sun Dec 13 21:36:11 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 00:13:34 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 01:30:51 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 01:31:23 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 01:31:26 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 01:32:28 2015] [notice] caught SIGTERM, shutting down
[Mon Dec 14 01:32:39 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Dec 14 01:32:40 2015] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Dec 14 01:32:40 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.45-0+deb7u2 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Mon Dec 14 02:21:18 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 05:18:02 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 05:18:09 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 05:46:11 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 08:37:56 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 09:23:46 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 12:14:44 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 12:23:34 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 13:43:08 2015] [error] [client 74.111.163.235] File does not exist: /var/www/browserconfig.xml
[Mon Dec 14 13:44:34 2015] [error] [client 73.174.60.201] File does not exist: /var/www/owncloud/data
stat: cannot stat `/mnt/owncloud/data//test/files/ownCloud-windowsclient.exe': No such file or directory
[Mon Dec 14 16:02:57 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 16:40:46 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 20:26:27 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Mon Dec 14 21:13:53 2015] [error] [client 185.106.94.91] File does not exist: /var/www/phpmyadmin
[Mon Dec 14 23:36:36 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Tue Dec 15 01:02:33 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Tue Dec 15 02:45:13 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Tue Dec 15 03:39:39 2015] [error] [client 185.25.148.240] script '/var/www/testproxy.php' not found or unable to stat
[Tue Dec 15 04:01:07 2015] [error] [client 191.115.251.39] File does not exist: /var/www/phpMyAdmin
[Tue Dec 15 04:02:25 2015] [error] [client 191.115.251.39] File does not exist: /var/www/pma
[Tue Dec 15 04:03:47 2015] [error] [client 191.115.251.39] File does not exist: /var/www/myadmin
[Tue Dec 15 04:18:57 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Tue Dec 15 04:21:11 2015] [error] [client 208.52.161.177] File does not exist: /var/www/mysql
[Tue Dec 15 04:32:22 2015] [error] [client 188.68.224.62] script '/var/www/httptest.php' not found or unable to stat
[Tue Dec 15 06:38:32 2015] [warn] child process 6879 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:32 2015] [warn] child process 7001 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:32 2015] [warn] child process 7007 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:32 2015] [warn] child process 7002 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:32 2015] [warn] child process 7018 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:32 2015] [warn] child process 6893 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:34 2015] [warn] child process 6879 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:34 2015] [warn] child process 7001 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:34 2015] [warn] child process 7007 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:34 2015] [warn] child process 7002 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:34 2015] [warn] child process 7018 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:34 2015] [warn] child process 6893 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:36 2015] [warn] child process 6879 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:36 2015] [warn] child process 7001 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:36 2015] [warn] child process 7007 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:36 2015] [warn] child process 7002 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:36 2015] [warn] child process 7018 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:36 2015] [warn] child process 6893 still did not exit, sending a SIGTERM
[Tue Dec 15 06:38:38 2015] [error] child process 6879 still did not exit, sending a SIGKILL
[Tue Dec 15 06:38:38 2015] [error] child process 7001 still did not exit, sending a SIGKILL
[Tue Dec 15 06:38:38 2015] [error] child process 7007 still did not exit, sending a SIGKILL
[Tue Dec 15 06:38:38 2015] [error] child process 7002 still did not exit, sending a SIGKILL
[Tue Dec 15 06:38:38 2015] [error] child process 7018 still did not exit, sending a SIGKILL
[Tue Dec 15 06:38:38 2015] [error] child process 6893 still did not exit, sending a SIGKILL
[Tue Dec 15 06:38:39 2015] [error] could not make child process 6879 exit, attempting to continue anyway
[Tue Dec 15 06:38:39 2015] [error] could not make child process 7001 exit, attempting to continue anyway
[Tue Dec 15 06:38:39 2015] [error] could not make child process 7007 exit, attempting to continue anyway
[Tue Dec 15 06:38:39 2015] [error] could not make child process 7002 exit, attempting to continue anyway
[Tue Dec 15 06:38:39 2015] [error] could not make child process 7018 exit, attempting to continue anyway
[Tue Dec 15 06:38:39 2015] [error] could not make child process 6893 exit, attempting to continue anyway
[Tue Dec 15 06:38:39 2015] [notice] caught SIGTERM, shutting down

The contents of my /var/www folder. I see that the log is looking for a file called httptest.php, which I do not have. The odd part is that this server worked for nearly two months without it, and as to why it now requires this file, I do not know.

Specifically, there are clients connecting to your server and requesting /httptest.php, which is probably not supposed to exist. Seeing similar requests for things like /phpMyAdmin, from all sorts of different IP addresses, this just looks like the normal background noise of various scripts out on the internet testing your server for vulnerabilities to exploit.

To fix the problem with ownCloud, you should look through the logs specifically for requests originating from your IP address.

OKAY so I literally pulled the plug on my server (dumb idea i know) and it pretty much resolved my problem with the web server entirely. However, I'm now encountering an issue with PHP and the auto-loading of 3rd party apps. See image for details:

How have you been installing/updating ownCloud, and what version are you currently using?

Yes, I've been keeping owncloud up-to-date on the stable releases. I'd check my version, but when trying to do so using the owncloud command line (occ), i am given the same error as shown in the latest image above

What I meant was, have you been updating from your package manager or manually?

Your package manager could probably tell you what version you have. Otherwise, try looking in version.php.

by request

It looks like 3rdparty/autoload.php should contain the following for that build of 8.2.1:

<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInit2f23f73bc0cc116b4b1eee1521aa8652::getLoader();

The hash at the end of the class name is different. So I would guess that the file you have is from a previous build.

1 Like

Holy shit it actually worked. Thanks a million! If I could, i'd buy you a beer.

See what I mean.... complete dumps help us see the stack trace which allows us to fix the problem