@todo G2_FUNCTION_FAILED'

exrace

Joined: 2006-01-02
Posts: 26
Posted: Sun, 2009-09-13 23:42

I am doing some testing of a convert.
I have g3 in sub dir /g3 under my G2 setup and the import finds the g2 data with no problems when I supply ../embed.php

It gets real close to finishing then throws this error.
Any ideas what to look at?
It looks complete when i vie but not sure what step is failing here.

exception 'Exception' with message '@todo G2_FUNCTION_FAILED' in /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/g2_import/helpers/g2_import.php:927
Stack trace:
#0 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/g2_import/helpers/g2_import.php(856): g2(Array)
#1 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/g2_import/helpers/g2_import_task.php(150): g2_import_Core::get_comment_ids(0)
#2 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#3 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/gallery/helpers/task.php(81): call_user_func_array('g2_import_task:...', Array)
#4 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/gallery/controllers/admin_maintenance.php(185): task_Core::run('5')
#5 [internal function]: Admin_Maintenance_Controller->run('5')
#6 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/gallery/controllers/admin.php(50): call_user_func_array(Array, Array)
#7 [internal function]: Admin_Controller->__call('maintenance', Array)
#8 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#9 [internal function]: Kohana::instance()
#10 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/system/core/Event.php(209): call_user_func(Array)
#11 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/index.php(85): require('/var/www/vhosts...')
#13 {main}

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2009-09-14 00:18

Try with the latest code, we now report the actual failure in the Gallery 2 code. See the upgrading link in my signature.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
exrace

Joined: 2006-01-02
Posts: 26
Posted: Mon, 2009-09-14 02:16

Upgrade went Ok. Slick upgrader. :)
Looks like same message is reported.
Is there another log file I need to look at?

exception 'Exception' with message '@todo G2_FUNCTION_FAILED' in /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/g2_import/helpers/g2_import.php:927
Stack trace:
#0 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/g2_import/helpers/g2_import.php(856): g2(Array)
#1 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/g2_import/helpers/g2_import_task.php(150): g2_import_Core::get_comment_ids(0)
#2 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#3 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/gallery/helpers/task.php(81): call_user_func_array('g2_import_task:...', Array)
#4 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/gallery/controllers/admin_maintenance.php(185): task_Core::run('7')
#5 [internal function]: Admin_Maintenance_Controller->run('7')
#6 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/modules/gallery/controllers/admin.php(50): call_user_func_array(Array, Array)
#7 [internal function]: Admin_Controller->__call('maintenance', Array)
#8 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#9 [internal function]: Kohana::instance()
#10 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/system/core/Event.php(209): call_user_func(Array)
#11 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /var/www/vhosts/mysite.com/subdomains/gallery/httpdocs/g3/index.php(85): require('/var/www/vhosts...')
#13 {main}

 
exrace

Joined: 2006-01-02
Posts: 26
Posted: Mon, 2009-09-14 02:23

Think I found it after reading the FAQ :)
Maybe I need to upgrade the G2 before the import?

2009-09-13 22:12:01 -04:00 --- error: Gallery 2 call failed with: Error (ERROR_STORAGE_FAILURE)<b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 480 (GalleryCoreApi::error)
<b>in</b> g3/var/modules/g2_import/b07cd1cac2e60b756fbd0dc36f2b8ae4/Gallery.class <b>at line</b> 203 (GalleryStorage::search)
<b>in</b> g3/modules/g2_import/helpers/g2_import.php <b>at line</b> 856 (G2_Gallery::search)
<b>in</b> g3/modules/g2_import/helpers/g2_import_task.php <b>at line</b> 150 (g2_import_Core::get_comment_ids)
<b>in</b> ??? <b>at line</b> 0 (g2_import_task_Core::import)
<b>in</b> g3/modules/gallery/helpers/task.php <b>at line</b> 81
<b>in</b> g3/modules/gallery/controllers/admin_maintenance.php <b>at line</b> 185 (task_Core::run)
<b>in</b> ??? <b>at line</b> 0 (Admin_Maintenance_Controller::run)
<b>in</b> g3/modules/gallery/controllers/admin.php <b>at line</b> 50
<b>in</b> ??? <b>at line</b> 0 (Admin_Controller::__call)
<b>in</b> g3/system/core/Kohana.php <b>at line</b> 291 (ReflectionMethod::invokeArgs)
<b>in</b> ??? <b>at line</b> 0 (Kohana::instance)
<b>in</b> g3/system/core/Event.php <b>at line</b> 209
<b>in</b> g3/system/core/Bootstrap.php <b>at line</b> 55 (Event::run)
<b>in</b> g3/index.php <b>at line</b> 85

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2009-09-14 02:25

