Skip to content

Instantly share code, notes, and snippets.

@zellyn
Created July 12, 2023 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zellyn/abcba33aeb1161923753f65780b620e1 to your computer and use it in GitHub Desktop.
Save zellyn/abcba33aeb1161923753f65780b620e1 to your computer and use it in GitHub Desktop.
bundlewrap fails to add a lock
bundlepi๐Ÿš ~/gh/bundlepi main *+ bw run lenovo id
โ€บ lenovo uid=0(root) gid=0(root) groups=0(root)
i โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
i โ”‚ node โ”‚ return code โ”‚ time โ”‚
i โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
i โ”‚ lenovo โ”‚ 0 โ”‚ 0.219s โ”‚
i โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
bundlepi๐Ÿš ~/gh/bundlepi main *+ bw -d lock add lenovo
[2023-07-12T08:31:19.257140] [DEBUG] invocation: /Users/zellyn/gh/bundlepi/.hermit/python/bin/bw -d lock add lenovo
[2023-07-12T08:31:19.327744] [DEBUG] node lenovo gets its dummy attribute from: default
[2023-07-12T08:31:19.327947] [DEBUG] spinning up worker pool lock
[2023-07-12T08:31:19.327993] [DEBUG] worker pool lock is starting task lenovo on worker #0
[2023-07-12T08:31:19.328094] [DEBUG] node lenovo gets its locking_node attribute from: default
[2023-07-12T08:31:19.328127] [DEBUG] node lenovo gets its os attribute from: group:ubuntu
[2023-07-12T08:31:19.328150] [DEBUG] worker pool lock waiting for next task to complete
[2023-07-12T08:31:19.328786] [DEBUG] node lenovo gets its lock_dir attribute from: default
[2023-07-12T08:31:19.328850] [DEBUG] node lenovo gets its username attribute from: node
[2023-07-12T08:31:19.328906] [DEBUG] running command with ID 3WBW: ssh -o BatchMode=yes -o KbdInteractiveAuthentication=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -l zellyn 100.76.94.91 true
[2023-07-12T08:31:19.752766] [DEBUG] command with ID 3WBW finished with return code 0
[2023-07-12T08:31:19.753714] [DEBUG] node lenovo gets its cmd_wrapper_inner attribute from: default
[2023-07-12T08:31:19.753925] [DEBUG] node lenovo gets its cmd_wrapper_outer attribute from: default
[2023-07-12T08:31:19.754147] [DEBUG] running command with ID FVRF: ssh -o BatchMode=yes -o KbdInteractiveAuthentication=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -l zellyn 100.76.94.91 sudo -u root sh -c 'export LANG=C; mkdir -p /var/lib/bundlewrap/soft-lenovo'
[2023-07-12T08:31:19.969886] [DEBUG] command with ID FVRF finished with return code 0
[2023-07-12T08:31:19.970476] [DEBUG] uploading /var/folders/kc/655fnyvn5r3552fsp2_qtd7m0000gn/T/tmpw479nbge -> 100.76.94.91:/var/lib/bundlewrap/soft-lenovo/MKVW
[2023-07-12T08:31:19.971102] [DEBUG] running command with ID L6QS: scp -o BatchMode=yes -o StrictHostKeyChecking=yes /var/folders/kc/655fnyvn5r3552fsp2_qtd7m0000gn/T/tmpw479nbge zellyn@100.76.94.91:.bundlewrap_tmp_g8jsuAVEoqv2Gj3a9go1xMWj
[2023-07-12T08:31:20.263688] [DEBUG] command with ID L6QS finished with return code 1
[2023-07-12T08:31:20.264522] [DEBUG] exception raised while executing task lenovo on worker #0 of worker pool lock
[2023-07-12T08:31:20.268801] File "/Users/zellyn/gh/bundlepi/.hermit/python/lib/python3.11/site-packages/bundlewrap/concurrency.py", line 133, in run
result = self._get_result()
^^^^^^^^^^^^^^^^^^
File "/Users/zellyn/gh/bundlepi/.hermit/python/lib/python3.11/site-packages/bundlewrap/concurrency.py", line 73, in _get_result
raise exception
File "/Users/zellyn/Library/Caches/hermit/pkg/python3-3.11.1/install/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zellyn/gh/bundlepi/.hermit/python/lib/python3.11/site-packages/bundlewrap/lock.py", line 203, in softlock_add
locking_node.upload(local_path, _soft_lock_file(node.name, locking_node, lock_id), mode='0644')
File "/Users/zellyn/gh/bundlepi/.hermit/python/lib/python3.11/site-packages/bundlewrap/node.py", line 969, in upload
return operations.upload(
^^^^^^^^^^^^^^^^^^
File "/Users/zellyn/gh/bundlepi/.hermit/python/lib/python3.11/site-packages/bundlewrap/operations.py", line 351, in upload
raise RemoteException(_(
[2023-07-12T08:31:20.268891] RemoteException('Upload to 100.76.94.91 failed for /var/lib/bundlewrap/soft-lenovo/MKVW:\n\nEOF\n\n\n')
[2023-07-12T08:31:20.268909] lenovo: Upload to 100.76.94.91 failed for /var/lib/bundlewrap/soft-lenovo/MKVW:
EOF
[2023-07-12T08:31:20.268963] [DEBUG] shutting down worker pool lock
[2023-07-12T08:31:20.269024] [DEBUG] worker pool lock has been shut down
!!! There was an error, repeated below.
lenovo: Upload to 100.76.94.91 failed for /var/lib/bundlewrap/soft-lenovo/MKVW:
EOF
bundlepi๐Ÿš ~/gh/bundlepi main *+ scp -o BatchMode=yes -o StrictHostKeyChecking=yes nodes.py zellyn@100.76.94.91:.bundlewrap_tmp_g8jsuAVEoqv2Gj3a9go1xMWj
nodes.py 100% 1533 226.8KB/s 00:00
EOF
bundlepi๐Ÿš ~/gh/bundlepi main *+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment