| Author |
Message |
Irulusug
Beginner


Joined: Aug 25, 2004 Posts: 15
|
Posted: Wed Aug 03, 2005 2:22 pm Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
Itīs "2" of course. Gallery.cfg is writeable, but the directory seems to be write protected.
Ok, I going to write the cfg manually and I will see what happens  |
|
| Back to top |
|
|
AdBot
|
| Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
|
|
|
| Back to top |
|
 |
Irulusug
Beginner


Joined: Aug 25, 2004 Posts: 15
|
Posted: Wed Aug 03, 2005 2:29 pm Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
Ok, I wrote the cfg manually and started to import the users:
Code: ›
Failed to create a extmap entry for role uid [1213] and entityId [1584], entityType [GalleryUser]. Here is the error message from G2:
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1238 (gallerystatus::error)
* in modules/core/classes/GalleryStorage.class at line 294 (mysqldatabasestorage::addmapentry)
* in modules/core/classes/interfaces/ExternalIdMap.inc at line 96 (gallerystorage::addmapentry)
* in admin/index.php at line 161 (externalidmap::addmapentry)
* in admin/index.php at line 327
* in admin/index.php at line 579
* in admin/index.php at line 613
* in /home/apache/htdocs/devcenter/weicheiv2/admin/case/case.gallery2.php at line 55
* in /home/apache/htdocs/devcenter/weicheiv2/admin.php at line 498
Actually my user table counts around 17.000 Users. Maybe thatīs a bit too much? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Aug 04, 2005 6:18 am Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
Irulusug wrote: › Itīs "2" of course. Gallery.cfg is writeable, but the directory seems to be write protected.
Ok, I going to write the cfg manually and I will see what happens 
is the directory itself chmoded to allow the webserver write access (not just the files inside the directory, but the directory itself)? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Aug 04, 2005 6:22 am Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
Irulusug wrote: › Ok, I wrote the cfg manually and started to import the users:
Code: ›
Failed to create a extmap entry for role uid [1213] and entityId [1584], entityType [GalleryUser]. Here is the error message from G2:
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1238 (gallerystatus::error)
* in modules/core/classes/GalleryStorage.class at line 294 (mysqldatabasestorage::addmapentry)
* in modules/core/classes/interfaces/ExternalIdMap.inc at line 96 (gallerystorage::addmapentry)
* in admin/index.php at line 161 (externalidmap::addmapentry)
* in admin/index.php at line 327
* in admin/index.php at line 579
* in admin/index.php at line 613
* in /home/apache/htdocs/devcenter/weicheiv2/admin/case/case.gallery2.php at line 55
* in /home/apache/htdocs/devcenter/weicheiv2/admin.php at line 498
Actually my user table counts around 17.000 Users. Maybe thatīs a bit too much?
the user export is still under very heavy development and should not be thought of as a production-ready product. the gallery team has a team member (a Summer of Code student) writing a user export framework for integrating applications. once that is done, the user export will be much more robust.
regarding your error...it looks like it's a database error. check your G2 database and see if a userid of 1213 has been created. also, try to re-run the user export and see if the error re-occurs. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Aug 04, 2005 6:32 am Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
| another tip, edit the config.php file in your gallery2 directory and set the debug mode to "buffer" and retry. then paste the output here. |
|
| Back to top |
|
|
Irulusug
Beginner


Joined: Aug 25, 2004 Posts: 15
|
Posted: Fri Aug 05, 2005 3:55 am Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
Yes it is. I chmoded and chowned the whole vhost directory of the installation to find a solution. No luck.
dari wrote: ›
is the directory itself chmoded to allow the webserver write access (not just the files inside the directory, but the directory itself)? |
|
| Back to top |
|
|
Irulusug
Beginner


Joined: Aug 25, 2004 Posts: 15
|
Posted: Fri Aug 05, 2005 4:06 am Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
The Userid 1213 was created... it stoped at around 1930.
For any additional try I recieve the following error
Code: ›
Failed to update G2 user with extId [690]. Here is the error message from G2:
Error (ERROR_MISSING_OBJECT) : Missing object for 655
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 2124 (gallerystatus::error)
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 305 (mysqldatabasestorage::_identifyentities)
* in modules/core/classes/GalleryStorage.class at line 118 (mysqldatabasestorage::loadentities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 82 (gallerystorage::loadentities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 141 (galleryentityhelper_simple::loadentitiesbyid)
* in modules/core/classes/GalleryCoreApi.class at line 2207 (galleryentityhelper_simple::loadentitybyexternalid)
* in modules/core/classes/GalleryEmbed.class at line 332 (gallerycoreapi::loadentitybyexternalid)
* in admin/index.php at line 310 (galleryembed::updateuser)
* in admin/index.php at line 579
* in admin/index.php at line 613
* in /home/apache/htdocs/devcenter/weicheiv2/admin/case/case.gallery2.php at line 55
* in /home/apache/htdocs/devcenter/weicheiv2/admin.php at line 498
Yes, I know its under heavy development. Maybe I will have a look at the user import and try to write extension so that Nuke User will be imported to G2 when they validate and active their Nuke Account or doesnt it make sense at the moment? Better wait for the API? Is there a timing when the API should be finished?
Iīve got serious problems with Gallery 1x at the moment. We serve around 95.000 images for about 17.500 User splitted into 3 galleries installations. So the performance is more than poor. This monday they crashed the whole server again. I couldnt believe that a linux system can handle a load of 125 before it stalls .
dari wrote: › tthe user export is still under very heavy development and should not be thought of as a production-ready product. the gallery team has a team member (a Summer of Code student) writing a user export framework for integrating applications. once that is done, the user export will be much more robust.
regarding your error...it looks like it's a database error. check your G2 database and see if a userid of 1213 has been created. also, try to re-run the user export and see if the error re-occurs. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Aug 05, 2005 6:46 am Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
actually, Gallery2 has a plugin that allows yuo to create a new Gallrey2 user when the embedded user visits Galelry2 for the first time. So you don't need to worry about that. It's getting the two DBs to sync up the first time that's giving people the most problems.
When i ran into your problem, i cleared out the Gallery2 user cache and tried again  |
|
| Back to top |
|
|
Irulusug
Beginner


Joined: Aug 25, 2004 Posts: 15
|
Posted: Fri Aug 05, 2005 10:31 am Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
Ok, how is this plugin called? Is it enabled and installed by default? Where can I get these plugin?
Is there an easy way to clear the user cache or do I have to re-install gallery2 again? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat Aug 06, 2005 6:33 am Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE |
|
|
it's buried in the user admin section.
re:clearing the cache -- you can do it manually by emptying the relevant db tables. |
|
| Back to top |
|
|
|
|
|
|
|