ORM Validation has failed for items model
Twilek
Joined: 2003-05-30
Posts: 73 |
Posted: Fri, 2010-01-29 20:32 | |||
Hi all, when I last tried to access my gallery (latest git) most pictures wouldn´t show in Subfolders, the albums where still there. When clicking on pictures sometimes a 404 exception would be thrown, but in most another error would show "ORM_Validation_Exception [ Database Error ]: ORM Validation has failed for items model" (See attachment for full error) I have tried to use the rescue module (latest git as well). The "Fixing internet adress" ends with the same error. Regards Update: I just noticed the other thread with the same error while importing G2 data. My install was fresh from a gallery3 beta version and has been updated via git since. I also ran the upgrader after every update
|
||||
Posts: 8339
I cannot even login after fresh install of last night's git
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8339
Today's git has fixed my login issues.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 29
For me still the same ORM Validation message at start of G2 import with git gallery3-a04d0d2 clean install.
Posts: 73
After last git update things seem to be back to normal
Thanks
Posts: 37
I did a git pull from HEAD about an hour ago and now I'm seeing this too:
2010-02-01 20:54:44 -08:00 --- error: ORM Validation has failed for items model
Posts: 37
I just did a git pull from HEAD and the problem seems to have gone away. Looking over the commit log I can't see which commit may have fixed it. I just thought I'd post here to say that whatever was wrong *seems* to be fixed now.
Posts: 6
i just did a fresh install from git and get the following error if i try to import from g2:
Posts: 44
I have the very same problem with last GIT (gallery-gallery3-f9d00aa). I did fresh install of Gallery.
Here is log:
Posts: 32509
just checking whether you really have the latest version. what's in your modules/g2_import/helpers/g2_import_task.php line 124-130?
this is what it's supposed to be (in git):
Posts: 32509
oh, and don't try "resume" of the g2_import task after the upgrade. start a new task.
Posts: 44
Here are the lines:
Posts: 32509
yes, that should be working.
what does your g2_maps database table contain? any entries for resource_type "album"?
(your g2_maps will have different entries, but i'm interested whether there's 1+ album entry in there, or if it fails on the first (=root) album.)
Posts: 17
I have a similar issue trying to perform a g2import on a new install of g3 just cloned off of git tonight. Error log is as follows
Task Import from Gallery 2 started (task id 1)
Group 'Everybody' was converted to 'Everybody'
Group 'Registered' was converted to 'Registered Users'
Group 'Admin' does not exist in Gallery 3, skipping
Loaded existing user: 'admin'.
Added user to group 'Everybody'.
Added user to group 'Registered Users'.
Added 'admin' flag to user
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for users model' in /storage/g3test/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /storage/g3test/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('users', Object(Validation))
#1 /storage/g3test/modules/user/models/user.php(81): ORM_Core->validate(NULL)
#2 /storage/g3test/system/libraries/ORM.php(778): User_Model->validate()
#3 /storage/g3test/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /storage/g3test/modules/user/models/user.php(98): ORM->save()
#5 /storage/g3test/modules/user/libraries/drivers/IdentityProvider/Gallery.php(47): User_Model->save()
#6 /storage/g3test/modules/gallery/libraries/IdentityProvider.php(178): IdentityProvider_Gallery_Driver->create_user('barefootbetsycu...', 'Kathy', '', NULL)
#7 /storage/g3test/modules/gallery/helpers/identity.php(157): IdentityProvider_Core->create_user('barefootbetsycu...', 'Kathy', '', NULL)
#8 /storage/g3test/modules/g2_import/helpers/g2_import.php(307): identity_Core::create_user('barefootbetsycu...', 'Kathy', '')
#9 /storage/g3test/modules/g2_import/helpers/g2_import_task.php(115): g2_import_Core::import_user(Array)
#10 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#11 /storage/g3test/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#12 /storage/g3test/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('1')
#13 [internal function]: Admin_Maintenance_Controller->run('1')
#14 /storage/g3test/modules/gallery/controllers/admin.php(54): call_user_func_array(Array, Array)
#15 [internal function]: Admin_Controller->__call('maintenance', Array)
#16 /storage/g3test/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#17 [internal function]: Kohana_Core::instance(NULL)
#18 /storage/g3test/system/core/Event.php(208): call_user_func_array(Array, Array)
#19 /storage/g3test/application/Bootstrap.php(67): Event_Core::run('system.execute')
#20 /storage/g3test/index.php(91): require('/storage/g3test...')
#21 {main}
mysql> select * from g2_maps;
+----+-------+-------+--------+---------------+
| id | g2_id | g3_id | g2_url | resource_type |
+----+-------+-------+--------+---------------+
| 1 | 4 | 1 | NULL | group |
| 2 | 2 | 2 | NULL | group |
| 3 | 6 | 2 | NULL | user |
+----+-------+-------+--------+---------------+
3 rows in set (0.00 sec)
Posts: 32509
fixed some g2_import bugs related to validation:
http://github.com/gallery/gallery3/commit/42bc1279257268e2c68b5f4b06e62e95ca8228d4
please try again.
Posts: 44
Thank you Valiant. I got last GIT and import is working now.
Posts: 6
i changed the sort order of all albums from "manual" to "creation date" and now the import works
is there a way to find out which album is causing troubles
Posts: 32509
manual sort order should import fine. maybe you had a 2 level sort order (sort with pre-sort)? those weren't handled correctly yet. i've just added a fix to handle those (although we throw away the 2nd leve sort order since G3 doesn't support that).
Posts: 17
valiant: I updated to the newest git yesterday and my issues with importing have been corrected. I was able to import my 8000+ pic (with over 8000 tags) g2 install into g3. Thanks!
Posts: 6
i have these sort order types (g2_AlbumItem)
orderWeight
originationTimestamp
NULL
pathComponent
creationTimestamp
albumsFirst|creationTimestamp
albumsFirst|originationTimestamp
Posts: 32509
@harrymud:
i see. you're using 2 level sorting. and the first level sorting is "albumsFirst" which isn't supported in Gallery 3.
the import process should success. but it won't import the sort order in your case, since it's not supported. you shouldn't see any errors, assuming you're using the latest development version of Gallery 3.
Posts: 6
The import in working now, but after 300 - 400 photos the import gets stalled. Which is not amusing if you want to import 36.000 photos
the client and the gallery server are on the same subnet/switch so i don't think its due to an instable connection.
the exif and search modules are disabled
maybe some timing in apache or php ?
can you give me a hint where i should start to look ?
in the gallery var/logs there is no entry
thx
Posts: 32509
if you resume the task, does it stall immediately again, or how long does it take until it stalls again?
Posts: 6
the import stalls exactly every 20 minutes
Posts: 32509
OK, that's expected (and not so great)
if you installed g3 anew, it would stall every 90 minutes. a bit nicer, but still... it's a security timeout thing, which we need to improve.
you can temporarily increase the timeout in admin -> settings -> advanced: admin area timeout. the value is the number of seconds. e.g. 86400 for 24 hours.
Posts: 6
yippee, the import is currently running for 2h without any interruption
Posts: 81
I still have the issue with immediate dropping, using the current GIT taken today:
Task Import from Gallery 2 started (task id 6)
Group 'Admin' does not exist in Gallery 3, skipping
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for users model' in /path/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 path/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('users', Object(Validation))
#1 path/gallery3/modules/user/models/user.php(81): ORM_Core->validate(NULL)
#2 path/gallery3/system/libraries/ORM.php(778): User_Model->validate()
#3 path/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 path/gallery3/modules/user/models/user.php(98): ORM->save()
#5 path/gallery3/modules/user/libraries/drivers/IdentityProvider/Gallery.php(47): User_Model->save()
#6 path/gallery3/modules/gallery/libraries/IdentityProvider.php(183): IdentityProvider_Gallery_Driver->create_user('', '', NULL, 'unknown@unknown...')
#7 path/gallery3/modules/gallery/helpers/identity.php(157): IdentityProvider_Core->create_user('', '', NULL, 'unknown@unknown...')
#8 path/gallery3/modules/g2_import/helpers/g2_import.php(315): identity_Core::create_user('', '', NULL, 'unknown@unknown...')
#9 path/gallery3/modules/g2_import/helpers/g2_import_task.php(115): g2_import_Core::import_user(Array)
#10 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#11 path/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#12 path/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('6')
#13 [internal function]: Admin_Maintenance_Controller->run('6')
#14 path/gallery3/modules/gallery/controllers/admin.php(57): call_user_func_array(Array, Array)
#15 [internal function]: Admin_Controller->__call('maintenance', Array)
#16 path/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#17 [internal function]: Kohana_Core::instance(NULL)
#18 path/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#19 path/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#20 path/gallery3/index.php(91): require('/path...')
#21 {main}
Posts: 32509
@davert:
do your g2 users have an email address? G3 users require an email address. i guess Bharat fixed something related in the import code last night.
Posts: 81
valiant, I'll check. I just used the RC1 code and it didn't work. ... yes, they all have email addresses. validation's required.
Posts: 81
D'oh! The very first user was completely blank! I filled in bogus data and WE'RE MOVING!!! Thanks!
Posts: 81
I'm getting this one now. I resumed the script after deleting a couple of troublesome (unsupported format) images and movies. Now it just zooms forward to:
User with id: 37 already imported, skipping
User with id: 12033 already imported, skipping
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /path/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /path/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /path/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /path/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /path/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /path/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /path/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /path/gallery3/modules/g2_import/helpers/g2_import.php(567): Item_Model->save()
#7 /path/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#9 /path/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#10 /path/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('15')
#11 [internal function]: Admin_Maintenance_Controller->run('15')
#12 /path/gallery3/modules/gallery/controllers/admin.php(57): call_user_func_array(Array, Array)
#13 [internal function]: Admin_Controller->__call('maintenance', Array)
#14 /path/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#15 [internal function]: Kohana_Core::instance(NULL)
#16 /path/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#17 /path/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#18 /path/gallery3/index.php(91): require('/path...')
#19 {main}
Posts: 81
Does anyone have any ideas on what I can possibly do next? I already ran whatever maintenance I could on the gallery2 install. This stalls at the 4,000th photo or something like that, out of 5,000. If it told me what album the problem was in, it'd help. ... I checked logs and nothing helpful is there. I can't even figure out the order in which albums or photos are pulled in. Nor can I search for, say, .mov files in the gallyer2.
Posts: 32509
@davert: I should have some time to look into this tonight. But without your data, it's going to be guesswork as to what's going wrong. We'll see...
Posts: 81
Thanks, valiant. If there is antyhing I can do, any sort of debugger I can enable, etc., just let me know. I wish I knew what it was failing on; that would help but it's not saying.
Posts: 81
Update: I turned on debug mode in G2 and rebuild thumbnails, I get some errors - 83 of them ... one error is "realpath(/home/dave/public_html/gallery/modules/core/classes/../../../)
realpath(/home/dave/public_html/gallery/)
Error (ERROR_TOOLKIT_FAILURE) : Can't convert to unknown mime type:
image/jpeg in modules/imagemagick/classes/ImageMagickToolkit.class
at line 628 (GalleryCoreApi::error)
in modules/imagemagick/classes/ImageMagickToolkit.class at
line 363 (ImageMagickToolkit::_transformImage)
in modules/core/classes/GalleryDerivative.class at line 452
(ImageMagickToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 274
(GalleryDerivative::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line
153 (GalleryDerivative::rebuildCache)
in ... (it goes on for a long time)"
I am trying again using GD intead of ImageMagick in case the issue has to do with the thumbnails and downsized versions. When that's done in an hour or two, I'll try once more... I did look at one of the photos that debugging indicated to be a problem and there was nothing wrong with it.
Posts: 81
Valiant, I feel like a dang fool. I found the Integrity module for G2 and ran it. It says:
Failed to load entity ids: 4347, 4348, 4349, 4350, 4351, 4352, 4353, 4354, 4355, 4356, 4357, 4358, 4359, 4360, 4361, 4362, 4363, 4364, 4365, 4366, 4367, 4368, 4369, 4370, 4371, 4372, 4373, 4374, 4375, 4376, 4377, 4378, 4379, 4380, 4381, 4382, 4383, 4384, 4385, 4386, 4387, 4388, 4389, 4390, 4391, 4392, 4393, 4394, 4395, 4396, 4397, 4398, 4399, 4400, 4401, 4402, 4403, 4404, 4405, 4406, 4407, 4408, 4409, 4410, 4411, 4412, 4413, 4414, 4415, 4416, 4417, 4418, 4419, 4420, 4421
Orphaned data in table AccessMap with no row in AccessSubscriberMap table; ids: 19316, 23144, 23145, 23146, 23147, 23158, 23159, 23160, 23161, 23173, 23174, 23175, 23176, 23209, 23210, 23211, 23212, 23271, 23272, 23273, 23274, 23288, 23289, 23290, 23291, 23303, 23304, 23305, 23306, 23352, 23353, 23354, 23355, 23356, 23367, 23368, 23369, 23370, 23389, 23390, 23391, 23392, 23455, 23456, 23457, 23458, 23463, 23464, 23465, 23466, 23474, 23475, 23476, 23477, 23512, 23513, 23514, 23515, 23576, 23577, 23578, 23579, 23580, 23582, 23587, 23588, 23589, 23590, 23627, 23628, 23629, 23630, 23635, 23636, 23637, 23638, 23678, 23679, 23680, 23681, 23696, 23697, 23698, 23699, 23762, 23763, 23764, 23765, 23781, 23782, 23783, 23784, 23793, 23794, 23795, 23796, 23814, 23815, 23816, 23817, 23833, 23834, 23835, 23836, 23869, 23875, 23876, 23877, 23878, 23894, 23895, 23896, 23897, 23909, 23910, 23911, 23912, 23922, 23923, 23924, 23925, 23931, 23932, 23933, 23934, 24076, 24077, 24078, 24079, 24118, 24119, 24120, 24121, 24135, 24136, 24137, 24138, 24244, 24245, 24246, 24247, 24252, 24253, 24254, 24255, 24263, 24264, 24265, 24266, 24271, 24272, 24273, 24274, 24439, 24440, 24441, 24442, 24466, 24467, 24468, 24469, 24527, 24528, 24529, 24530, 24554, 24555, 24556, 24557, 24586, 24587, 24588, 24589, 24615, 24616, 24617, 24618, 24692, 24693, 24694, 24695, 24780, 24781, 24782, 24783, 24810, 24811, 24812, 24813, 24845, 24846, 24847, 24848, 24898, 24899, 24900, 24901, 25106, 25107, 25108, 25109, 25114, 25115, 25116, 25117, 25253, 25254, 25255, 25256
and then tells me a bunch of missing images.
Egads!
So I have my work cut out for me.
Posts: 81
I wonder if the import module could be programmed to allow errors like missing images, paths with no connection, etc., and all these other database imperfections... I could spend six solid days trying to clean up the database...
Posts: 115
Yesterday downloaded the RC1 in order to start the migration of my site. After imported all the users it stopped immediately with "ORM Validation has failed for items model" error. See below.
Any idea how to solve this?
Gallery3 is currently pointing to www.dailyalbum.net
http://www.dailyalbum.com
Posts: 263
Im having the same error but not the exact same reasons, worked fine In all the beta3 version??
I did try removing the offending .jpgs I did not get the ORM Error but still only the last album was imported??
I deleted the offending jpgs listed and It just stalled..
With the last version of beta3 no problem, with the exception of java error with the slideshow...
Thanks..
ORM Validation has failed for items model
Task Import from Gallery 2 started (task id 18)
Group 'Admin' does not exist in Gallery 3, skipping
User with id: 5 already imported, skipping
User with id: 5839 already imported, skipping
User with id: 6 already imported, skipping
User with id: 5171 already imported, skipping
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/NW/IMG_2678.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/NW/IMG_2678.jpg.html"></a> from Gallery 2 could not be processed
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/Scapes/IMG_2233_001.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/Scapes/IMG_2233_001.jpg.html"></a> from Gallery 2 could not be processed
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/Scapes/IMG_3321_001.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/Scapes/IMG_3321_001.jpg.html"></a> from Gallery 2 could not be processed
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(455): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(188): g2_import_Core::set_album_highlight(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
Posts: 81
FWIW, I tried starting over, deleting my gallery3 install and reimporting g2 ... first it stalled on a bmp, which I removed, then it went right back to the explanation-free "items model" failure.
PS> Is it really copying every photo, instead of just leaving the photos where they are and creating a new database based on the old photos and thumbnails?
PPS> Could part of the problem be that I am using the same database for G2 and G3? Should I use a different db for G3?
Posts: 81
Here's the current error.
2010-02-28 11:06:23 -08:00 --- error: exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home//public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home//public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home//public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home//public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home//public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home//public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home//public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home//public_html/gallery3/modules/g2_import/helpers/g2_import.php(567): Item_Model->save()
#7 /home//public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#9 /home//public_html/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#10 /home//public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('2')
#11 [internal function]: Admin_Maintenance_Controller->run('2')
#12 /home//public_html/gallery3/modules/gallery/controllers/admin.php(57): call_user_func_array(Array, Array)
#13 [internal function]: Admin_Controller->__call('maintenance', Array)
#14 /home//public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#15 [internal function]: Kohana_Core::instance(NULL)
#16 /home//public_html/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#17 /home//public_html/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#18 /home//public_html/gallery3/index.php(91): require('/home//publ...')
#19 {main}
2010-02-28 11:06:23 -08:00 --- error: Validation errors: Array
(
[type] => invalid
)
Posts: 32509
Please git pull the latest fixes, and report the new error / log messages:
http://github.com/gallery/gallery3/commit/1077477a9032d5a4855e19e2dd4ce923472b711c
It will probably still fail, but it should report why so we can identify the issue.
And no, using the same DB for G2 and G3 is fine (as long as the table names have a different prefix, e.g. g2_ for G2 and no table prefix for G3 is fine).
Posts: 81
Thanks, doing so now. ... you won't believe this, but it seems to be importing properly this time... up to 4,003 of 4,799 now. Will report in later. ... ha ha, 4,253 now, going around 1-2 per second... your importer really seems to have done wonders!
For debugging purposes, the log recorded this before the program moved on:
2010-03-01 06:10:57 -08:00 --- error: exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home//public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home//public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home//public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home//public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home//public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home//public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home//public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home//public_html/gallery3/modules/g2_import/helpers/g2_import.php(567): Item_Model->save()
#7 /home//public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#9 /home//public_html/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#10 /home//public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('6')
#11 [internal function]: Admin_Maintenance_Controller->run('6')
#12 /home//public_html/gallery3/modules/gallery/controllers/admin.php(57): call_user_func_array(Array, Array)
#13 [internal function]: Admin_Controller->__call('maintenance', Array)
#14 /home//public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#15 [internal function]: Kohana_Core::instance(NULL)
#16 /home//public_html/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#17 /home//public_html/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#18 /home//public_html/gallery3/index.php(91): require('/home//publ...')
#19 {main}
2010-03-01 06:10:57 -08:00 --- error: Validation errors: Array
(
[type] => invalid
)
Seems to have stalled on "Importing photos (4798 of 4799)" but I'll give it some time... be funny if the very last photo clobbered it. No additional error messages in the log though. I sure wish I knew what had whacked it.
Posts: 81
... so I let it run for 15 minutes on the last photo and then hit Pause. The status of the task showed as "Stalled" in the Maintenance screen. Now, when I try "Import from Gallery 2," it stalls on "Starting up..."
The "rebuild photos" thing says I have one old photo but that's even if I rebuild it, I get stalled on "Starting up..."
Nothing new has been added to the log.
Any ideas? I sure am further along than I was before. I wonder if I should try shutting off "comments" and seeing if that does anything?
Posts: 32509
@davert:
there should be more information. the exception from above, is that from the var/log/? in the lines just above this message, there should be more about the error.
Posts: 81
That was from /var/log and that's all there was aside from the usual intro: <?php defined('SYSPATH') or die('No direct script access.'); ?>
moving on, I did enable debugging via local.php and got: @todo G2_FUNCTION_FAILED
Wait a second, apparently this was in the log too and for some reason I wasn't seeing it... which is odd! But helpful to see.
2010-03-01 09:57:40 -08:00 --- error: Gallery 2 call failed with: Error (ERROR_MISSING_OBJECT) : Missing object for 11702 <b>in</b> modules/core/classes/GalleryStorage/GalleryStorageExtras.class <b>at line</b> 2054 (GalleryCoreApi::error)
<b>in</b> modules/core/classes/GalleryStorage/GalleryStorageExtras.class <b>at line</b> 98 (GalleryStorageExtras::_identifyEntities)
<b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 314 (GalleryStorageExtras::loadEntities)
<b>in</b> modules/core/classes/helpers/GalleryEntityHelper_simple.class <b>at line</b> 71 (GalleryStorage::loadEntities)
<b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 2361 (GalleryEntityHelper_simple::loadEntitiesById)
<b>in</b> /home//public_html/gallery3/modules/g2_import/helpers/g2_import.php <b>at line</b> 485 (GalleryCoreApi::loadEntitiesById)
<b>in</b> /home//public_html/gallery3/modules/g2_import/helpers/g2_import_task.php <b>at line</b> 188 (g2_import_Core::set_album_highlight)
<b>in</b> ??? <b>at line</b> 0 (g2_import_task_Core::import)
<b>in</b> /home//public_html/gallery3/modules/gallery/helpers/task.php <b>at line</b> 90
<b>in</b> /home//public_html/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> /home//public_html/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> /home//public_html/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> /home//public_html/gallery3/system/core/Event.php <b>at line</b> 208
<b>in</b> /home//public_html/gallery3/application/Bootstrap.php <b>at line</b> 67 (Event_Core::run)
<b>in</b> /home//public_html/gallery3/index.php <b>at line</b> 91
Posts: 81
... so I deleted all references to item 11702 after seeing that indication in the log, and the process started moving again! Now in the middle of "album highlights." Will keep you updated. Thanks.
Posts: 81
It works! Will deal with the EXIF problems later.
Posts: 263
How do you download this file? I cant even copy and paste it as I get one long line????
By the way here is my import error, Cant someone guide me in any direction?????
Im having below error, import worked fine In all the beta3 version??
I did try removing the offending .jpgs I did not get the ORM Error but still only the last album was imported??
I deleted the offending jpgs listed and It just stalled..
With the last version of beta3 no problem, with the exception of java error with the slideshow...
Thanks..
ORM Validation has failed for items model
Task Import from Gallery 2 started (task id 18)
Group 'Admin' does not exist in Gallery 3, skipping
User with id: 5 already imported, skipping
User with id: 5839 already imported, skipping
User with id: 6 already imported, skipping
User with id: 5171 already imported, skipping
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/NW/IMG_2678.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/NW/IMG_2678.jpg.html"></a> from Gallery 2 could not be processed
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/Scapes/IMG_2233_001.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/Scapes/IMG_2233_001.jpg.html"></a> from Gallery 2 could not be processed
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/Scapes/IMG_3321_001.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/Scapes/IMG_3321_001.jpg.html"></a> from Gallery 2 could not be processed
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(455): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(188): g2_import_Core::set_album_highlight(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
Posts: 81
The comment is pretty clear on this one. The file /home/birdznfl/public_html/gallery/g2data/albums/NW/IMG_2678.jpg is corrupted and needs to be replaced. You can either go into G2 and simply delete it, or download it and do something to it in a photo editor, then re-upload it.
You wrote, "How do you download this file? I cant even copy and paste it as I get one long line????" -- which file?
Posts: 81
PS> Regarding the EXIF problems, I seem to have a LOT of images that EXIF stalls on. I got past around a dozen of them by putting in fake blank-exif records in the G3 exif table, but that can take forever, because it moves on for anywhere from zero to 20 files and then hits another "bad" image. I wonder if there's a simple way to adjust the EXIF code to simply put in blank data when it encounters a problem image?