OwnCloud Internal Server Error

Status
Not open for further replies.

qwertymodo

Contributor
Joined
Apr 7, 2014
Messages
144
I recently reinstalled the OwnCloud plugin to reset a bunch of config changes I had made back to the defaults, and now, after configuring my users and add-ons, I'm unable to log in, as I receive the following message at the login page:

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.

Technical details
Remote Address: 10.1.0.27
Request ID: HCu0LWctA3E30EXUY5h/

Here's my /var/log/httpd-error.log

[Mon Mar 07 22:07:17.011389 2016] [:error] [pid 42486] [client 10.1.0.27:45513] {"reqId":"caQCAneZU1S2Gn6qugeP","remoteAddr":"10.1.0.27","app":"PHP","message":"touch(): Unable to create file \\/usr\\/pbi\\/owncloud-amd64\\/www\\/owncloud\\/data\\/owncloud.log because No such file or directory at \\/usr\\/pbi\\/owncloud-amd64\\/www\\/owncloud\\/lib\\/private\\/log\\/owncloud.php#53","level":3,"time":"2016-03-08T06:07:17+00:00"}
[Mon Mar 07 22:07:21.939091 2016] [:error] [pid 42487] [client 10.1.0.27:25776] {"reqId":"tcbRtHtsAPmlkex5rjTi","remoteAddr":"10.1.0.27","app":"PHP","message":"touch(): Unable to create file \\/usr\\/pbi\\/owncloud-amd64\\/www\\/owncloud\\/data\\/owncloud.log because No such file or directory at \\/usr\\/pbi\\/owncloud-amd64\\/www\\/owncloud\\/lib\\/private\\/log\\/owncloud.php#53","level":3,"time":"2016-03-08T06:07:21+00:00"}
[Mon Mar 07 22:08:33.973502 2016] [:error] [pid 42490] [client 10.1.0.10:35246] creating sqlite db
[Mon Mar 07 22:17:07.006077 2016] [:error] [pid 44695] [client 10.1.0.10:10290] PHP Fatal error: Call to a member function getType() on a non-object in /usr/pbi/owncloud-amd64/www/owncloud/lib/private/connector/sabre/serverfactory.php on line 86
[Mon Mar 07 22:18:26.408887 2016] [:error] [pid 42486] [client 10.1.0.10:13113] PHP Fatal error: Call to a member function getType() on a non-object in /usr/pbi/owncloud-amd64/www/owncloud/lib/private/connector/sabre/serverfactory.php on line 86
[Mon Mar 07 22:18:30.674496 2016] [:error] [pid 42490] [client 10.1.0.10:13127] PHP Fatal error: Call to a member function getType() on a non-object in /usr/pbi/owncloud-amd64/www/owncloud/lib/private/connector/sabre/serverfactory.php on line 86
[Mon Mar 07 22:19:28.999349 2016] [mpm_prefork:notice] [pid 42479] AH00169: caught SIGTERM, shutting down
[Mon Mar 07 22:19:41.840799 2016] [ssl:warn] [pid 50022] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Mar 07 22:19:41.841271 2016] [ssl:warn] [pid 50022] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Mar 07 22:19:41.879281 2016] [ssl:warn] [pid 50023] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Mar 07 22:19:41.879344 2016] [ssl:warn] [pid 50023] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Mar 07 22:19:42.129760 2016] [mpm_prefork:notice] [pid 50023] AH00163: Apache/2.4.10 (FreeBSD) OpenSSL/1.0.2d PHP/5.4.32 configured -- resuming normal operations
[Mon Mar 07 22:19:42.129913 2016] [core:notice] [pid 50023] AH00094: Command line: '/usr/pbi/owncloud-amd64/sbin/httpd -D NOHTTPACCEPT'
[Mon Mar 07 22:36:43.402530 2016] [mpm_prefork:notice] [pid 50023] AH00169: caught SIGTERM, shutting down
[Mon Mar 07 22:36:43.667974 2016] [ssl:warn] [pid 51948] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Mar 07 22:36:43.668419 2016] [ssl:warn] [pid 51948] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Mar 07 22:36:43.706154 2016] [ssl:warn] [pid 51949] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Mar 07 22:36:43.706211 2016] [ssl:warn] [pid 51949] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Mar 07 22:36:43.954246 2016] [mpm_prefork:notice] [pid 51949] AH00163: Apache/2.4.10 (FreeBSD) OpenSSL/1.0.2d PHP/5.4.32 configured -- resuming normal operations
[Mon Mar 07 22:36:43.954394 2016] [core:notice] [pid 51949] AH00094: Command line: '/usr/pbi/owncloud-amd64/sbin/httpd -D NOHTTPACCEPT'
[Mon Mar 07 22:43:00.395420 2016] [mpm_prefork:notice] [pid 51949] AH00169: caught SIGTERM, shutting down
[Mon Mar 07 22:43:00.660415 2016] [ssl:warn] [pid 52451] AH01916: Init: (cloud.home.qwertymodo.com:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Mar 07 22:43:00.699182 2016] [ssl:warn] [pid 52454] AH01916: Init: (cloud.home.qwertymodo.com:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Mar 07 22:43:00.948148 2016] [mpm_prefork:notice] [pid 52454] AH00163: Apache/2.4.10 (FreeBSD) OpenSSL/1.0.2d PHP/5.4.32 configured -- resuming normal operations
[Mon Mar 07 22:43:00.948275 2016] [core:notice] [pid 52454] AH00094: Command line: '/usr/pbi/owncloud-amd64/sbin/httpd -D NOHTTPACCEPT'
[Mon Mar 07 22:48:02.234455 2016] [mpm_prefork:notice] [pid 52454] AH00169: caught SIGTERM, shutting down
[Mon Mar 07 22:59:30.186349 2016] [ssl:warn] [pid 25036] AH01916: Init: (cloud.home.qwertymodo.com:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Mar 07 22:59:30.225567 2016] [ssl:warn] [pid 25037] AH01916: Init: (cloud.home.qwertymodo.com:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Mar 07 22:59:31.202557 2016] [mpm_prefork:notice] [pid 25037] AH00163: Apache/2.4.10 (FreeBSD) OpenSSL/1.0.2d PHP/5.4.32 configured -- resuming normal operations
[Mon Mar 07 22:59:31.202708 2016] [core:notice] [pid 25037] AH00094: Command line: '/usr/pbi/owncloud-amd64/sbin/httpd -D NOHTTPACCEPT'
[Mon Mar 07 23:05:24.895352 2016] [mpm_prefork:notice] [pid 25037] AH00169: caught SIGTERM, shutting down
[Mon Mar 07 23:05:25.431264 2016] [mpm_prefork:notice] [pid 50294] AH00163: Apache/2.4.10 (FreeBSD) OpenSSL/1.0.2d PHP/5.4.32 configured -- resuming normal operations
[Mon Mar 07 23:05:25.431458 2016] [core:notice] [pid 50294] AH00094: Command line: '/usr/pbi/owncloud-amd64/sbin/httpd -D NOHTTPACCEPT'
[Mon Mar 07 23:07:47.354267 2016] [mpm_prefork:notice] [pid 50294] AH00169: caught SIGTERM, shutting down
[Mon Mar 07 23:07:47.892556 2016] [mpm_prefork:notice] [pid 50452] AH00163: Apache/2.4.10 (FreeBSD) OpenSSL/1.0.2d PHP/5.4.32 configured -- resuming normal operations
[Mon Mar 07 23:07:47.892737 2016] [core:notice] [pid 50452] AH00094: Command line: '/usr/pbi/owncloud-amd64/sbin/httpd -D NOHTTPACCEPT'

