<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>I'm using <span style="font-family: Verdana, Arial, sans-serif; text-align: justify; background-color: rgb(255, 255, 255);">version 0.8.12.</span></div><div><span style="font-family: Verdana, Arial, sans-serif; text-align: justify; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="font-family: Verdana, Arial, sans-serif; text-align: justify; background-color: rgb(255, 255, 255);">I have indeed rebooted the master. I've also deleted the CentOS virtual machine (the slave) and created a new one from a fresh install of the system. No luck. </span></div><div><span style="font-family: Verdana, Arial, sans-serif; text-align: justify; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="font-family: Verdana, Arial, sans-serif; text-align: justify; background-color: rgb(255, 255, 255);">I have not tried both of these measures in the same test, I wouldn't think that could make the difference. </span></div><div><span style="font-family: Verdana, Arial, sans-serif; text-align: justify; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="font-family: Verdana, Arial, sans-serif; text-align: justify; background-color: rgb(255, 255, 255);">I will look into purging the sun cache, from the log, it seems that the buildslave is already reporting using the obsolete (and nonexistent) working directory before it calls svn.</span></div><div><br></div><div id="composer_signature"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><div style="font-size:85%;color:#575757">Greg Bullock</div><div style="font-size:85%;color:#575757">NorthWest Research Associates</div><div style="font-size:85%;color:#575757"><a href="geo:0,0?q=301 Webster St. Monterey CA 93940" original_font_attr="-1" original_line_height_attr="">301 Webster St.</a></div><div style="font-size:85%;color:#575757"><a href="geo:0,0?q=301 Webster St. Monterey CA 93940" original_font_attr="-1" original_line_height_attr="">Monterey, CA 93940</a></div><div style="font-size:85%;color:#575757">
<a href="tel:(831) 582-4907" original_font_attr="-1" original_line_height_attr="">(831) 582-4907</a></div><div style="font-size:85%;color:#575757"><a class="moz-txt-link-abbreviated" href="mailto:greg@nwra.com" original_font_attr="-1" original_line_height_attr="">greg@nwra.com</a></div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Pierre Tardy <tardyp@gmail.com> </div><div>Date: 6/14/16 1:12 PM (GMT-08:00) </div><div>To: Greg Bullock <greg@nwra.com>, users@buildbot.net </div><div>Subject: Re: [users@bb.net] buildbot retains memory of an earlier location of a buildslave? </div><div><br></div></div><div dir="ltr">Hi,<div>Looks indeed like an interresting problem. Did you try to reboot the master?</div><div><br></div><div>The master might indeed store the workdir, but I would expect it to be reset when the work is reconnecting.</div><div><br></div><div>Which version of buildbot is that?</div><div><br></div><div>Also thing to check is svn. could svn cache something?</div><div><br></div><div>Regards</div><div>Pierre</div></div><br><div class="gmail_quote"><div dir="ltr">Le mar. 14 juin 2016 à 21:04, Greg Bullock <<a href="mailto:greg@nwra.com">greg@nwra.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Where might the buildbot retain its memory of an earlier location of a<br>
buildslave? I've moved a buildslave to a different drive, but the log<br>
from the new build tests shows the steps (e.g., the SVN, ShellCommand,<br>
and Compile steps) all running from the original drive, not the new drive.<br>
<br>
My buildbot runs on Windows 7 64-bit, and this particular buildslave<br>
(called "centos7-worker") runs on a virtual machine on CentOS 7 (linux)<br>
hosted on the same Windows machine with the buildbot master.<br>
<br>
Originally, the buildslave's files were on a shared drive (which is also<br>
a Windows share shared from the Windows host), in<br>
/media/sf_G_DRIVE/buildbot/centos7-worker, but the SVN checkout step<br>
would successfully checkout only about half the project, then give an error<br>
<br>
------------------------------------------------------------<br>
... (previous lines omitted)<br>
svn: E200030: disk I/O error, executing statement 'RELEASE s10246'<br>
svn: E200030: sqlite: disk I/O error<br>
svn: E200030: sqlite: disk I/O error<br>
svn: E200030: no such savepoint: s10247, executing statement<br>
'RELEASE s10247'<br>
svn: E200030: no such savepoint: s10247, executing statement<br>
'ROLLBACK TO s10247'<br>
program finished with exit code 1<br>
------------------------------------------------------------<br>
<br>
After a Google search turned up several mentions of conflicts between<br>
Windows shared drive and sqlite (see, for example,<br>
<a href="http://stackoverflow.com/questions/18782941/tortoisesvn-checkout-sqlite-disk-i-o-error-s10" rel="noreferrer" target="_blank">http://stackoverflow.com/questions/18782941/tortoisesvn-checkout-sqlite-disk-i-o-error-s10</a>),<br>
I moved the buildslave files to a local drive within the virtual<br>
machine, with the path /home/buildbot/Documents/centos7-worker.<br>
<br>
At this point, I expect the log to have references only to the new<br>
/home/buildbot location, with no more references to the older<br>
/media/sf_G_DRIVE location. But instead, the log still shows steps<br>
running "in dir /media/sf_G_DRIVE/buildbot/centos7-worker/...". The top<br>
of the log from the SVN checkout step shows an example:<br>
<br>
------------------------------------------------------------<br>
svn --version<br>
in dir<br>
/media/sf_G_DRIVE/buildbot/centos7-worker/gfortran_centos7_build/build<br>
(timeout 1200 secs)<br>
watching logfiles {}<br>
argv: ['svn', '--version']<br>
environment:<br>
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ebvEqaI7D1,guid=b74561f6a34d14afe5191e515759b435<br>
DESKTOP_SESSION=gnome-classic<br>
DISPLAY=:0<br>
GDMSESSION=gnome-classic<br>
GDM_LANG=en_US.UTF-8<br>
GJS_DEBUG_OUTPUT=stderr<br>
GJS_DEBUG_TOPICS=JS ERROR;JS LOG<br>
GNOME_DESKTOP_SESSION_ID=this-is-deprecated<br>
GNOME_SHELL_SESSION_MODE=classic<br>
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1<br>
HISTCONTROL=ignoredups<br>
HISTSIZE=1000<br>
HOME=/home/buildbot<br>
HOSTNAME=localhost.localdomain<br>
IMSETTINGS_INTEGRATE_DESKTOP=yes<br>
IMSETTINGS_MODULE=none<br>
LANG=en_US.UTF-8<br>
LESSOPEN=||/usr/bin/lesspipe.sh %s<br>
LOGNAME=buildbot<br>
LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;<br>
5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:<br>
MAIL=/var/spool/mail/buildbot<br>
OLDPWD=/home/buildbot<br>
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/buildbot/.local/bin:/home/buildbot/bin<br>
PWD=/media/sf_G_DRIVE/buildbot/centos7-worker/gfortran_centos7_build/build<br>
QTDIR=/usr/lib64/qt-3.3<br>
QTINC=/usr/lib64/qt-3.3/include<br>
QTLIB=/usr/lib64/qt-3.3/lib<br>
QT_GRAPHICSSYSTEM_CHECKED=1<br>
QT_IM_MODULE=ibus<br>
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2119,unix/unix:/tmp/.ICE-unix/2119<br>
SHELL=/bin/bash<br>
SHLVL=2<br>
SSH_AGENT_PID=2306<br>
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh<br>
TERM=xterm-256color<br>
USER=buildbot<br>
USERNAME=buildbot<br>
VTE_VERSION=3803<br>
WINDOWID=44049837<br>
WINDOWPATH=1<br>
XAUTHORITY=/run/gdm/auth-for-buildbot-xH6kQ3/database<br>
XDG_CURRENT_DESKTOP=GNOME-Classic:GNOME<br>
XDG_MENU_PREFIX=gnome-<br>
XDG_RUNTIME_DIR=/run/user/1000<br>
XDG_SEAT=seat0<br>
XDG_SESSION_DESKTOP=gnome-classic<br>
XDG_SESSION_ID=1<br>
XDG_VTNR=1<br>
XMODIFIERS=@im=ibus<br>
_=/usr/bin/buildslave<br>
using PTY: False<br>
svn, version 1.7.14 (r1542130)<br>
compiled Nov 20 2015, 19:25:09<br>
(subsequent lines omitted)...<br>
------------------------------------------------------------<br>
<br>
I've tried recreating the buildbot master and both of its buildslaves<br>
(deleting the master folder and the buildslaves folders, creating the<br>
buildbot and buildslaves, then restoring the buildbot.tacs and<br>
master.cfg from backup). And I also unmounted the /media/sf_G_DRIVE<br>
altogether. All of this seemed to purge the log as expected, but the<br>
next build attempt still makes reference to the old location of the<br>
CentOS buildslave in /media/sf_G_DRIVE drive.<br>
<br>
Where might the reference to this obsolete location of the buildslave be<br>
stored? The centos7-worker's buildbot.tac file contains no explicit<br>
reference to the obsolete location:<br>
------------------------------------------------------------<br>
<br>
import os<br>
<br>
from buildslave.bot import BuildSlave<br>
from twisted.application import service<br>
<br>
basedir = '.'<br>
rotateLength = 10000000<br>
maxRotatedFiles = 10<br>
<br>
# if this is a relocatable tac file, get the directory containing the TAC<br>
if basedir == '.':<br>
import os.path<br>
basedir = os.path.abspath(os.path.dirname(__file__))<br>
<br>
# note: this line is matched against to check that this is a buildslave<br>
# directory; do not edit it.<br>
application = service.Application('buildslave')<br>
<br>
try:<br>
from twisted.python.logfile import LogFile<br>
from twisted.python.log import ILogObserver, FileLogObserver<br>
logfile = LogFile.fromFullPath(os.path.join(basedir, "twistd.log"),<br>
rotateLength=rotateLength,<br>
maxRotatedFiles=maxRotatedFiles)<br>
application.setComponent(ILogObserver, FileLogObserver(logfile).emit)<br>
except ImportError:<br>
# probably not yet twisted 8.2.0 and beyond, can't set log yet<br>
pass<br>
<br>
buildmaster_host = 'kraken'<br>
port = 9989<br>
slavename = 'centos7-worker'<br>
passwd = 'pass'<br>
keepalive = 600<br>
usepty = 0<br>
umask = None<br>
maxdelay = 300<br>
allow_shutdown = None<br>
<br>
s = BuildSlave(buildmaster_host, port, slavename, passwd, basedir,<br>
keepalive, usepty, umask=umask, maxdelay=maxdelay,<br>
allow_shutdown=allow_shutdown)<br>
s.setServiceParent(application)<br>
<br>
<br>
Likewise, the master.cfg file creates a single SVN checkout step as<br>
<br>
checkout = SVN(repourl = 'svn://kraken/trunk/sf_code',<br>
username = "buildbot",<br>
password = "buildbot",<br>
haltOnFailure = True,<br>
)<br>
------------------------------------------------------------<br>
<br>
and this step is used in all builders on both buildslaves (the<br>
"centos7-worker" and the "win64-worker"), so I don't see how it could<br>
convey the obsolete location to the buildslave.<br>
<br>
<br>
--<br>
Greg Bullock<br>
NorthWest Research Associates<br>
301 Webster St.<br>
Monterey, CA 93940<br>
(831) 582-4907<br>
<a href="mailto:greg@nwra.com" target="_blank">greg@nwra.com</a><br>
<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a><br>
</blockquote></div>
</body></html>