Yeah looks like something is wrong with your underlying G2, somewhere in the comment processing code judging from where it's bombing. Is your G2 working properly? What version of G2? Try upgrading G2 and then resuming the G2->G3 import.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
exrace

Joined: 2006-01-02
Posts: 26
Posted: Mon, 2009-09-14 11:59

I tried last night to upgrade but it failed miserably with many missing argument debug messages.
Going to give another try using the minimal version. I did the upload current version (using full version). This is what I am running now.

Gallery version = 2.2.3 core 1.2.0.5
PHP version = 5.2.9 cgi-fcgi
Webserver = Apache/2.0.63 (CentOS)
Database = mysqli 5.0.68-log, lock.system=database

Any suggestion on doing the upgrade?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-09-14 15:07

With the minimal version, make sure you are using English and uninstall all unused or unneeded plugins (unneeded for the upgrade and just to get gallery working)

Why are you using database for your locking mechanism? Try file locking if your server is Linux (which it is)
Site Admin > General
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
exrace

Joined: 2006-01-02
Posts: 26
Posted: Mon, 2009-09-14 22:58

If I deactivate comments the import completes so there is something in the comments that is crashing the import.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2009-09-16 02:21

I find this part of the trace really confusing:

<b>in</b> g3/modules/g2_import/helpers/g2_import.php <b>at line</b> 856 (G2_Gallery::search)
<b>in</b> g3/modules/g2_import/helpers/g2_import_task.php <b>at line</b> 150 (g2_import_Core::get_comment_ids)

It's calling g2_import::get_comment_ids() which starts on line 830 of g2_import.php. But the failure as stated is happening on line 856 which is in get_tag_item_ids(). I don't understand how it got from importing comments to importing tags there. Perhaps the code is garbled? Can I get ftp or ssh access to your install to check it out?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
exrace

Joined: 2006-01-02
Posts: 26
Posted: Wed, 2009-09-16 16:56

I am going to try another setup with this as I played around a bit too much with the current setup and broke it. :)
I will also look at the raw comments data to see if possibly there is a bad character stored in the comments that might break the import.
I will report back here with my findings.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-09-16 17:09

Make sure you get the purifier from gallery3-contrib

Looks like github's fail kitty it out and about (they're down again), but you can still pull and clone from the git repository from the command line at your server.

unfortunately I don't know the url for gallery3-contrib off hand, a guess:
git clone git://github.com/gallery/gallery3-contrib.git

Hey and that's right :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
exrace

Joined: 2006-01-02
Posts: 26
Posted: Sun, 2009-10-25 02:58

Been away for a bit (5 weeks already) but going to give this another try.
Any major changes in the upgrader code that might address some of what I found?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2009-10-25 08:22

Maybe. Did you give Bharat ftp or ssh access?

We didn't see you report back with more finding either...

Best info I can give you right now is to try it :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
exrace

Joined: 2006-01-02
Posts: 26
Posted: Sun, 2009-10-25 18:40

Thanks.
I will get fresh setup and do the update procedure.
Till then.

 
Kampf Katze
Kampf Katze's picture

Joined: 2006-01-18
Posts: 35
Posted: Tue, 2010-03-23 21:25

I have also a problem with importing from the old gallery on Gallery3 RC1

Info from gallery2:
Gallery URL = http://gallery.XXXXXXXXXXXX.de/main.php
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.12-nmm1 cgi-fcgi
Webserver = Apache
Database = mysqlt 5.0.51a-3ubuntu5.5-log, lock.system=flock
Toolkits =
Acceleration = partial/3600, full/604800
Operating system = Linux dd5830 2.6.24-27-server #1 SMP Mon Feb 22 18:46:29 UTC 2010 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; de-de) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7
Rows in GalleryAccessMap table = 213
Rows in GalleryAccessSubscriberMap table = 5029
Rows in GalleryUser table = 9
Rows in GalleryItem table = 5021
Rows in GalleryAlbumItem table = 84
Rows in GalleryCacheMap table = 1

