Skip to content

Internal server error #24525

Closed
Closed

Description

@Dronarg

Steps to reproduce

I am running an owncloud instance on a 1&1 web hosting and it has been working well until yesterday.
I am using the last version of owncloud 9.0.2
Since yesterday, I cannot use owncloud anymore.
I always end with a "Internal Server Error".

I even tried a fresh install of owncloud with auto installer and sqllite. The same thing happens. Right after setup finishes, it ends with the same internal error.

I checked the paths in config.php and .htaccess
#24426 (comment)

Owncloud is installed at this adress:
https://www.mywebsite.com/test/owncloud

Here are the two lines created by the owncloud installer in config.php and .htaccess
RewriteBase /test/owncloud
'overwrite.cli.url' => 'http://localhost/test/owncloud',

I tried replacing overwrite.cli.url with this one
'overwrite.cli.url' => 'https://www.mywebsite.com/test/owncloud',

PHP version:
I tried with version 5.6 and 7

ownCloud version: (see ownCloud admin page)
9.02

Updated from an older ownCloud or fresh install:
Older owncloud and fresh install

Where did you install ownCloud from:
Manual install and automatic install

Are you using external storage, if yes which one: local/smb/sftp/...
NO

Are you using encryption:
YES

ownCloud log (data/owncloud.log)

