phuclh93
By:
phuclh93

Cannot access website after take snapshot

January 28, 2015 2k views

I power off droplet and take a snapshot. Then I power on my droplet but my site can not access.

Can anyone help me?

1 comment
  • Have you attempted to log into your droplet via ssh or the web console in the control panel to investigate? If so, did you find anything reflected in your log files to indicate a problem?

3 Answers

Maybe you webserver Apache/Nginx/whatever is not configured to start on boot, check the service is up ie:

service apache status (check for service startup script for your current webserver).

  • I run service apache status and it return: apache: unrecognized service

  • Again, i'm not sure what you are running as a webserver, so can be "service apache2 status", or something else.

    if is works with "service apache2 status" do "service apache2 start" to start the service in case is down, or "service apache2 restart" to restart it.

  • I'm using nginx. I run sudo service nginx start but nothing is happen.

  • and what sudo service nginx status says?

  • Thank you. I run the command: ps waux | grep nginx and my site worked :D.

  • You welcome, but ps waux | grep nginx just shows you if nginx is working or not, same as service nginx status. So it was off and you did service nginx start to make it work? if so you need to make sure nginx service run at boot so this never happen again,

    it should be something like
    sudo chkconfig nginx on

Maybe a little later, but my problem was the same. And i did everything (edit every conf file)...and nothing...after about 2 days of research i found the solution and was so simple that make me look as a fool...here it is:

1) restore from snapshot
2) in console stop apache service ( service apache2 stop)
3) stop service from the app script (sudo /opt/bitnami/ctlscript.sh stop)
4) start service from the app script (sudo /opt/bitnami/ctlscript.sh start)

and thats it...all works perfect again!

Have another answer? Share your knowledge.