I try the tip to install the simplest version of Gallery2, but it's still doesn't work for me. I got always the message "@todo G2_FUNCTION_FAILED"

The log from Gallery3 given me this informations:
2010-03-23 14:17:06 -07:00 --- error: Gallery 2 call failed with: Error (ERROR_PLATFORM_FAILURE) : /www/htdocs/XXXXXXX/gallery/g2d_XXXXXXXX/locks/1 <b>in</b> modules/core/classes/FlockLockSystem.class <b>at line</b> 72 (GalleryCoreApi::error)
<b>in</b> modules/core/classes/GalleryLockSystem.class <b>at line</b> 147 (FlockLockSystem::_acquireLock)
<b>in</b> modules/core/classes/helpers/GalleryLockHelper_simple.class <b>at line</b> 176 (GalleryLockSystem::acquireWriteLock)
<b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 2291 (GalleryLockHelper_simple::acquireWriteLock)
<b>in</b> modules/core/classes/helpers/GalleryPermissionHelper_advanced.class <b>at line</b> 1054 (GalleryCoreApi::acquireWriteLock)
<b>in</b> modules/core/classes/helpers/GalleryPermissionHelper_advanced.class <b>at line</b> 1090 (GalleryPermissionHelper_advanced::_getAccessListCompacterLock)
<b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 524 (GalleryPermissionHelper_advanced::compactAccessLists)
<b>in</b> /www/htdocs/XXXXXXXXXX/gallery3/modules/g2_import/helpers/g2_import_task.php <b>at line</b> 77 (GalleryCoreApi::compactAccessLists)
<b>in</b> ??? <b>at line</b> 0 (g2_import_task_Core::import)
<b>in</b> /www/htdocs/XXXXXXXXX/gallery3/modules/gallery/helpers/task.php <b>at line</b> 90
<b>in</b> /www/htdocs/XXXXXXXXX/gallery3/modules/gallery/controllers/admin_maintenance.php <b>at line</b> 186 (task_Core::run)
<b>in</b> ??? <b>at line</b> 0 (Admin_Maintenance_Controller::run)
<b>in</b> /www/htdocs/XXXXXXXXXXX/gallery3/modules/gallery/controllers/admin.php <b>at line</b> 57
<b>in</b> ??? <b>at line</b> 0 (Admin_Controller::__call)
<b>in</b> /www/htdocs/XXXXXXXXXX/gallery3/system/core/Kohana.php <b>at line</b> 330 (ReflectionMethod::invokeArgs)
<b>in</b> ??? <b>at line</b> 0 (Kohana_Core::instance)
<b>in</b> /www/htdocs/XXXXXXXXXX/gallery3/system/core/Event.php <b>at line</b> 208
<b>in</b> /www/htdocs/XXXXXXXXXX/gallery3/application/Bootstrap.php <b>at line</b> 67 (Event_Core::run)
<b>in</b> /www/htdocs/XXXXXXXXXX/gallery3/index.php <b>at line</b> 91

2010-03-23 14:17:06 -07:00 --- error: exception 'Exception' with message '@todo G2_FUNCTION_FAILED' in /www/htdocs/XXXXXXXXXX/gallery3/modules/g2_import/helpers/g2_import.php:1117
Stack trace:
#0 /www/htdocs/XXXXXXXXXX/gallery3/modules/g2_import/helpers/g2_import_task.php(77): g2(Object(GalleryStatus))
#1 /www/htdocs/XXXXXXXXXX/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#2 /www/htdocs/XXXXXXXXXX/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#3 /www/htdocs/XXXXXXXXXX/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('15')
#4 [internal function]: Admin_Controller->__call('15')
#5 /www/htdocs/XXXXXXXXXX/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#6 /www/htdocs/XXXXXXXXXX/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#7 /www/htdocs/XXXXXXXXXX/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#8 /www/htdocs/XXXXXXXXXX/gallery3/index.php(91): require('/www/htdocs/w00...')
#9 {main}

I have no idea what i can do now.

So all infos around the import looking well for me...
In the maintenance i got this info around the import: Gallery 2.3.1 detected and if I'm open the import modul from gallery3 i got also the right informations around existing images like this:
Your Gallery 2 has the following importable data in it
9 users
10 groups
84 albums
4937 photos
0 movies
0 comments
0 tagged photos/movies/albums

Any idea what i can do?