Can't browse to http://hda/

dspratomo
Posts: 3
Joined: Fri Jul 03, 2009 9:03 am

Can't browse to http://hda/

Postby dspratomo » Fri Jul 03, 2009 9:13 am

Dear all, I just installed amahi and get following error (check amahi.pastebin.com): http://amahi.pastebin.com/m6476f457
This error happen when I tried to browse http://hda from my server. If I tried that from my client, it can never show anything, but "check error log". Folder shares works OK tho.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Can't browse to http://hda/

Postby cpg » Fri Jul 03, 2009 10:58 am

did you change the mysql password?

did it ever work before?

it seems like there is some fundamental issue with your install. :(

can you share the hda-install.log generated (in the directory where you ran hda-install)?

what happens when you do (as root):

Code: Select all

(cd /var/hda/platform/html && rake db:migrate)
also, can you post the output of

Code: Select all

gem list
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

dspratomo
Posts: 3
Joined: Fri Jul 03, 2009 9:03 am

Re: Can't browse to http://hda/

Postby dspratomo » Fri Jul 03, 2009 4:45 pm

Dear cpg, thanks for the prompt reply.
Yes, it worked before, but for some unknown reason it stopped.

(cd /var/hda/platform/html && rake db:migrate) result:

Code: Select all

== 20090222200731 AddWebappCustomFields: migrating ============================ -- add_column(:webapps, :custom_options, :string, {:default=>""}) rake aborted! Mysql::Error: Unknown column 'settings.kind' in 'where clause': SELECT * FROM `settings` WHERE (`settings`.`name` = 'domain') AND (`settings`.`kind` = 'general') LIMIT 1
gem list result:
[root@akon-kaguya html]# gem list

Code: Select all

*** LOCAL GEMS *** actionmailer (2.1.1) actionpack (2.1.1) activerecord (2.1.1) activeresource (2.1.1) activesupport (2.1.1) fcgi (0.8.7) gd2 (1.1.1) gruff (0.3.4) hoe (1.12.2) rails (2.1.1) rake (0.8.7) rmagick (2.5.2) rubyforge (1.0.3)
I've already put some files inside the server, therefore I try to avoid re-install if possible.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Can't browse to http://hda/

Postby cpg » Fri Jul 03, 2009 4:56 pm

well, the database for amahi is somehow corrupted. did you fiddle with phpmyadmin or mysql?

this kind of corruption does not just "happen".

you would have to have been extremely unlucky with some disk errors to be hitting at the amahi database or something.

this would take a bit to time to diagnose, with direct access to the machine, let alone via a forum, so i'm not sure what to say.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

dspratomo
Posts: 3
Joined: Fri Jul 03, 2009 9:03 am

Re: Can't browse to http://hda/

Postby dspratomo » Fri Jul 03, 2009 6:05 pm

Dear cpg,
I see the problem, a couple of weeks ago there's power outage, and after reboot there's fsck-ing. Probably there is a connection with this? However the error didn't happen right away. Is there's a possibility to re-create/repair the database of amahi? TIA

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Can't browse to http://hda/

Postby cpg » Fri Jul 03, 2009 7:17 pm

well, this is dangerous. you will lose your users, settings, apps (some of them will be duplicated after you come back from this), but here it goes:

Code: Select all

mysqladmin -uroot -p drop amahi_production mysqladmin -uroot -p create amahi_production (cd /var/hda/platform/html && rake db:migrate)
i would definitely recommend reinstall. or come by the irc and make your machine accessible for debugging.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Can't browse to http://hda/

Postby moredruid » Sun Jul 05, 2009 11:03 am

wowwww first try to fix the database!

Code: Select all

root@localhost # mysqlcheck -u root -p --auto-repair --check --optimize --all-databases
if that doesn't work, yes then I'd advise reinstall.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Can't browse to http://hda/

Postby cpg » Sun Jul 05, 2009 11:34 am

now that you provided this little gem to check databases i am kind of glad that i i did not close this thread. :)

turns out we followed up via irc and we were able to fix the machine.

the amahi db migration in this box was wedged due to a bug that existed during a brief period in which this box was installed. had to fix it by hand.

thanks for the snippet!
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Can't browse to http://hda/

Postby moredruid » Sun Jul 05, 2009 12:03 pm

yw and glad it helped.

I thought of it because I recently needed to fix a corrupt table at work, otherwise I wouldn't have thought of it as well. 8-)
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

dambirds
Posts: 6
Joined: Mon Aug 10, 2009 9:36 pm

Re: Can't browse to http://hda/

Postby dambirds » Mon Aug 10, 2009 9:37 pm

Is this thread dead?... I too seem to be having a problem with reaching http://hda

any help would be awesome

Who is online

Users browsing this forum: No registered users and 12 guests