Author Topic: Nutcracker: New command to rebuild gallery on local installs  (Read 6008 times)

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2285
    • Nutcracker RGB Sequence Builder
I have released the new command to go and rebuild the gallery on your local installs.

You need both a new code fiel from github (Step#5), you also need to reinstall a new database (Step #7).

After doing this refresh you will see a new command in the admin tab



Click on this and then let it run for 12-18 hours. You should hend up with around 6600 animated gifs.

thanks
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline MrChristmas2000

  • Sr. Member
  • ****
  • Posts: 1115
Shouldl I be seeing any activity on the screen.

I got a bunch of warnings and screams.

Is that to be expected?

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2285
    • Nutcracker RGB Sequence Builder
You are not allowed to view links. Register or Login
Shouldl I be seeing any activity on the screen.

I got a bunch of warnings and screams.

Is that to be expected?

did you download latest github and reinstall the database?

Step #5, #7 of this link You are not allowed to view links. Register or Login
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline tomwb301

  • Sr. Member
  • ****
  • Posts: 283
Sean,

I can't seem to get it to work. Tried 4 or 5 times.
Tom
Humble, Texas

Offline bakerlights

  • Full Member
  • ***
  • Posts: 45
I followed the update instructions and restarted everything.  I was having issues with it processing also, as it could not find the M16_50.dat file to copy.   I went ahead and created a M16_50 model as my user then I copied the file from c:\xampp\htdocs\nutcracker\targets\1083\M16_50.dat to c:\xampp\htdocs\nutcracker\targets\2

1083 is my userid number, yours will be different.  Looks like Sean's is 2

After copying the M16_50.dat file it started rebuilding the images, been processing since about 9am today.

Offline bakerlights

  • Full Member
  • ***
  • Posts: 45
I also got this error at the beginning of the rebuild:

Warning: set_error_handler() expects the argument (customError) to be a valid callback in C:\xampp\htdocs\nutcracker\effects\generate_gallery_gifs.php on line 165

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\nutcracker\effects\generate_gallery_gifs.php:155) in C:\xampp\htdocs\nutcracker\conf\auth.php on line 3

And I get this Warning after each user's effect rebuild:

Warning:  mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\nutcracker\effects\generate_gallery_gifs.php on line 484

Not sure if I should be concerned with any of these Warnings.   Hopefully not, but if so, I can always restart the rebuild after the issues are fixed.

Let me know if I can supply any more information to help debug.


Offline MrChristmas2000

  • Sr. Member
  • ****
  • Posts: 1115
I got the following list of errors.

 Warning: set_error_handler() expects the argument (customError) to be a valid callback in C:\wamp\www\nutcracker\effects\generate_gallery_gifs.php on line 165
Call Stack

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\nutcracker\effects\generate_gallery_gifs.php:155) in C:\wamp\www\nutcracker\conf\auth.php on line 3
Call Stack

 Warning: copy(C:\wamp\www\nutcracker\targets/2/M16_50.dat): failed to open stream: No such file or directory in C:\wamp\www\nutcracker\effects\generate_gallery_gifs.php on line 447

failed to copy C:\wamp\www\nutcracker\targets/2/M16_50.dat to C:\wamp\www\nutcracker\targets/2/M16_50.dat

Warning: fopen(../targets/2/M16_50.dat): failed to open stream: No such file or directory in C:\wamp\www\nutcracker\effects\read_file.php on line

can't open file ../targets/2/M16_50.dat

I did a reinstall.



Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2285
    • Nutcracker RGB Sequence Builder
Guys;
i forgot one important note.

You need to create the target dat file that i cam cloning to the 1000 users.

Here is how to do that
1) Login as user f, password f
2) Got to the models tab. Click on M16_50
3) Click to generate the model
4) Now go run the gallery rebuild (Admin, Rebuild the Effect Gallery)

sorry for that one missing step.

-- OR --

you can download github again and repeat step #5. I have added M16_50.dat to the repository.


thanks
sean
« Last Edit: February 01, 2013, by smeighan »
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline bakerlights

  • Full Member
  • ***
  • Posts: 45
You are not allowed to view links. Register or Login
Guys;
i forgot one important note.

You need to create the target dat file that i cam cloning to the 1000 users.

Here is how to do that
1) Login as user f, password f
2) Got to the models tab. Click on M16_50
3) Click to generate the model
4) Now go run the gallery rebuild (Admin, Rebuild the Effect Gallery)

sorry for that one missing step.

Did not have your password earlier, so I create my own M16_50 model and copied the M16_50.dat file into the targets\2 directory, do you think there will be any problems or should I stop and follow the latest instructions then restart?


Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2285
    • Nutcracker RGB Sequence Builder
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login
Guys;
i forgot one important note.

