I am getting an rsync error, specifically exit code 23, when attempting to debug my code. I am sure I am missing something in my docker setup.
I am using a windows 11 machine with WSL2. My code is located in two places:
/home/SAbrahamian/snmptoserial/src/main.py
/home/SAbrahamian/snmptoserial/mib/SNMPTOSERIAL-MIB.py
The main program loads the SNMPTOSERIAL-MIB.py module, a compiled python MIB file.
When I attempt to debug I get this popup error.
If I click debug anyway I get this popup.
Attached is my launch.json
launch.json (1.6 KB)
This is what is displayed in the terminal when the error occur
s.
* Executing task: rsync -P -av -e ssh -p 6502 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /home/SAbrahamian/snmptoserial/src torizon@10.85.76.237:/home/torizon/snmptoserial/
Warning: Permanently added '[10.85.76.237]:6502' (ED25519) to the list of known hosts.
sending incremental file list
rsync: [generator] chgrp "/home/torizon/snmptoserial/src" failed: Operation not permitted (1)
src/
src/main.py
8,597 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2)
rsync: [receiver] mkstemp "/home/torizon/snmptoserial/src/.main.py.1y8keC" failed: Permission denied (13)
sent 8,752 bytes received 39 bytes 5,860.67 bytes/sec
total size is 8,597 speedup is 0.98
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
* The terminal process "rsync '-P', '-av', '-e', 'ssh -p 6502 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null', '/home/SAbrahamian/snmptoserial/src', 'torizon@10.85.76.237:/home/torizon/snmptoserial/'" terminated with exit code: 23.
* Terminal will be reused by tasks, press any key to close it.
The permissions for both main.py and SNMPTOSERIAL-MIB.py is 644.