Page 1 of 2

Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 8:08 am
by eculcea
I just installed Amahi and along I installed several applications (Drupal, Webmin, etc.) All those applications can be accessed through the web browser. The only application that I can't access is Gallery2. When I enter http://gallery2 it redirects me to an world wide internet page http://guide.opendns.com/?url=gallery2. ... 2Fmain.php. I can't make it work. I even tried to reinstall everything from scratch. Gallery application seems to fit my needs really well and I would really like to make it work.
Thanks

Re: Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 11:09 am
by bigfoot65
Hello,

Sorry to hear you are having issues with Gallery 2. I made a few minor changes, so please try it again.

I would recommend you uninstall it, reboot your hda, then try reinstalling. If it still does not work, please attach the amai-app-install.log found at /var/log to your post.

I would like to ensure everything is installing as designed.

Thanks,

Re: Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 12:41 pm
by eculcea
I uninstalled it, reboot and installed again. Now it works. Thank you. :D

Re: Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 3:54 pm
by godders
Thank you so much, I just thought I'd make a post to guide others to this thread as my problem manifested itself slightly differently. Each time I tried to access http://gallery2 I was redirected to Open DNS suggesting that I was looking for the Olympus web site.

http://guide.opendns.com/?url=gallery2. ... 2Fmain.php

Re: Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 4:07 pm
by tonboe
I have exactly the same issue and have tried the same things

Re: Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 8:18 pm
by bigfoot65
Please try it again. There was a problem with the app download site. I have corrected and tested it. It works good on my machine. This is a large download of about 14MB, so it may take a while to install. It includes support for all languages and plugins.

Re: Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 8:44 pm
by snike3
I hadn't accessed gallery2 since I upgrade to 5.1 from 5.0 and when I did it gave me just a white page that said "Error".

So I used Amahi to uninstall gallery2, rebooted, and then attempted to reinstall. Now http://gallery2 always goes to the opendns.org page for olympus.org like the others. I've examined the named entries as well as the apache virtual server setup. All appear to be correct.

If I access http://gallery2/main.php the gallery2 site appears to work.

I've tried multiple times to do the uninstall, reboot, install and it definitely isn't working. I even attempted to clear the amahi download cache in /tmp/amahi-download-cache before doing the procedure. The amahi log in /var/log shows no errors.

The problems seems to lie in the web-apps/gallery2/html/index.php redirection algorithm. Perhaps something was updated in gallery2 rather than amahi that's making this not work any more.

Re: Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 9:37 pm
by cpg
this looks like a bug in the configuration of the app ...

when i try curl -v http://gallery2.home.com i get

Code: Select all

< HTTP/1.1 302 Found < Date: Tue, 26 Jan 2010 04:34:57 GMT < Server: Apache/2.2.14 (Fedora) < X-Powered-By: PHP/5.3.1 < Location: http://gallery2.olympus.com/main.php < Content-Length: 0 < Connection: close < Content-Type: text/html; charset=UTF-8
which is a redirection ...

also ... this config like contains the olympus site:

Code: Select all

config.php:194:$gallery->setConfig('baseUri', 'http://gallery2.olympus.com/main.php');

Re: Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 9:39 pm
by cpg
filed http://bugs.amahi.org/issues/show/423

please go there and add yourself to the bug by clicking on "Watch"
(you may need to login to see the option to watch the bug)

Re: Gallery2 not able to access the admin page

Posted: Mon Jan 25, 2010 10:00 pm
by cpg
the workaround until this is fixed is doing this, both as root:

1 - change the domain from olympus.com to your domain (in my case, home.com)
in the url in like 194 (setConfig of baseUri) in
/var/hda/web-apps/gallery2/html/config.php

2- service httpd reload