Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Error: 500 (Internal Server Error) #19

Closed
suneyo21 opened this issue Jul 23, 2015 · 17 comments · Fixed by #25
Closed

Server Error: 500 (Internal Server Error) #19

suneyo21 opened this issue Jul 23, 2015 · 17 comments · Fixed by #25

Comments

@suneyo21
Copy link

I was able to install the script without any issues, but i am having this error "Server Error: 500 (Internal Server Error)" upon accessing it, and i cant see any logs on apache.

@suneyo21
Copy link
Author

Still having this error. I tried a lot of changes changing permission and conf files including the article below, the worst part is no error appearing on apache logs.

http://askubuntu.com/questions/413887/403-forbidden-after-changing-documentroot-directory-apache-2-4-6

@suneyo21
Copy link
Author

My os is Ubuntu 14.04.2 LTS

@meganeshkadam
Copy link

Hi
I faced the same issue and tried to resolve it with the help of snipe...
it seems this script does not create the database..

@diclophis
Copy link

I think this is related to changes in the artisan expect script:

expect "Do you want to seed your database with dummy data? (deafult is yes):" {send "yes\r"}

@jmac810
Copy link

jmac810 commented Aug 24, 2015

Here is what the output is.

screen shot 2015-08-24 at 4 55 04 pm

@ghost
Copy link

ghost commented Sep 3, 2015

i just installed snipe-it on Ubuntu 14.0.4 results OK=27 changed=23 failed =0

i browse to the server and i get
Whoops!
Server Error: 500 (Internal Server Error)

any quick fixes ?

@diclophis
Copy link

@alshawwa we were able to get it to run by updating the artisan expect script..

- name: Add expect installation script for Artisan (this is custom)
  template: src=artisan_expect.exp.j2 dest={{ snipeit_source }}/artisan_expect.exp mode=0755

Then we added our custom template that looks like this:

#### templates/artisan_expect.exp.j2

#!/usr/bin/expect

spawn php artisan app:install

expect "Please enter your first name:" {send "{{ admin_first_name }}\r"}
expect "Please enter your last name:" {send "{{ admin_last_name }}\r"}
expect "Please enter your user email:" {send "{{ admin_email }}\r"}
expect "Please enter your user password (at least 8 characters):" {send "{{ admin_password }}\r"}
expect "Do you want to seed your database with dummy data? y/n (default is yes):" {send "yes\r"}
expect "Do you really wish to run this command?" {send "yes\r"}
expect "Do you really wish to run this command?" {send "yes\r"}

expect eof

@ghost
Copy link

ghost commented Sep 3, 2015

yup got it working
thanks!

@ccarter2424
Copy link

Hey Guys same problem and unsure of how you have fixed it?
What files do i need to edit??

Sorry total newbie!!

Thanks in advance

@msivaklsg
Copy link

Hi Guys,

Any way someone can post detailed instructions on how to fix the 500 error?

Thank you much!

@ghost
Copy link

ghost commented Oct 13, 2015

what i did was i re-ran install.sh from the snipe-it-2.x.x source and when asked to autocreate database username and password , i chose to manually set them up and then everything started working fine.

@msivaklsg
Copy link

Thanks. Rebooted the server, and re-ran install.sh and its working like a charm!!

Thank you! Thank you! Thank you!

@patgmac
Copy link
Contributor

patgmac commented Oct 16, 2015

Has anyone figured out a fix for this yet? Re-running install.sh has not worked for me.

@ghost
Copy link

ghost commented Oct 16, 2015

when you re-ran install.sh it and got to the database creation did you let the script auto generate passwords or did you set your own?
is your server running anything else other than snipe-it ?

@patgmac
Copy link
Contributor

patgmac commented Oct 16, 2015

I've tried both ways, even tried with a vagrant install. This is a brand new Ubuntu VM with nothing else on it. I've also tried deleting the db and user so the script can re-create them.

Create MySQL accounts
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

@ghost
Copy link

ghost commented Oct 16, 2015

@patgmac try that script , i tried it on 3 different Ubuntu flavors and it worked just fine.

###remember to set your own sql passwords when asked by the install.sh script , do not let it auto generate passwords####

can be downloaded from http://1drv.ms/1Giahjt , then " sudo bash snipeinst.sh"
or
you can sudo each command in the script file , whatever makes you feel conformable

GR360RY added a commit that referenced this issue Feb 22, 2016
@jmcilhargey1
Copy link

jmcilhargey1 commented Apr 29, 2016

I had similar issues running ubuntu 14.04 LTS and had to run command below to get the database successfully set up.

/opt/snipe-it php artisan app:install

Issue resolved by using following link.

snipe/snipe-it#797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants