Hi all,
I've got an urgent problem.

I'm using the latest Acquia Dev Desktop Installation on MacOS Lion.

Everything worked fine. But after not shutting down MacOS and not waiting for the Control Panel finishing to shut down itself, the Control Panel doesn't start anymore.

I have a local Drupal Site running with two weeks of work in it. I don't dare to reinstall the the dev desktop without doing a database backup before.

But I don't know how to backup the database, when I can't start the control panel.

What to do?

Any help would be appreciated very much.

Thanks in Advance
Mathis

Comments

ayesh’s picture

Haven't used this software on a Mac. Try to start stack somehow. You will find some executable files for Apache (httpd) and MySQL (mysqld). names within brackets are some suggestions if you can't find the name.

If you could get the stack up, go to /phpmyadmin and you can export the database. If you don't know the password, edit sites/default/settings.php file and near line 100, you will find it.

mudds’s picture

Thank you Ayesh,

I don't get the Apache to run, by clicking on the httpd:

/Applications/acquia-drupal/apache/bin/httpd ; exit;
$ /Applications/acquia-drupal/apache/bin/httpd ; exit;
httpd.bin: Could not open configuration file /Users/buildbot/csbworkdir/apache-osx/install/conf/httpd.conf: No such file or directory

Well, yes, there is no such directory. But why is this configured so? There is a httpd.conf in
/Applications/acquia-drupal/apache/conf

Maybe this config file must be linked to the binary-file? But how?

I'm confused

ayesh’s picture

I have read some threads in acquia about starting apache manually - can't remember which url.
You will have to start the process with additional parameters set. (same bla bla for sql)

mudds’s picture

Thanks Ayesh,
got my stack up and running.

Your hint helped.

dman’s picture

I'm having this too today.

Also following an unclean shutdown I just cannot get the CP to work anymore.
I
* re-installed the current distro - failed
* upgraded to the latest version - failed
* Applied the latest Apple updates and tried steps 1 & 2 again. failed. Restarted etc. Nope.
* Completely moved the old install codebase (lots of stuff I'm getting worried about) and installed as if new - failed (!)

The "Acquia Dev Desktop Control Panel" icon flickers and kills itself immediately.
Largely similar to https://forums.acquia.com/comment/55301

The console message is

12/04/12 12:37:13.450 PM com.apple.launchd.peruser.501: ([0x0-0xa50a5].com.Acquia.AcquiaDevDesktopControlPanel[4750]) Exited with code: 255

I was able to MANUALLY restart both the mysql and apache daemons with the following command, run from within /Applications/acquia-drupal

# mysql can restart with
mysql/bin/mysqld --defaults-file=mysql/my.cnf

# apache is 
apache/bin/httpd -d /Applications/acquia-drupal/apache/ -Dphp5_2 -k start

So my sites are salvageable, but the Acquia UI - which is the REASON I use this tool - is DOA.

Whatever is killing it must be somewhere else in my system/preferences.

dman’s picture

Several re-installs later. EVERYTHING I was trying was failing.
Eventually running

cd "/Applications/acquia-drupal/Acquia Dev Desktop Control Panel.app/Contents/MacOS"
sudo ./AcquiaDevDesktopControlPanel 

brought the box back.

So it's permissions .... somewhere.
But I wasn't getting challenged for an admin pass. It must be trying to (write?) to a protected file at startup time. Hm.
Like /etc/hosts? nope.

Well, right now, the control panel runs OK in super-user mode, but I'm damn sure it didn't USED to need to do that. But trying NOT to just fails.

dman’s picture

For reference - while trying to rebuild my shattered life.
Acquia saves its list of configured sites in
Acquia Dev Desktop Control Panel.app/Contents/MacOS/dynamic.ini

It's not as easy as replacing the missing (working) sites where they used to be. Looks like I need to re-import them to the updated/rolled-back/nuked installation I've got now.

greggles’s picture

Hi dman,

Thanks for your post over at https://forums.acquia.com/comment/55621#comment-55621 as well.

I've turned this into a backlog bug. Not sure when it will be prioritized into a sprint, but it's there. Updates will probably get posted to https://forums.acquia.com/comment/55621

dman’s picture

Cheers greggles.
In the meantime I'm writing a drush utility to import sites from their site-alias configs into the desktop ini file format.
Now I can get stuff to 'import' to the acquia platform directly from a site-alias of a site that's working elsewhere. Somewhat.

Because I'd rather spend 2 hours writing a tool than half an hour clickity getting my 20 sites back into the (almost working) replacement version. :-/
My time management sucks, but I learnt about the internals of the distro a little more than before.

karolus’s picture

Thanks for this solution, dman. I was having the same issues, and tried various techniques, including deletes, restores from backups (Time Machine), as well as trashing the preference files, and rebuilding disk permissions.

My system is updated to the latest version of Mac OSX (10.9.2), and I'm careful about keeping Dev Desktop updated as well (running latest as of date). So far, all I can do to get Dev Desktop running is to apply your sudo command.

I'm wondering if it has to do with a recent security update to Mac OSX. The Console logs remain the same:
com.apple.launchd.peruser.502[273]: (com.Acquia.AcquiaDevDesktopControlPanel.150688[1451]) Exited with code: 255

I'm looking to post this to the Acquia forum as well, as soon as I get permission to post...

karolus’s picture

First of all, I have to hand it to the folks at Acquia, for getting right back to me after I pinged them...

I got my issue resolved by installing the v.2 beta of Dev Desktop. So far, no issues, all is running smoothly.

Still no resolution on the v.1 installation of Dev Desktop, but I have a feeling that will be a lower priority, now that v.2 is to release soon.

bwood’s picture

Thanks for the info dman. I just posted https://forums.acquia.com/comment/55751#comment-55751