Internal Server Error 10.1.1

Hello:

I install a fresh owncloud 10.1.1, integrate with Active Directory, change data folder to /mnt all ok.
But after add ssl certificate (i believe), work perfect with desktop client.

But cannot use owncloud from website, after login i recieve this error.

Any idea for find the error, It will be appreciated

Thanks Regards

Hi,
Do you have SSH access to the server? If yes can you have a look for the ID that’s shown in the error message in the logs?
Can you make sure you’re accessing the server via HTTPS, and your apache configuration or your browser (clear cache) doesn’t redirect you back to HTTP for some reason?

Hi eneaubauer:

The log when write https://own.xxx.com.ar/owncloud goto https://own.xxx.com.ar/owncloud/index.php/apps/files/

and the log is

{“reqId”:“k7mf1abtqZIxb1nfPeAx”,“level”:3,“time”:“2019-06-06T17:59:44+00:00”,“remoteAddr”:“192.168.0.209”,“user”:“ceown”,“app”:“index”,“method”:“GET”,“url”:"/owncloud/index.php/apps/files/",“message”:“Exception: {“Exception”:“InvalidArgumentException”,“Message”:”\"\/avatars\" must be relative to \“files\”",“Code”:0,“Trace”:"#0 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(2022): OC\\Files\\View->getPathRelativeToFiles(’\/avatars’)\n#1 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(1179): OC\\Files\\View->changeLock(’\/avatars’, 2)\n#2 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(274): OC\\Files\\View->basicOperation(‘mkdir’, ‘\/avatars’, Array)\n#3 \/srv\/www\/htdocs\/owncloud\/lib\/public\/Events\/EventEmitterTrait.php(50): OC\\Files\\View->OC\\Files\\{closure}(Array)\n#4 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(276): OC\\Files\\View->emittingCall(Object(Closure), Array, ‘file’, ‘create’)\n#5 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/Node\/Folder.php(157): OC\\Files\\View->mkdir(’\/avatars’)\n#6 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php(64): OC\\Files\\Node\\Folder->newFolder(‘avatars’)\n#7 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php(386): OC\\Files\\Node\\LazyRoot->__call(‘newFolder’, Array)\n#8 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AvatarManager.php(97): OC\\Files\\Node\\LazyRoot->newFolder(‘avatars’)\n#9 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AvatarManager.php(115): OC\\AvatarManager->getFolder(Object(OC\\Files\\Node\\LazyRoot), ‘avatars’)\n#10 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AvatarManager.php(89): OC\\AvatarManager->getAvatarFolder(Object(OC\\User\\User))\n#11 \/srv\/www\/htdocs\/owncloud\/lib\/private\/TemplateLayout.php(101): OC\\AvatarManager->getAvatar(‘ceown’)\n#12 \/srv\/www\/htdocs\/owncloud\/lib\/private\/legacy\/template.php(239): OC\\TemplateLayout->__construct(‘user’, ‘files’)\n#13 \/srv\/www\/htdocs\/owncloud\/lib\/public\/AppFramework\/Http\/TemplateResponse.php(149): OC_Template->fetchPage()\n#14 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(108): OCP\\AppFramework\\Http\\TemplateResponse->render()\n#15 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files\\Controller\\ViewController), ‘index’)\n#16 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(46): OC\\AppFramework\\App::main(‘ViewController’, ‘index’, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#17 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Route\/Router.php(342): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#18 \/srv\/www\/htdocs\/owncloud\/lib\/base.php(909): OC\\Route\\Router->match(’\/apps\/files\/’)\n#19 \/srv\/www\/htdocs\/owncloud\/index.php(54): OC::handleRequest()\n#20 {main}",“File”:"\/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php",“Line”:2149}"}
{“reqId”:“mfDzAQ001F3lUmULmx1r”,“level”:3,“time”:“2019-06-06T17:59:45+00:00”,“remoteAddr”:“192.168.0.209”,“user”:“ceown”,“app”:“index”,“method”:“GET”,“url”:"/owncloud/index.php/apps/files/",“message”:“Exception: {“Exception”:“InvalidArgumentException”,“Message”:”\"\/avatars\" must be relative to \“files\”",“Code”:0,“Trace”:"#0 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(2022): OC\\Files\\View->getPathRelativeToFiles(’\/avatars’)\n#1 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(1179): OC\\Files\\View->changeLock(’\/avatars’, 2)\n#2 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(274): OC\\Files\\View->basicOperation(‘mkdir’, ‘\/avatars’, Array)\n#3 \/srv\/www\/htdocs\/owncloud\/lib\/public\/Events\/EventEmitterTrait.php(50): OC\\Files\\View->OC\\Files\\{closure}(Array)\n#4 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(276): OC\\Files\\View->emittingCall(Object(Closure), Array, ‘file’, ‘create’)\n#5 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/Node\/Folder.php(157): OC\\Files\\View->mkdir(’\/avatars’)\n#6 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php(64): OC\\Files\\Node\\Folder->newFolder(‘avatars’)\n#7 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php(386): OC\\Files\\Node\\LazyRoot->__call(‘newFolder’, Array)\n#8 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AvatarManager.php(97): OC\\Files\\Node\\LazyRoot->newFolder(‘avatars’)\n#9 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AvatarManager.php(115): OC\\AvatarManager->getFolder(Object(OC\\Files\\Node\\LazyRoot), ‘avatars’)\n#10 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AvatarManager.php(89): OC\\AvatarManager->getAvatarFolder(Object(OC\\User\\User))\n#11 \/srv\/www\/htdocs\/owncloud\/lib\/private\/TemplateLayout.php(101): OC\\AvatarManager->getAvatar(‘ceown’)\n#12 \/srv\/www\/htdocs\/owncloud\/lib\/private\/legacy\/template.php(239): OC\\TemplateLayout->__construct(‘user’, ‘files’)\n#13 \/srv\/www\/htdocs\/owncloud\/lib\/public\/AppFramework\/Http\/TemplateResponse.php(149): OC_Template->fetchPage()\n#14 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(108): OCP\\AppFramework\\Http\\TemplateResponse->render()\n#15 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files\\Controller\\ViewController), ‘index’)\n#16 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(46): OC\\AppFramework\\App::main(‘ViewController’, ‘index’, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#17 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Route\/Router.php(342): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#18 \/srv\/www\/htdocs\/owncloud\/lib\/base.php(909): OC\\Route\\Router->match(’\/apps\/files\/’)\n#19 \/srv\/www\/htdocs\/owncloud\/index.php(54): OC::handleRequest()\n#20 {main}",“File”:"\/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php",“Line”:2149}"}
{“reqId”:“douovLkFMu25AyVI62G4”,“level”:3,“time”:“2019-06-06T17:59:45+00:00”,“remoteAddr”:“192.168.0.209”,“user”:“ceown”,“app”:“index”,“method”:“GET”,“url”:"/owncloud/index.php/apps/files/",“message”:“Exception: {“Exception”:“InvalidArgumentException”,“Message”:”\"\/avatars\" must be relative to \“files\”",“Code”:0,“Trace”:"#0 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(2022): OC\\Files\\View->getPathRelativeToFiles(’\/avatars’)\n#1 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(1179): OC\\Files\\View->changeLock(’\/avatars’, 2)\n#2 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(274): OC\\Files\\View->basicOperation(‘mkdir’, ‘\/avatars’, Array)\n#3 \/srv\/www\/htdocs\/owncloud\/lib\/public\/Events\/EventEmitterTrait.php(50): OC\\Files\\View->OC\\Files\\{closure}(Array)\n#4 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php(276): OC\\Files\\View->emittingCall(Object(Closure), Array, ‘file’, ‘create’)\n#5 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/Node\/Folder.php(157): OC\\Files\\View->mkdir(’\/avatars’)\n#6 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php(64): OC\\Files\\Node\\Folder->newFolder(‘avatars’)\n#7 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/Node\/LazyRoot.php(386): OC\\Files\\Node\\LazyRoot->__call(‘newFolder’, Array)\n#8 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AvatarManager.php(97): OC\\Files\\Node\\LazyRoot->newFolder(‘avatars’)\n#9 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AvatarManager.php(115): OC\\AvatarManager->getFolder(Object(OC\\Files\\Node\\LazyRoot), ‘avatars’)\n#10 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AvatarManager.php(89): OC\\AvatarManager->getAvatarFolder(Object(OC\\User\\User))\n#11 \/srv\/www\/htdocs\/owncloud\/lib\/private\/TemplateLayout.php(101): OC\\AvatarManager->getAvatar(‘ceown’)\n#12 \/srv\/www\/htdocs\/owncloud\/lib\/private\/legacy\/template.php(239): OC\\TemplateLayout->__construct(‘user’, ‘files’)\n#13 \/srv\/www\/htdocs\/owncloud\/lib\/public\/AppFramework\/Http\/TemplateResponse.php(149): OC_Template->fetchPage()\n#14 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(108): OCP\\AppFramework\\Http\\TemplateResponse->render()\n#15 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files\\Controller\\ViewController), ‘index’)\n#16 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(46): OC\\AppFramework\\App::main(‘ViewController’, ‘index’, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#17 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Route\/Router.php(342): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#18 \/srv\/www\/htdocs\/owncloud\/lib\/base.php(909): OC\\Route\\Router->match(’\/apps\/files\/’)\n#19 \/srv\/www\/htdocs\/owncloud\/index.php(54): OC::handleRequest()\n#20 {main}",“File”:"\/srv\/www\/htdocs\/owncloud\/lib\/private\/Files\/View.php",“Line”:2149}"}

Thanks for your response and patient

Cesar

my configuration files

when try on mozilla 1/2

http://own.xxx.com.ar goto http://own.xxx.com.ar --> Error 403 error 403 forbidden

https://own.xxx.com.ar/ works fine

https://own.xxx.com.ar/owncloud --> https://own.xxx.com.ar/owncloud/index.php/apps/files/
show internal error

What errors are you getting in your apache error.log file? Do you know your vhost configuration works, where did you get it from? We don’t even know yet which Linux your server is hosted on…

Those config files are really not that long, I feel really dirty after downloading and unpacking a random rar file from the internet :stuck_out_tongue:. Additionally you didn’t redact crucial details in your config.php, I’d recommend to take down the archive and just paste the remaining files here.

Here’s your config file as a start:

<?php
$CONFIG = array (
  'instanceid' => 'REDACTED',
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'trusted_domains' => 
  array (
          0 => 'own.xxx.com.ar',
          1 => '1.1.1.1',
  ),
  'datadirectory' => '/mnt/OwnFiles/data',
  'overwrite.cli.url' => 'https://own.xxx.com.ar/owncloud',
  'dbtype' => 'mysql',
  'version' => '10.1.1.1',
  'dbname' => 'OwnCloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'o_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_1',
  'dbpassword' => 'REDACTED',
  'logtimezone' => 'UTC',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'mail_domain' => 'xxx.com.ar',
  'mail_from_address' => 'test',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mail.xxx.com.ar',
  'mail_smtpport' => '443',
);

Not sure why there is 1.1.1.1 in the trusted domains? I hope your not reusing a public IP in a private network?

Can you revert your SSL setup and confirm that it is the SSL installation (and the apache redirect/rewrite) that is creating the issue?

Hey,

have you changed this after the installation? If yes then i think this could be the source of your problem because it seems to be that additional database modifications are required when doing this after the installation:

https://doc.owncloud.com/server/10.2/admin_manual/maintenance/manually-moving-data-folders.html