windows - Why can I manually build a Python MSI installer, but my Bamboo remote agent service fails to? -
background
my bamboo server running on linux. use bamboo build executable installers , source distributions python app.
i can't build msi installers python package linux, running bamboo remote agent service on windows 7 64-bit on machine. remote agent configured provide capability of building windows binaries, bamboo runs msi & exe builds on it.
the .zip source dist , .exe installer built successfully. however, build script fails when tries build .msi installer.
build script
the build script simple batch file:
python setup.py bdist --formats=zip if %errorlevel% neq 0 exit /b 1 python setup.py bdist_wininst if %errorlevel% neq 0 exit /b 1 echo ***building msi installer*** echo. python setup.py bdist_msi if %errorlevel% neq 0 exit /b 1
error
below part of build log (for context):
28-apr-2011 13:26:46 ***building msi installer*** ... 28-apr-2011 13:26:46 creating build\bdist.win32\msi\lib\site-packages 28-apr-2011 13:26:46 creating build\bdist.win32\msi\lib\site-packages\my_pkg ... 28-apr-2011 13:26:46 running install_egg_info 28-apr-2011 13:26:46 writing build\bdist.win32\msi\lib\site-packages\my_pkg-0.4.0b23-py2.7.egg-info
i following exception traceback python:
traceback (most recent call last): file "setup.py", line 38, in <module> 'my_pkg': ['default_config.cfg']}, file "c:\python27\lib\distutils\core.py", line 152, in setup dist.run_commands() file "c:\python27\lib\distutils\dist.py", line 953, in run_commands self.run_command(cmd) file "c:\python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() file "c:\python27\lib\distutils\command\bdist_msi.py", line 243, in run sversion, author) file "c:\python27\lib\msilib\__init__.py", line 139, in init_database db = opendatabase(name, msidbopen_create) _msi.msierror: unknown error 65f
0x65f
translates 1631
, - if google fu strong - might "error 1631: windows installer service failed start"
.
further testing
if go bamboo agent's build directory on machine performing build, , manually run build script batchfile windows explorer, .msi build successful.
note had working in previous build same svn repo revision, have had move development systems since , may have inadvertently changed configuration in windows (or perhaps windows update broke it).
if bamboo agent windows service, might need run elevated privileges. there weird rules how service accounts can access msi service. (i never narrowed down exact permissions required.)
Comments
Post a Comment