My Solution for Empty sequence id and ERROR_STORAGE_FAILURE Issues
nadz
Joined: 2013-09-24
Posts: 2 |
Posted: Tue, 2013-09-24 16:59 |
Hi everyone, I have about 1500 pictures accumulated over the past 10 years which are handled by a Gallery 2.3.2 installation. Last summer, I had many events and activities that led to me taking about 500 pictures per month. After sorting and editing, I started to upload these. Just before the uploads, I had moved my gallery from a BSD to a Linux server. I checked that the new installation was fine and even uploaded 2 or 3 test photos. However, when I really started uploading my summer photos, I got an error message from G2. After three days of googling and analysing, I reached the following conclusions: Now, I had two error messages: Empty sequence id and ERROR_STORAGE_FAILURE. So, how did I fix these? Turn on debug. SELECT * FROM `g2_ChildEntity` Here we see something like: SELECT * FROM `g2_DataItem` SELECT * FROM `g2_Entity` SELECT * FROM `g2_FileSystemEntity` SELECT * FROM `g2_Item` SELECT * FROM `g2_ItemAttributesMap` SELECT * FROM `g2_PhotoItem` Compare the numbers from all these queries. SELECT * FROM `g2_Derivative` SELECT * FROM `g2_DerivativeImage` Compare the numbers from all these queries. ALSO! If you need, try to fix permissions: open www.yourgallery.net/lib/support/index.php?chmod and fix. AND!!! Insert it to `g2_SequenceEventLog` and to `g2_SequenceId` like this: INSERT INTO `g2_SequenceId` (`id`) VALUES ('1234'); Insert number 1235 to `g2_SequenceLock`: NOTE: g2_SequenceLock is the number plus one And so I fixed the empty sequence id error. Thats all. Everything is working well but I think that the Gallery database needs to be better documented. |
|
Posts: 1642
Hi,
Thanks for documenting the steps you took.
I edited the text a bit but must say the last part on fixing the empty sequence id was not very clear as your sql queries do not seem to be inserting and they just select.
--
dakanji.com
Posts: 2
Thank you!
I update topic in not-full last part of text