I fixed the SSL cert issues by replacing the server.crt and server.key files with my own certificate and key, and configuring the FQDN in httpd.conf and httpd-ssl.conf (I messed up and assigned the non-ssl one to port 443, so there's an error in there about that, but I fixed that).

owncloud.log has nothing in it, even with loglevel set to 0.

Here's my config.php

<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'instanceid' => 'oc1qf890ip08',
'passwordsalt' => '*redacted*',
'secret' => '*redacted*',
'trusted_domains' =>
array (
0 => '*redacted local IP*',
1 => '*redacted public FQDN*',
),
'datadirectory' => '/media',
'overwrite.cli.url' => '*redacted local IP*',
'dbtype' => 'sqlite3',
'version' => '8.2.1.4',
'logtimezone' => 'UTC',
'installed' => true,
'loglevel' => 0,
);

Any thoughts?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I noticed the log mentions /usr/pbi/owncloud-amd64/www/owncloud/data when the plugin should be using /mediaff
When you re-installed owncloud did you do this to a new jail or an existing jail? Maybe somethingfi was left over?
 

qwertymodo

Contributor
Joined
Apr 7, 2014
Messages
144
Aha, that got me on the right track. I was checking the owncloud.log file in /usr/pbi/owncloud-amd64/www/owncloud/data which didn't contain anything, but checking /media/owncloud.log showed that my external mount points weren't mounting properly. Got that fixed up, and everything seems to be working. Thanks.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
sweet, that was a lucky guess on my part
 
Status
Not open for further replies.
Top