cachet icon indicating copy to clipboard operation
cachet copied to clipboard

Internal Server Error CentOS 6

Open haynes11 opened this issue 10 years ago • 24 comments

Before submitting your issue, please make sure that you've checked all of the checkboxes below.

  • [X ] You're running the latest release version of Cachet.
  • [X ] Ensure that you're running at least PHP 5.5.9, you can check this by running php -v
  • [ X] You've ran rm -rf bootstrap/cache/* from the root of your Cachet installation.

To help us better understand your issue, please answer the following — cheers!

Your setup

  • What version of Cachet? Latest - 2.3?
  • What database driver? MySQL? Postgres? SQLite? - Mysql
  • What version of PHP? 5.6.22

Expected behaviour

Please describe what you're expecting to see happen.

Setup Screen to appear

Actual behaviour

Internal Server Error screenshot_1 screenshot_2 screenshot_11

Please describe what you're actually seeing happen. Finishing setup using official documentation on Cent OS 6. Go to the my fqdn/ip and I get: "Internal Server Error" I've tried running ALL permissions changes/rm -rf commands on the official documentation. I have no idea where logging from Cachet goes otherwise I would produce a log file. I've followed the instructions to the letter several times on the documentation.

Kind Regards, Jerome Haynes

haynes11 avatar Jun 02 '16 21:06 haynes11

I'm also getting 'Internal Server Error' on Nginx after following the documentation very carefully and everything seemingly succeeding.

http://i.imgur.com/bw8B5nC.png

cuddylier avatar Jun 02 '16 21:06 cuddylier

If you're still having trouble, we offer a professional install service at $99.

Just get in touch at [email protected].

GrahamCampbell avatar Jun 03 '16 16:06 GrahamCampbell

You're not even willing to let us know things to check? :(

cuddylier avatar Jun 03 '16 16:06 cuddylier

Common issues include incorrect file permissions and forgetting quotes around entries that contain spaces in them in the .env file.

GrahamCampbell avatar Jun 03 '16 16:06 GrahamCampbell

Getting a more standard error page like that indicates you've not setup php right, rather than cachet.

GrahamCampbell avatar Jun 03 '16 16:06 GrahamCampbell

I've setup php with all that is required on the documentation, unsure of what else to check or what log to look in for this specific issue. Any ideas?

Kind Regards, Jerome Haynes

haynes11 avatar Jun 03 '16 20:06 haynes11

<VirtualHost *:80> ServerAdmin [email protected] ServerName monitorthe.online ServerAlias www.monitorthe.online DocumentRoot "/var/www/html/monitorthe.online/public_html/public" <Directory "/var/www/html/monitorthe.online/public_html/public"> Require all granted # Used by Apache 2.4 Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all

Is what's in my virtual host file. After looking in the log about an auth issue, I googled it and it said to remove "Require all granted "

Assumed that this would just be ignored, but removing it fixes the issue. For Cent OS 6 your file should look like:

<VirtualHost *:80> ServerAdmin [email protected] ServerName monitorthe.online ServerAlias www.monitorthe.online DocumentRoot "/var/www/html/monitorthe.online/public_html/public" <Directory "/var/www/html/monitorthe.online/public_html/public"> Require all granted # Used by Apache 2.4 Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all

haynes11 avatar Jun 03 '16 21:06 haynes11

Are you using Apache 2.4?

jbrooksuk avatar Jun 04 '16 13:06 jbrooksuk

I switched to Apache and managed to get the install done however it now goes to an Internal server error (Error 500) after logging into the admin dashboard, loading the main status page works fine.

cuddylier avatar Jun 04 '16 17:06 cuddylier

Please upload your log files to pastebin and link here.

GrahamCampbell avatar Jun 04 '16 17:06 GrahamCampbell

@GrahamCampbell There is nothing in the /var/log/apache2/error.log since I fixed some permissions issues I was having. Any other logs you wish me to check? I put in a 45 character password on the account setup page, that isn't related no?

cuddylier avatar Jun 04 '16 17:06 cuddylier

There is nothing in the /var/log/apache2/error.log since

Please look at the logs inside Cachet. /storage/logs.

GrahamCampbell avatar Jun 04 '16 17:06 GrahamCampbell

@GrahamCampbell

I think this is it: Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'status.cache' doesn't exist (SQL: select * from `$ Stack trace:

I selected database for both of the options on the install page 1.

cuddylier avatar Jun 04 '16 17:06 cuddylier

@jbrooksuk We should publish the database cachet migrations.

GrahamCampbell avatar Jun 04 '16 17:06 GrahamCampbell

@GrahamCampbell Anyway to create the table in the meantime?

cuddylier avatar Jun 04 '16 18:06 cuddylier

I thought we did?

jbrooksuk avatar Jun 04 '16 21:06 jbrooksuk

No, only the sessions. I think we should not allow database caching though.

GrahamCampbell avatar Jun 04 '16 21:06 GrahamCampbell

Can we delete it from the GUI? It's slow as shit. People are better of using apc, or file.

GrahamCampbell avatar Jun 04 '16 21:06 GrahamCampbell

If I just change the .env to file for the caching, will that work straight away or do I need to re-run the installer somehow?

cuddylier avatar Jun 04 '16 21:06 cuddylier

@cuddylier I had a similar issue(centos 6/apache 2.2) and removed 'Require all granted' from the virtualhost config and things started working. Try commenting that out in the config and restarting apache.

peterborghard avatar Jun 06 '16 00:06 peterborghard