You need to create the target dat file that i cam cloning to the 1000 users.

Here is how to do that
1) Login as user f, password f
2) Got to the models tab. Click on M16_50
3) Click to generate the model
4) Now go run the gallery rebuild (Admin, Rebuild the Effect Gallery)

sorry for that one missing step.

Did not have your password earlier, so I create my own M16_50 model and copied the M16_50.dat file into the targets\2 directory, do you think there will be any problems or should I stop and follow the latest instructions then restart?

no problem as long as your megatree was 180 degrees (remember enter 32 strings) and 50 pixels.
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline mrduncan

  • Jr. Member
  • **
  • Posts: 13
I downloaded the new code tree about 30 minutes ago and I created a M16_50.dat file.  I see the file in C:\xampp\htdocs\nutcracker\targets\987 and C:\xampp\htdocs\nutcracker\targets\2.  When I run "Rebuild the effect gallary......", I get an error at the very bottom of the screen which says:  failed to copy C:\xampp\htdocs\nutcracker\targets/2/M16_50.dat to C:\xampp\htdocs\nutcracker\targets/2/M16_50.dat.

Any suggestions on what happened?

Offline kgustafson

  • Coop Manager
  • Sr. Member
  • *
  • Posts: 1120
    • Lost Weekend Productions
You are not allowed to view links. Register or Login
I downloaded the new code tree about 30 minutes ago and I created a M16_50.dat file.  I see the file in C:\xampp\htdocs\nutcracker\targets\987 and C:\xampp\htdocs\nutcracker\targets\2.  When I run "Rebuild the effect gallary......", I get an error at the very bottom of the screen which says:  failed to copy C:\xampp\htdocs\nutcracker\targets/2/M16_50.dat to C:\xampp\htdocs\nutcracker\targets/2/M16_50.dat.

Any suggestions on what happened?

Make double sure that you have created the target as stated above.  It has to be for user 'f' (that is member id = 2) and it has to be for a target called 'M16_50' (thus the directory/file it is looking for is the target for member id 2 name M16_50.dat.

So, I recommend that you log into your local nutcracker with username 'f' password 'f' go to targets (models) and generate M16_50 (make sure to generate it, if it is in red text in the listing under target, that means that the .dat file is missing.)

Once you do that, you can run the command without issues.

I suspect that you created a target M16_50 under YOUR username (which is certainly NOT member id 2). 

Kurt
------
Visit at: You are not allowed to view links. Register or Login

Offline mrduncan

  • Jr. Member
  • **
  • Posts: 13
Perfect......that seems to have fixed the problem.  I see the files being created.  Most files being generated  are "green", however, some are indicating "skipping" or "rebuilding".

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2285
    • Nutcracker RGB Sequence Builder
You are not allowed to view links. Register or Login
Perfect......that seems to have fixed the problem.  I see the files being created.  Most files being generated  are "green", however, some are indicating "skipping" or "rebuilding".

GREEN "ok" means it has found the animated gif and does not need to generate it again.

Remember when you are all done to run
You are not allowed to view links. Register or Login

So that the newly created gifs can be added into teh database.

Now you can go view (and copy) effects that you see in your local install.

Since this generation creates lots of files, you might want to make sure you have WinDirStat.
You are not allowed to view links. Register or Login

Free program that easily allows you to see the largest directories on your system.


All of these animated gifs will be stored in C:\xampp\htdocs\nutcracker\effects\workspaces.


Location: C:\xampp\htdocs\nutcracker\effects
size:        3.06 GB (3,296,646,737 bytes)
Contains:  13,744 Files, 374 Folders

Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline MrChristmas2000

  • Sr. Member
  • ****
  • Posts: 1115
You are not allowed to view links. Register or Login
Guys;
i forgot one important note.

You need to create the target dat file that i cam cloning to the 1000 users.

Here is how to do that
1) Login as user f, password f
2) Got to the models tab. Click on M16_50
3) Click to generate the model
4) Now go run the gallery rebuild (Admin, Rebuild the Effect Gallery)

sorry for that one missing step.

-- OR --

you can download github again and repeat step #5. I have added M16_50.dat to the repository.


thanks
sean

This process seems to have taken care of the error problem.

Started it last night, still going. Will let you know if it is successful.

QUESTION?
Can I copy this database on a local network.

After installing the new program what file should I copy from one machine to another?

Will there be a way to update this database from effects generated on the web?

Is this the same as the menu command?
You are not allowed to view links. Register or Login
« Last Edit: February 02, 2013, by MrChristmas2000 »