1f1580e080a70d06a0330a5693d47e1c3bcac077 jcasper Thu Feb 6 12:23:16 2025 -0800 New plan, letting GBiB update as normal but from a frozen set of binaries for now. refs #35183 diff --git src/browserbox/root/updateBrowser.sh src/browserbox/root/updateBrowser.sh index baaa51e5580..193becec2e8 100755 --- src/browserbox/root/updateBrowser.sh +++ src/browserbox/root/updateBrowser.sh @@ -33,31 +33,31 @@ # avoid a virtual machine that can not update itself anymore # rsync options: # l = preserve symlinks # t = preserve time # r = recurse # z = compress # v = verbose # h = human readable # u = skip if file is newer on receiver # We are not using the -z option anymore because it may cause # CPU overload on hgdownload RSYNCOPTS="-ltrvh" # rsync server for CGIs and html files RSYNCSRC="rsync://hgdownload.soe.ucsc.edu" -RSYNCCGIBIN=cgi-bin +RSYNCCGIBIN=cgi-bin.v476 RSYNCHTDOCS=htdocs UPDATEFLAG=http://hgdownload.soe.ucsc.edu/gbib/lastUpdate LOGFILE=/var/log/gbibUpdates.log DEBUG=0 if [[ "$#" -ne 0 ]]; then DEBUG=1 fi # function to echo only if run with some arguments function echoDebug { if [[ DEBUG -eq "1" ]]; then echo $* fi } @@ -185,34 +185,30 @@ chmod a+x /root/updateBrowser.sh /root/updateBrowser.sh $1 notSelf exit 0 fi rm -f /root/gbibSkipNextUpdate # check if any hgMirror jobs are running right now # check if the group id file exists and also if any processes exist with this group id # note that the .pid actually contains a group id, not a process id if [ -f /tmp/lastJob.pid ] && [ "$(ps x -o pgid | grep $(cat /tmp/lastJob.pid) | wc -l)" != "0" ] ; then echo a hgMirror job is running right now, not updating exit 4 fi -# Avoid updating GBiB binaries while we work through some OS upgrades and changes to our -# development environment. -exit 0 - # --- now do the update --- # keep a log of all output of this script and the date echo --------------------------------- >> $LOGFILE date >> $LOGFILE echo --------------------------------- >> $LOGFILE exec >> >(tee -a $LOGFILE) 2>&1 # not done, as old customTrash tables will be in innoDb format # and can't be read if we deactivate it now # deactivate inno-db support in mysql. Saves 400-500MB of RAM. #if ! grep skip-innodb /etc/mysql/my.cnf > /dev/null 2> /dev/null ; then #echo - Switching off inno-db in /etc/mysql/my.cnf #sed -i '/^.mysqld.$/a skip-innodb' /etc/mysql/my.cnf #sed -i '/^.mysqld.$/a default-storage-engine=myisam' /etc/mysql/my.cnf