Rebuild Images - gets stuck

AndrewRH
AndrewRH's picture

Joined: 2009-02-05
Posts: 52
Posted: Sat, 2009-09-05 09:53

I upgraded to last night's build (gallery-gallery3-ab7323d17b3c3e445fb51d7b4330e89b4e16aaa9.zip).

I experienced the same issue as a couple months back:the rebuild images gets stuck at the 60th image (e.g. out of 138). A restart of the process usually results in the pop-up dialog saying "starting up..."

(I had previously change the thumbnail size to force a rebuild)

~Andrew~

---
http://Reeves-Hall.net
http://WhitchurchForums.org.uk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Sat, 2009-09-05 16:56

Is there something unusual about the 60th image?
Can you restart it from the dashboard?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
AndrewRH
AndrewRH's picture

Joined: 2009-02-05
Posts: 52
Posted: Tue, 2009-10-06 21:30

Hi again,

I upgraded to gallery-gallery3-dc0d344

My site, http://gallery.whitchurcharts.org.uk says at the top that "138 of your photos are out of date. Click here to fix them"

But then in maintenance tasks it says "Rebuild Images You have 77 out of date photos [run]"

I click the first one (click here to fix them). The screen clears and it says only " Rebuild Images Starting up... (Pause)". It gets stuck like that and I hit the browser's back button after 1 minute.

Next I click the second one (rebuild images [run]). This time the screen goes grey and a dialog box appears which says the same thing as before, "Rebuild images starting up [Pause]".

I click Pause.

Then under "running tasks" I see: "2009-Oct-06 22:27:10 Rebuild Images Stalled"

~Andrew~

---
http://Reeves-Hall.net
http://WhitchurchForums.org.uk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Wed, 2009-10-07 00:41

Is there a missing image?
Any info in the /var/logs?
Why are they needing rebuild? Did you change the thumb size?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
AndrewRH
AndrewRH's picture

Joined: 2009-02-05
Posts: 52
Posted: Thu, 2009-10-08 21:55

See below for /var/logs
I did change the thumbnail size.

Quote:
<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-10-08 12:13:03 +01:00 --- error: Uncaught Exception: @todo FORBIDDEN in file modules/gallery/helpers/access.php on line 189
2009-10-08 12:13:03 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/modules/gallery/helpers/access.php(390): access_Core::forbidden()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/modules/gallery/controllers/rest.php(102): access_Core::verify_csrf()
#2 [internal function]: REST_Controller->__call('1', Array)
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Albums_Controller), Array)
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::instance()
#5 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(55): Event::run(Array)
#6 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#7 {main}
2009-10-08 12:14:33 +01:00 --- error: Uncaught Exception: @todo FORBIDDEN in file modules/gallery/helpers/access.php on line 189
2009-10-08 12:14:33 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/modules/gallery/helpers/access.php(390): access_Core::forbidden()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/modules/gallery/controllers/rest.php(102): access_Core::verify_csrf()
#2 [internal function]: REST_Controller->__call('1', Array)
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Albums_Controller), Array)
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::instance()
#5 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(55): Event::run(Array)
#6 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#7 {main}
2009-10-08 12:49:39 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Events/2009-03-28_Earth_Hour/ARH20090328-18046_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 12:49:39 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 14:04:06 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Off_the_Walls/OTW_~_Show_at_GNC/ARH20090621-25961_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 14:04:06 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 16:25:59 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Events/2009-03-28_Earth_Hour/ARH20090328-18026_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 16:26:00 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 17:11:48 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Off_the_Walls/OTW_~_Show_at_GNC/ARH20090621-25993_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 17:11:48 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 17:21:52 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Events/2009-03-28_Earth_Hour/ARH20090328-18025_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 17:21:52 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 17:45:20 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Off_the_Walls/OTW_~_Show_at_GNC/ARH20090621-25960_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 17:45:20 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 17:58:10 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Events/2009-03-28_Earth_Hour/ARH20090328-17893_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 17:58:10 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 18:15:06 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Off_the_Walls/OTW_~_Show_at_GNC/ARH20090621-26241_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 18:15:06 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 18:34:22 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Off_the_Walls/OTW_~_Show_at_GNC/ARH20090621-25991_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 18:34:22 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 21:48:39 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Off_the_Walls/OTW_~_Show_at_GNC/ARH20090621-25926_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 21:48:39 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 21:49:00 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Off_the_Walls/OTW_~_Show_at_GNC/ARH20090621-25948_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 21:49:00 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 22:00:25 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Off_the_Walls/OTW_~_Show_at_GNC/ARH20090621-26184_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 22:00:25 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}
2009-10-08 22:44:21 +01:00 --- error: Uncaught Kohana_404_Exception: The page you requested, Off_the_Walls/OTW_~_Show_at_GNC/ARH20090621-26099_(Large).JPG, could not be found. in file system/core/Kohana.php on line 841
2009-10-08 22:44:21 +01:00 --- error: #0 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Kohana::show_404()
#1 /home/andrewrh/public_html/WhitchurchArts/gallery/system/libraries/Router.php(163): Event::run(Array)
#2 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Event.php(209): Router_Core::setup('system.404')
#3 /home/andrewrh/public_html/WhitchurchArts/gallery/system/core/Bootstrap.php(49): Event::run()
#4 /home/andrewrh/public_html/WhitchurchArts/gallery/index.php(86): require('/home/andrewrh/...')
#5 {main}

