17234
Reporter: trobertson
Type: Bug
Summary: Production map startup script broken
Priority: Blocker
Resolution: Fixed
Status: Closed
Created: 2015-02-14 08:23:22.522
Updated: 2015-07-14 08:59:51.551
Resolved: 2015-07-14 08:59:51.529
Description: ./start-maps.sh gives:
{code}
./start-maps.sh: line 4: /logs/maps_z1_stdout.log: No such file or directory
./start-maps.sh: line 3: /logs/maps_z0_stdout.log: No such file or directory
./start-maps.sh: line 5: /logs/maps_z2_stdout.log: No such file or directory
./start-maps.sh: line 8: /logs/maps_z4_stdout.log: No such file or directory
./start-maps.sh: line 7: /logs/maps_z3_stdout.log: No such file or directory
./start-maps.sh: line 9: /logs/maps_z5_stdout.log: No such file or directory
./start-maps.sh: line 12: /logs/maps_z7_stdout.log: No such file or directory
./start-maps.sh: line 11: /logs/maps_z6_stdout.log: No such file or directory
./start-maps.sh: line 13: /logs/maps_z8_stdout.log: No such file or directory
./start-maps.sh: line 15: /logs/maps_z9_stdout.log: No such file or directory
./start-maps.sh: line 16: /logs/maps_z10_stdout.log: No such file or directory
./start-maps.sh: line 17: /logs/maps_z11_stdout.log: No such file or directory
./start-maps.sh: line 20: /logs/maps_z13_stdout.log: No such file or directory
./start-maps.sh: line 19: /logs/maps_z12_stdout.log: No such file or directory
./start-maps.sh: line 21: /logs/maps_z14_stdout.log: No such file or directory
{code}
$CRAWLER_HOME is referenced in the scripts but never set anywhere.
Is this missing from the top of the script perhaps?
{code}
export CRAWLER_HOME=/home/crap
{code}]]>
Author: mdoering@gbif.org
Created: 2015-02-14 13:11:07.339
Updated: 2015-02-14 13:11:21.382
Oliver added the var to the bash profile, but I too have the same problem and decided to set the var in the head of the script for the CLB scripts now to get them started. Probably a temporary solution, but sth we/you can immediately apply to all.
[~omeyn@gbif.org], did the scripts ever work for you with those vars?
Author: omeyn@gbif.org
Created: 2015-02-16 10:32:50.139
Updated: 2015-02-16 10:34:00.55
I've set the variable in the .bash_profile of the crap user. We should be doing things as crap user there anyway, so if you su - crap it should work fine (and, works for me).
Ah, but if you do it over ssh you need to set it, yes. That's an oversight, sorry.