Koozali.org: home of the SME Server

Gallery2

Offline Nokia390

  • ****
  • 88
  • +0/-0
Gallery2
« on: November 27, 2009, 12:11:51 PM »
Hi
I-m trying to install Gallary2 but when i acceess https://myserver/gallery2

give me this error:
"Database Error

An error has occurred while interacting with the database.

Back to the Gallery"


In Phpmyadmin
the gallery2 DB is
 gallery2 (0)
some one have de SQL structure to generate the DB
what i can do?

Thanks and sory my english
« Last Edit: November 27, 2009, 12:15:33 PM by Nokia390 »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Gallery2
« Reply #1 on: November 27, 2009, 12:52:54 PM »
how did you install Gallery2?

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Gallery2
« Reply #2 on: November 27, 2009, 01:03:38 PM »

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Gallery2
« Reply #3 on: November 27, 2009, 03:08:42 PM »
I have try everithing but stil not working

Thanks

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Gallery2
« Reply #4 on: November 27, 2009, 04:26:52 PM »
I had no trouble at all installing gallery2 this morning using the command shown on the contrib wiki page:
Code: [Select]
yum --enablerepo=smecontribs install smeserver-gallery2
During installation, yum mentioned:
Quote
Installing:
 smeserver-gallery2      noarch     2.2-3.el4.sme    smecontribs       7.8 M
 ...
smeserver trap pre-install: smeserver-gallery2
  Installing: smeserver-gallery2           ######################### [1/1]
Creating database 'gallery2' and user 'gallery2user'
...
=======================================================================
Gallery2 Installation finished.
go to http://mmsi.homeip.net/gallery2
Username       : admin
Password       : admin

Please change the admin-password !!
=======================================================================

When done, I could successfully login to gallery2, version 2.2.1.

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Gallery2
« Reply #5 on: November 27, 2009, 04:38:43 PM »
Installed: smeserver-gallery2.noarch 0:2.2-3.el4.sme
Complete!


yes install like that but wen i go to http://myserverip/gallery2



Database Error

An error has occurred while interacting with the database.

Back to the Gallery


I think the problem is in database
is empty
« Last Edit: November 27, 2009, 04:50:52 PM by Nokia390 »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Gallery2
« Reply #6 on: November 27, 2009, 04:59:42 PM »
Nokia390, did you notice any error during setup?

is there anything interesting in logs?

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Gallery2
« Reply #7 on: November 27, 2009, 05:02:09 PM »
no every sing normal.
but if i install egroupware and activate Gallery2 it work, but no if install standalone instalation of gallery

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Gallery2
« Reply #8 on: November 28, 2009, 04:40:41 PM »
The gallery2 contrib is creating and using a database named 'gallery2' with a username of 'gallery2user', as well as several template fragments controlling the proper configuration of apache for use with gallery2.

If the egroupware contrib creates a database of the same name for its gallery2 add-on, but uses a different username, you may get very odd behavior.  If it (or any other contrib you have installed) modifies the apache configuration file in a way that conflicts with the settings required for gallery2, you will have problems.

The bug tracker is *very* useful for getting knowledgeable programmers and developers to help you troubleshoot what is going on with your system - I urge you (again) to create a bug in the bug tracker.  If you don't want to create a bug, you must decide that the gallery2 contrib does not work -- therefore, uninstall it and install the application manually.

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Gallery2
« Reply #9 on: November 28, 2009, 05:24:27 PM »
ok thanks

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Gallery2
« Reply #10 on: November 29, 2009, 12:36:45 AM »
I uninstall egroupware ande remove all the DB´s
i try to install aplication manualy but give this error

ERROR 1141 (42000) at line 1: There is no such grant defined for user 'gallery2user' on host 'localhost'
ERROR 1268 (HY000) at line 1: Can't drop one or more of the requested users


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Gallery2
« Reply #11 on: November 29, 2009, 12:55:38 AM »
Nokia390, I think it's time to report a bug in bugzilla, please do it asap, thank you