Page 1 of 1

CLOSED: Application error : Rails application failed to start properly

Posted: Mon Jun 20, 2016 11:45 am
by sgtfoo
I upgraded from From Fedora 21 to 23, Amahi 8 to 9, and the system has upgraded and I tried hda install *code* and the system does nothing after it, and the webpage for the HDA now gives me:
Application error

Rails application failed to start properly
Could I just get a hint on which logs to get a look at to try and fix? or has anyone else seen this already?

Re: Application error : Rails application failed to start properly

Posted: Mon Jun 20, 2016 5:57 pm
by bigfoot65
It was suggested that you post the HDA production.log as a start.

Re: Application error : Rails application failed to start properly

Posted: Mon Jun 20, 2016 7:55 pm
by cpg
To be clear,

Code: Select all

/var/hda/platform/html/log/production.log

Re: Application error : Rails application failed to start properly

Posted: Mon Jun 20, 2016 8:51 pm
by sgtfoo
I hope this is enough, being a 500 line tail..

https://paste.fedoraproject.org/382399/80887146/

Re: Application error : Rails application failed to start properly

Posted: Mon Jun 20, 2016 9:18 pm
by cpg
There are no errors *and* you were able to login and see apps available, etc.

Re: Application error : Rails application failed to start properly

Posted: Tue Jun 21, 2016 6:36 pm
by sgtfoo
I assure you that is not the case...
This is the IP of my HDA showing in Chrome...

Are there other logs that might be more indicative?
amahi-rails-errore.PNG
amahi-rails-errore.PNG (57.72 KiB) Viewed 11036 times

Re: Application error : Rails application failed to start properly

Posted: Wed Jun 22, 2016 12:16 am
by cpg
take this line:

Code: Select all

Started GET "/tab/apps/installed" for 192.168.1.99 at 2016-06-20 11:38:42 -0400
someone at 192.168.1.99 accessed the apps installed on 2016-06-20 11:38:42 -0400 ..

who can that be.

still, no errors in that log at all.

Re: Application error : Rails application failed to start properly

Posted: Wed Jun 22, 2016 5:40 am
by sgtfoo
That time was before I was upgraded to Fedora 23/Amahi9

When I ran
install hda {code}
nothing happened.

Are we still looking at a reinstall of Fedora to solve this?

It appears that Rails fails to put the page out to apache... My screenshot shows it's failing.
Rails is not my forte, so I'd appreciate some advice.

Last night I ran a dnf reinstall of everything. Still same error on the HDA page.

Here's a few lines I found in /var/log/httpd ....

Code: Select all

[Tue Jun 21 22:53:59.193585 2016] [core:notice] [pid 2863] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Tue Jun 21 22:55:35.699047 2016] [mpm_prefork:notice] [pid 2863] AH00170: caught SIGWINCH, shutting down gracefully [Tue Jun 21 22:55:36.978902 2016] [suexec:notice] [pid 24489] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) AH00112: Warning: DocumentRoot [/var/hda/calendar/html] does not exist
And another thing...

The Samba shares haven't come back online either...
(from /var/log/samba)

Code: Select all

standard input is not a socket, assuming -D option DBI connect('database=hda_production;host=localhost','amahihda',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory") at /usr/share/hda-platform/hda-usermap line 68. [2016/06/20 10:59:46.471558, 0] ../lib/util/become_daemon.c:136(daemon_ready)

Re: Application error : Rails application failed to start properly

Posted: Wed Jun 22, 2016 12:55 pm
by cpg
It looks like mysql is not running. That needs to be fixed first.

"dnf reinstall everything"?!? That is crazy! It may have broken a lot of stuff!!

If there is no production.log entry for the error, maybe the whole rails stack is busted in some way. Mysql not being there should not prevent errors from bring logged, however, please fix mysql first.

Re: Application error : Rails application failed to start properly

Posted: Fri Jun 24, 2016 5:02 pm
by sgtfoo
I gave up and rebuilt with Fedora 23 for Amahi 9.
Safe to say the upgrade path isn't clean enough.

Who do I ask to have my name changed for my *.yourhda.com ?