~Andrew~

---
http://Reeves-Hall.net
http://WhitchurchForums.org.uk

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-09 18:15

REMOVE THE TILDE (~)

http://gallery.menalto.com/node/91659 :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
decoder

Joined: 2010-01-18
Posts: 7
Posted: Tue, 2010-01-19 08:23

I'm having the same problem, except there is no tilde. It stops at 2/2021. Here is the log file:

Quote:
<?php defined('SYSPATH') or die('No direct script access.'); ?>

2010-01-19 09:19:07 +02:00 --- error: Kohana_404_Exception [ 43 ]: The page you requested, upgrading, could not be found.
/var/www/userhome/decoder/sites/www.lucid.ac/www/gallery3/system/libraries/Kohana_404_Exception.php [ 42 ]
#0 [internal function]: Kohana_404_Exception_Core::trigger(NULL)
#1 /var/www/userhome/decoder/sites/www.lucid.ac/www/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#2 /var/www/userhome/decoder/sites/www.lucid.ac/www/gallery3/system/libraries/Router.php(165): Event_Core::run('system.404')
#3 [internal function]: Router_Core::setup(NULL)
#4 /var/www/userhome/decoder/sites/www.lucid.ac/www/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#5 /var/www/userhome/decoder/sites/www.lucid.ac/www/gallery3/application/Bootstrap.php(61): Event_Core::run('system.routing')
#6 /var/www/userhome/decoder/sites/www.lucid.ac/www/gallery3/index.php(90): require('/var/www/userho...')
#7 {main}

I wonder why Gallery 3 assumes it's installed at /var/www/userhome/decoder/sites/www.lucid.ac/www/gallery3/ ?
It suggested such folder on install and I was not allowed to change it.
The correct path is /home/users/decoder/sites/www.lucid.ac/www/gallery/

Edit: The funny thing is that it doesn't stop at picture number 2 (absolute), but the second picture (relative). So I could in theory get through all 2000 pictures by restarting the process a 1000 times over.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2010-01-19 15:00

Check with your host, /var/www/userhome/decoder/sites/www.lucid.ac is probably the correct path and /home/users/decoder/sites/www.lucid.ac is a symlink to that first directory.

Post a link to phpinfo to see more information about your php environment:
FAQ: How do I create a phpinfo page?

What graphics toolkit are you using?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
decoder

Joined: 2010-01-18
Posts: 7
Posted: Wed, 2010-01-20 07:00

Well, that part may be correct. It's just I know the last part isn't. Gallery 3 was originally installed in gallery3/ -folder but was moved to gallery/ afterwards.

But renaming the folder back to gallery3 will not fix the problem, which is strange.

In any case, the error message has now changed:

Quote:
[Wed Jan 20 08:41:19 2010] [error] [client xx.xx.xx.xx] File does not exist: /var/www/userhome/decoder/sites/www.lucid.ac/www/gallery/main.php
[Wed Jan 20 08:41:22 2010] [error] [client xx.xx.xx.xx] File does not exist: /var/www/userhome/decoder/sites/www.lucid.ac/www/gallery/v
[Wed Jan 20 08:41:37 2010] [error] [client xx.xx.xx.xx] File does not exist: /var/www/userhome/decoder/sites/www.lucid.ac/www/gallery/v

There is no main.php at installation root. Not even in the source zip files. And what's "v"?

phpinfo:

http://www.lucid.ac/gallery/phpinfo.php

Graphics toolkit is ImageMagick.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2010-01-20 14:43

Those messages are all related to Gallery2, main.php is the "index" file for G2 and /v is the default short URL when the URL Rewrite module is enabled.

I see you have 2 separate copies of G3:
http://www.lucid.ac/gallery/

http://www.lucid.ac/gallery3/ (which hasn't been installed here yet, but has a directory named var there or the webserver can write to the gallery3 directory and create the var directory)

G3 doesn't care where it's at, so long as the var directory is inside your gallery 3 directory, everything should just work.

You can probably safely delete the /gallery3 directory. The G3 installer doesn't "suggest" a directory to be installed at. It installs from where you unpacked or uploaded the files to. If you want it in gallery instead of gallery3, simply rename gallery3 to gallery before or after the install.

Now that that's cleared up, let's focus on your working install at
http://www.lucid.ac/gallery/

Check your var/logs directory after trying a rebuild to see if there are any error messages.

Are you using the latest experimental code? You can get that from here:
http://github.com/gallery/gallery3/zipball/master

Upgrading instructions are here:
http://codex.gallery2.org/Gallery3:Upgrading

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
decoder

Joined: 2010-01-18
Posts: 7
Posted: Thu, 2010-01-21 12:28

The log:

Quote:
<?php defined('SYSPATH') or die('No direct script access.'); ?>

In any case, upgrading to the latest experimental worked. It's all good now.

The current version was only a few days old, didn't realize updates were so frequent.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Thu, 2010-01-21 14:44
Quote:
didn't realize updates were so frequent.

Almost every single day: http://github.com/gallery/gallery3/commits/master/ but there is not that many commits on Mondays : http://github.com/gallery/gallery3/graphs/punch_card

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team