# DSP Remote SQL DB went down on Amazon EC2

**URL:** <https://community.dreamfactory.com/t/dsp-remote-sql-db-went-down-on-amazon-ec2/755>\
**Category:** Connecting to SQL\
**Created:** [January 13, 2015, 6:09pm UTC](https://community.dreamfactory.com/t/dsp-remote-sql-db-went-down-on-amazon-ec2/755 "2015-01-13T18:09:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveen](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@praveen](https://community.dreamfactory.com/u/praveen)\
**Post date:** [January 13, 2015, 6:09pm UTC](https://community.dreamfactory.com/t/dsp-remote-sql-db-went-down-on-amazon-ec2/755/1 "2015-01-13T18:09:39Z")

</div>

Hi,

I use DSP for my mobile APP and my DSP is hosted on Bitnami LAMP stack on Amazon.  
Today suddenly I noticed that my Remote SQL stopped working.

Nothing we did. For no reason suddenly it stopped.

I restarted my Apache. Did not help.  
I restarted my EC2 instance, and that sorted the issue.

The error I was getting is the very well known DB connection error, which I face on my Locally installed DSP, which I have still not been able to run.

> [@Can't connect to PostgreSQL using Remote DB SQL option. (PGSql installed locally)](https://community.dreamfactory.com/t/cant-connect-to-postgresql-using-remote-db-sql-option-pgsql-installed-locally/457):
>
> I have installed the DSP locally on my Mac Book Pro using Bitnani. I have a PostGreSQL server running locally on my Macbook, which I want to connect to using the DSP. I am successfully able to connect to my PostGreSQL server from other applications, which essentially means that there is no problem with the setup. However, on trying to connect the same from DSP I get the error:- “Failed to launch service “sql”: CDbConnection failed to open the DB connection.” My connection string is :- "pgsql…

I don’t want this incident to go waste, and want some guidance for the future.  
If you can put some light as to what could be the probable error, or if you need some log files etc, please let me know.

I really want to know the cause and remedy so that I can minimize my downtime.

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [January 16, 2015, 8:55pm UTC](https://community.dreamfactory.com/t/dsp-remote-sql-db-went-down-on-amazon-ec2/755/2 "2015-01-16T20:55:36Z")

</div>

It’s entirely possible something crashed in your LAMP stack. I recommend looking at DSP logs (not likely to be terribly helpful), then Apache logs (where PHP crashes are generally also logged). Apache is likely to provide the most insight.