{"reqId":"txKbQx6pS1mTYZVE/bEr","remoteAddr":"","app":"no app in context","message":"Exception: {"Exception":"DomainException","Message":"Contacts tables are missing. Nothing to do.","Code":0,"Trace":"#0 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/apps\/dav\/lib\/migration\/migrateaddressbooks.php(83): OCA\Dav\Migration\AddressBookAdapter->setup()\n#1 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/apps\/dav\/appinfo\/application.php(186): OCA\Dav\Migration\MigrateAddressbooks->setup()\n#2 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/apps\/dav\/appinfo\/install.php(26): OCA\Dav\AppInfo\Application->migrateAddressbooks()\n#3 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/installer.php(639): include('\/homepages\/19\/d...')\n#4 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/installer.php(590): OC_Installer::includeAppScript('\/homepages\/19\/d...')\n#5 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/installer.php(561): OC_Installer::installShippedApp('dav')\n#6 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/setup.php(370): OC_Installer::installShippedApps()\n#7 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/core\/controller\/setupcontroller.php(64): OC\Setup->install(Array)\n#8 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/base.php(832): OC\Core\Controller\SetupController->run(Array)\n#9 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/index.php(39): OC::handleRequest()\n#10 {main}","File":"\/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/apps\/dav\/lib\/migration\/addressbookadapter.php","Line":72}","level":3,"time":"2016-05-07T16:18:40+00:00","method":"POST","url":"--","user":"--"}
{"reqId":"txKbQx6pS1mTYZVE/bEr","remoteAddr":"","app":"no app in context","message":"Exception: {"Exception":"DomainException","Message":"Calendar tables are missing. Nothing to do.","Code":0,"Trace":"#0 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/apps\/dav\/lib\/migration\/migratecalendars.php(84): OCA\Dav\Migration\CalendarAdapter->setup()\n#1 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/apps\/dav\/appinfo\/application.php(202): OCA\Dav\Migration\MigrateCalendars->setup()\n#2 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/apps\/dav\/appinfo\/install.php(27): OCA\Dav\AppInfo\Application->migrateCalendars()\n#3 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/installer.php(639): include('\/homepages\/19\/d...')\n#4 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/installer.php(590): OC_Installer::includeAppScript('\/homepages\/19\/d...')\n#5 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/installer.php(561): OC_Installer::installShippedApp('dav')\n#6 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/setup.php(370): OC_Installer::installShippedApps()\n#7 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/core\/controller\/setupcontroller.php(64): OC\Setup->install(Array)\n#8 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/base.php(832): OC\Core\Controller\SetupController->run(Array)\n#9 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/index.php(39): OC::handleRequest()\n#10 {main}","File":"\/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/apps\/dav\/lib\/migration\/calendaradapter.php","Line":68}","level":3,"time":"2016-05-07T16:18:40+00:00","method":"POST","url":"--","user":"--"}
{"reqId":"ZLzRuJMwd7d2G3JzoT3T","remoteAddr":"","app":"index","message":"Exception: {"Exception":"Exception","Message":"The requested uri() cannot be processed by the script '\/oc\/owncloud\/index.php')","Code":0,"Trace":"#0 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/base.php(837): OC\AppFramework\Http\Request->getRawPathInfo()\n#1 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/index.php(39): OC::handleRequest()\n#2 {main}","File":"\/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/appframework\/http\/request.php","Line":621}","level":3,"time":"2016-05-07T16:19:08+00:00","method":"GET","url":"--","user":"--"}
{"reqId":"V9RcGckYaCc0R4wn6c9r","remoteAddr":"","app":"index","message":"Exception: {"Exception":"Exception","Message":"The requested uri() cannot be processed by the script '\/oc\/owncloud\/index.php')","Code":0,"Trace":"#0 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/base.php(837): OC\AppFramework\Http\Request->getRawPathInfo()\n#1 \/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/index.php(39): OC::handleRequest()\n#2 {main}","File":"\/homepages\/19\/d438963193\/htdocs\/oc\/owncloud\/lib\/private\/appframework\/http\/request.php","Line":621}","level":3,"time":"2016-05-07T16:19:40+00:00","method":"GET","url":"--","user":"--"}

Activity

  1. LukasReschke commented on May 10, 2016

    @LukasReschke
    Contributor

    Please post the whole config file and also explain how you map from \\/homepages\\/19\\/d438963193\\/htdocs\\/oc\\/owncloud\\/ to https://www.mywebsite.com/test/owncloud'

  2. Dronarg commented on May 10, 2016

    @Dronarg
    Author

    Here is the full config.php

    $CONFIG = array (
    'instanceid' => 'ocq99pqy8gqk',
    'passwordsalt' => '*** removed for security reasons',
    'secret' => '*** removed for security reasons',
    'trusted_domains' =>
    array (
    0 => 'localhost',
    ),
    'datadirectory' => '/homepages/19/d438963193/htdocs/oc/owncloud/data',
    'overwrite.cli.url' => 'http://localhost/oc/owncloud',
    'dbtype' => 'sqlite3',
    'version' => '9.0.1.3',
    'logtimezone' => 'UTC',
    'installed' => true,
    );

    Regarding the mapping from /homepages/19/d438963193/htdocs/oc/owncloud/ to https://www.mywebsite.com/oc/owncloud'

    It is a shared hosting, and internaly the adress /homepages/19/d438963193/htdocs\ points to the base of my domain name https://www.mywebsite.com/

  3. LukasReschke commented on May 10, 2016

    @LukasReschke
    Contributor

    It is a shared hosting, and internaly the adress /homepages/19/d438963193/htdocs\ points to the base of my domain name https://www.mywebsite.com/

    How did you install ownCloud then? From what URL? Also I'm super confused, sometimes you refer to oc/owncloud and sometimes to test/owncloud…

  4. Dronarg commented on May 11, 2016

    @Dronarg
    Author

    I use two methods to install owncloud. I can upload the whole app with FTP and start setup or simply upload the script setup-owncloud.php and run it. It works until the login page.

    I am sorry for the confusion between oc/owncloud and test/owncloud. In fact since my owncloud installation broke a few days ago, I tried different new installations for testing purposes. So I tried once with test/owncloud and again with oc/owncloud.

    The fact is that owncloud was working very well since version 6 and it seems broken now though I have not changed anything. I thought my config files were wrong, but I see that a fresh install leads to the same issue.

    I thought that
    'overwrite.cli.url' => 'http://localhost/oc/owncloud',
    could be the problem so I also tried
    'overwrite.cli.url' => 'http://mywebsite/oc/owncloud',
    but that does not work.

  5. LukasReschke commented on May 11, 2016

    @LukasReschke
    Contributor

    Please try to remove everything after the "DO NOT CHANGE ANYTHING ABOVE THE LINE" entry in .htaccess. If that works then there is a good chance that the patch in 9.0.3 will fix this.

    (you might need to have to repeat this step in 9.0.3 again but afterwards not anymore if you also remove the htaccess.RewriteBase entry from your config.php then)

  6. Mannshoch commented on May 11, 2016

    @Mannshoch

    Had the same Error.

    .htaccess

    <IfModule mod_rewrite.c>
    #  RewriteBase example.com/subdirectory
    

    I had to comment out the RewriteBase to get Owncloud work

  7. imjalpreet commented on May 11, 2016

    @imjalpreet

    @LukasReschke I am also facing internal server error.

    Though I tried testing the #24539 and it worked successfully after that. It was successful in fixing the internal server error.

  8. Mannshoch commented on May 11, 2016

    @Mannshoch

    @hirschnase Im familiar with .htaccess deactivating. I run .htaccess on one Webspace on which i have to remove the half of all .htacces entries to get a working Owncloud.

  9. Dronarg commented on May 11, 2016

    @Dronarg
    Author

    Well, I tried with shortened .htacess and it does not work ....

    I installed back an older version 8 and it is working fine.

  10. ownclouders commented on Dec 21, 2017

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label needs info is set and there were no updates for 14 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.

  11. WolfgangFahl commented on Dec 28, 2017

    @WolfgangFahl

    This is closed?
    I barely believe this. This error is so annoying because there is no proper explanation of what is going on and searching for "the request uri cannout be processed by the script" points here.
    In my case I simply copied an installation from one server to another and adapted the config file. My version is 9.0.0 and i see no plausible reason for the error. Since the error is not fixed I'll move to nextcloud and try my luck there.

    Update: the upgrade to nextcloud worked like a charm - the error went away immediately after following the instructions at https://nextcloud.com/migration/

    We then went all the way to Version 12 see http://wiki.bitplan.com/index.php/Nextcloud

  12. lock commented on Jul 31, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  13. locked as resolved and limited conversation to collaborators on Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions