Database server may not be running - database is empty

> NuB - My first install of Foreman onto Fedora 17 has been problematic with
> lots of Gem and RPM errors. This could be related to downgrading from
> Puppet 3.0.1 to 2.7.19.
>
> Current state:
> After running> service foreman start
> https://myIP/
> Passenger responds with the following error:
> "Your application's database configuration file might be written
> incorrectly. Please check it and fix any errors. "
> "The database server may not be running. Please check whether it's
> running, and start it if it isn't. "
>
> /usr/share/foreman/config/database.yml references db/production.sqlite3
> (note: the other config files are .yaml)
>
> /var/lib/foreman/db/production.sqlite3 is zero length.
>
> Any suggestions?
>
> Here's a cut-down version of database.yml
>
> # SQLite version 3.x
> # gem install sqlite3
> development:
> …
> test:
> …
> production:
> adapter: sqlite3
> database: db/production.sqlite3

not sure why you had errors, probably its a good idea to follow this
screencast: http://www.youtube.com/watch?v=2dwyzPpFJYQ

you could try su to foreman user and then try to run the extras/dbmigrate
script.

Ohad

··· On Tue, Mar 12, 2013 at 6:53 PM, Larry Fast wrote:


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks Ohad,

Bottom line: There are some rubygem-xyz dependencies missing from the
foreman repo … and I took a wrong turn into 'gem install' to get
them. I sat with my IT guy and he showed me the error of my ways. :slight_smile: We
now have a working server.
Cheers,
Larry Fast

··· On Tuesday, March 12, 2013 11:09:53 AM UTC-7, ohad wrote: > > > > On Tue, Mar 12, 2013 at 6:53 PM, Larry Fast <lfas...@gmail.com > > wrote: > >> NuB - My first install of Foreman onto Fedora 17 has been problematic >> with lots of Gem and RPM errors. This could be related to downgrading from >> Puppet 3.0.1 to 2.7.19. > >

not sure why you had errors, probably its a good idea to follow this
screencast: http://www.youtube.com/watch?v=2dwyzPpFJYQ
you could try su to foreman user and then try to run the extras/dbmigrate
script.
Ohad