Advertisement:

Author Topic: Error 500 after fresh install?  (Read 1836 times)

xhorntail

  • Newbie
  • *
  • Posts: 9
Error 500 after fresh install?
« on: January 31, 2016, 10:51:57 pm »
I just did my first install, and upon completion I went to login to the admin panel, which redirected to

Code: [Select]
http://osclass.website.net/oc-admin/index.php?page=upgrade
and threw a 500.

My Apache logs show this:

Code: [Select]
PHP Fatal error:  require(): Failed opening required '/home/site/domains/osclass.website.net/public_html/oc-admin/themes//upgrade/index.php' (include_path='/home/website/domains/osclass.website.net/public_html/oc-includes/htmlpurifier:.:/usr/share/php:/usr/share/pear') in /home/website/domains/osclass.website.net/public_html/oc-includes/osclass/helpers/hDefines.php on line 182, referer: http://osclass.website.net/oc-admin/?page=login&action=recover
PHP Warning:  require(/home/website/domains/osclass.website.net/public_html/oc-admin/themes//upgrade/index.php): failed to open stream: No such file or directory in /home/website/domains/osclass.website.net/public_html/oc-includes/osclass/helpers/hDefines.php on line 182
mod_fcgid: stderr: PHP Fatal error:  require(): Failed opening required '/home/website/domains/osclass.website.net/public_html/oc-admin/themes//upgrade/index.php' (include_path='/home/website/domains/osclass.website.net/public_html/oc-includes/htmlpurifier:.:/usr/share/php:/usr/share/pear') in /home/website/domains/osclass.website.net/public_html/oc-includes/osclass/helpers/hDefines.php on line 182

As a side note, the captchas on this forum are not colorblind friendly. haha. A refresh button would be great.

xhorntail

  • Newbie
  • *
  • Posts: 9
Re: Error 500 after fresh install?
« Reply #1 on: February 01, 2016, 12:36:50 am »
I reinstalled the script with its own domain, and verified permissions belonged to the proper apache user. Still having this issue though.

Aficionado

  • Guest
Re: Error 500 after fresh install?
« Reply #2 on: February 01, 2016, 01:12:53 am »
I don't know why all new people here post several times the very same question, poluting the forums like that.

http://forums.osclass.org/3-6-x/500-error-upon-visiting-admin-panel-after-fresh-install/


xhorntail

  • Newbie
  • *
  • Posts: 9
Re: Error 500 after fresh install?
« Reply #3 on: February 01, 2016, 01:33:37 am »
It was a double click, the post hung on submission so i recreated it. I already reported that one asking a mod to remove it.

xhorntail

  • Newbie
  • *
  • Posts: 9
Re: Error 500 after fresh install?
« Reply #4 on: February 01, 2016, 01:42:12 am »
So, I've tracked this down to the initial database setup at install. Clearly the library wasn't inserting the default theme name in the require statements above.
The tables mostly looked fine, but being a new person to Osclass, I can't know what I don't know. Anyhow, there was a post mentioning a setting in the preferences table to specify the theme. That setting wasn't there, so I figured table population failed at install.

Checking syslog for MySQL logs gave the following:
Code: [Select]
Jan 31 17:26:36 base mysqld: InnoDB: Unable to lock ./site/oc_t_plugin_category.ibd, error: 37
Jan 31 17:26:36 base mysqld: 160131 17:26:36  InnoDB: Error creating file './sellmyboomstick/oc_t_plugin_category.ibd'.
Jan 31 17:26:36 base mysqld: 160131 17:26:36  InnoDB: Operating system error number 37 in a file operation.
Jan 31 17:26:36 base mysqld: InnoDB: Error number 37 means 'No locks available'.
Jan 31 17:26:36 base mysqld: InnoDB: Some operating system error numbers are described at
Jan 31 17:26:36 base mysqld: InnoDB: http://dev.mysql.com/doc/refman/5.5/en/operating-system-error-codes.html

I tried increasing my ulimit, which didn't help either. So I'm not sure why InnoDB can't lock the files but that seems to be the root of the issues right now.
Also of note is that for some reason the "oc_t_item_description" table is being created as MyISAM.

Aficionado

  • Guest
Re: Error 500 after fresh install?
« Reply #5 on: February 01, 2016, 10:59:52 am »
All this seems like a hosting / server setup problem.


xhorntail

  • Newbie
  • *
  • Posts: 9
Re: Error 500 after fresh install?
« Reply #6 on: February 03, 2016, 01:25:48 am »
Indeed it was, however I couldn't tell that from the preliminary errors.
That's why I updated the post with my findings and left it at that.
This way the post remains here for anyone experiencing the same issue, so that they know where to start looking.