Closed ylep closed 1 year ago
I am getting this error when creating the brainvisa-5.1.1.ova
VirtualBox image:
VBoxManage: error: File copy failed
VBoxManage: error: Destination "/home/brainvisa/Desktop" on the guest already exists and is a directory
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSessionWrap, interface IGuestSession
VBoxManage: error: Context: "RTEXITCODE gctlHandleCopy(PGCTLCMDCTX, int, char**, bool)" at line 1898 of file VBoxManageGuestCtrl.cpp
VBoxManage: error: Destination "/home/brainvisa/Desktop" on the guest already exists and is a directory.
Traceback (most recent call last):
File "/volatile/a-sac-ns-brainvisa/bbi-brainvisa-5.0/brainvisa-5.1-5.3/src/development/casa-distro/5.1/bin/casa_distro_admin", line 25, in <module>
main()
File "/volatile/a-sac-ns-brainvisa/bbi-brainvisa-5.0/brainvisa-5.1-5.3/src/development/casa-distro/5.1/python/casa_distro/command.py", line 360, in main
result = command(*args, **kwargs)
File "/volatile/a-sac-ns-brainvisa/bbi-brainvisa-5.0/brainvisa-5.1-5.3/src/development/casa-distro/5.1/python/casa_distro/admin_commands.py", line 994, in create_user_image
**kwargs)
File "/volatile/a-sac-ns-brainvisa/bbi-brainvisa-5.0/brainvisa-5.1-5.3/src/development/casa-distro/5.1/python/casa_distro/vbox.py", line 284, in create_user_image
vm.copy_user(f, '/home/brainvisa/Desktop')
File "/volatile/a-sac-ns-brainvisa/bbi-brainvisa-5.0/brainvisa-5.1-5.3/src/development/casa-distro/5.1/python/casa_distro/vbox.py", line 544, in copy_user
source])
File "/volatile/a-sac-ns-brainvisa/bbi-brainvisa-5.0/brainvisa-5.1-5.3/src/development/casa-distro/5.1/python/casa_distro/vbox.py", line 53, in vbox_manage
subprocess.check_call(cmd)
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['VBoxManage', 'guestcontrol', '--username', 'brainvisa', '--password', 'brainvisa', 'brainvisa-5.1.1', 'copyto', '--target-directory', '/home/brainvisa/Desktop', '/tmp/tmp3jrhfamz/keyboard.desktop']' returned non-zero exit status 1.
It used to work. What is the VirtualBox version ? The command is supposed to copy a file in a running VM. If VirtualBox is updated, it is possible to start the VM and test the command in a terminal (possibly with another file) to see if it works without having to rebuild the whole image.
I found a workaaround: it works if the argument to --target-directory
has a trailing slash... I will push a fix.
Note: I don't have the access rights to publish on testpypi for the project populse_db. However I can push for other projects, and for all projects (including populse_db) on the main pypi. Who is admin there ? @sapetnioc ? If yes, can you fix it please ?
I just checked, I am not owner of populse_db on testpypi.
I think it is Lucie OUVRIER-BUFFET: https://test.pypi.org/user/ouvrierl/ I do not know how to change that.
Oh. OK never mind, it's just the test server.
Release check-list
[x] In this new issue, replace templated versions
[x] Check that all projects have the correct version in their sources:
bv_tag_release.py --fix-source-version-numbers
[x] Check that tests are successful on https://brainvisa.info/builds/
[x] Update changelogs and the list of known issues (https://github.com/brainvisa/brainvisa.github.io/issues/124)
[x] Run a last build to update the changelogs
bv_maker sources doc
in thebrainvisa
distrobv_maker sources doc
in thecea
distro[x] Create, test, and publish/deploy the images
sif
image for thebrainvisa
distro[x] Create the image with
./brainvisa-5.1-5.3/bin/casa_distro_admin create_user_image version=5.1.1 container_type=singularity distro=brainvisa image_version=5.3 branch=5.1 install_thirdparty=file:///neurospin/brainvisa/thirdparty/thirdparty.json
[x] Verify that the image works
mkdir -p /tmp/test-brainvisa-5.1.1;singularity run -ce --bind /tmp/test-brainvisa-5.1.1:/casa/setup /volatile/a-sac-ns-brainvisa/bbi_nightly/brainvisa-5.1.1.sif
AimsFileInfo
,anatomist
,brainvisa
[x] Publish the image on the BrainVISA web site
casa_distro_admin publish_user_image image=brainvisa-5.1.1.sif
ova
image for thebrainvisa
distro[x] Create the image with
./brainvisa-5.1-5.3/bin/casa_distro_admin create_user_image version=5.1.1 install=no container_type=vbox base_image=casa-run-5.3.ova environment_name=brainvisa-5.1-5.3
[ ] Verify that the image works
AimsFileInfo
,anatomist
,brainvisa
[x] Publish the image on the BrainVISA web site
sif
image for thecea
distro[x] Create the image with
./cea-5.1-5.3/bin/casa_distro_admin create_user_image version=5.1.1 name=brainvisa-cea-5.1.1 container_type=singularity distro=cea image_version=5.3 branch=5.1 install_thirdparty=file:///neurospin/brainvisa/thirdparty/thirdparty.json
(beware to name the image brainvisa-cea- and not just cea-)~
ova
image for thecea
distro~ we will only do these images if users request them[ ] ~Create the image with
./cea-5.1-5.3/bin/casa_distro_admin create_user_image name=brainvisa-cea version=5.1.1 base_directory=/volatile/a-sac-ns-brainvisa/bbi_nightly install=no container_type=vbox base_image=casa-run-5.3.ova environment_name=cea-5.1-5.3
(beware to name the imagebrainvisa-cea-
and not justcea-
)~[x] Create tags with
bv_tag_release.py
[x] Edit the website to announce the new release
ssh web
, then in the server:web_build/bin/bv bv_maker
./web-build/src/communication/web/5.1/scripts/bv_publish_web /var/www/html/brainvisa.info
[x] Deploy the
cea
release:brainvisa-cea-*.sif
and the associated.json
into/i2bm/brainvisa
and set their permissions (chmod 444
)/i2bm/brainvisa/brainvisa-cea-5.1.1
and install the Singularity release in there (singularity run --bind ...
)rm -r /i2bm/brainvisa/brainvisa-cea-5.1.1/home/
AimsFileInfo --info
,anatomist
,brainvisa
...)ln -sfT brainvisa-cea-5.1.1/ /i2bm/brainvisa/brainvisa
brainvisa-cea-*.ova
and the associated.json
into/i2bm/brainvisa
and set their permissions (chmod 444
)~ova
on a non-Linux machine and verify that it works (use it to launchAimsFileInfo --info
,anatomist
,brainvisa
...)~[x] Build pip packages for the python projects soma-workflow, soma-base, populse_db and capsul which are distributed in pip:
./brainvisa-5.1-5.3/bin/bv python3 -m build /casa/host/src/soma/soma-workflow/5.1
./brainvisa-5.1-5.3/bin/bv python3 -m build /casa/host/src/soma/soma-base/5.1
./brainvisa-5.1-5.3/bin/bv python3 -m build /casa/host/src/populse/populse_db/5.1
./brainvisa-5.1-5.3/bin/bv python3 -m build /casa/host/src/capsul/5.1
[x] Publish them to
test.pypi.org
./brainvisa-5.1-5.3/bin/bv python3 -m twine upload --repository testpypi /casa/host/src/soma/soma-workflow/5.1/dist/*
./brainvisa-5.1-5.3/bin/bv python3 -m twine upload --repository testpypi /casa/host/src/soma/soma-base/5.1/dist/*
./brainvisa-5.1-5.3/bin/bv python3 -m twine upload --repository testpypi /casa/host/src/populse/populse_db/5.1/dist/*
./brainvisa-5.1-5.3/bin/bv python3 -m twine upload --repository testpypi /casa/host/src/capsul/5.1/dist/*
[x] Create a virtualenv test environment and test packages install:
mkdir -p /tmp/brainvisa-5.1.1/testenv && python3 -m venv /tmp/brainvisa-5.1.1/testenv
/tmp/brainvisa-5.1.1/testenv/bin/python3 -m pip install --index-url https://test.pypi.org/simple/ soma-workflow
/tmp/brainvisa-5.1.1/testenv/bin/python3 -m pip install --index-url https://test.pypi.org/simple/ soma-base
/tmp/brainvisa-5.1.1/testenv/bin/python3 -m pip install --index-url https://test.pypi.org/simple/ populse_db
/tmp/brainvisa-5.1.1/testenv/bin/python3 -m pip install --index-url https://test.pypi.org/simple/ capsul
[x] Publish them to
pypi.org
./brainvisa-5.1-5.3/bin/bv python3 -m twine upload /casa/host/src/soma/soma-workflow/5.1/dist/*
./brainvisa-5.1-5.3/bin/bv python3 -m twine upload /casa/host/src/soma/soma-base/5.1/dist/*
./brainvisa-5.1-5.3/bin/bv python3 -m twine upload /casa/host/src/populse/populse_db/5.1/dist/*
./brainvisa-5.1-5.3/bin/bv python3 -m twine upload /casa/host/src/capsul/5.1/dist/*
[x] Open a new GitHub issue for known issues
[x] Close the old GitHub known issues
[x] Make an announcement on the GitHub discussions
[x] If the releases has significant new features, announce it on the mailing list