Copying a file fails with error "zsh: segmentation fault"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 01:24 AM
I am trying to copy a file from my local drive to a Catalyst 9300L switch via radkit. The copy job does always start, but breaks soon with the error message "zsh: segmentation fault" and radkit gets closed. Any idea what could be the root cause of this problem?
- Labels:
-
RADKit Client
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 01:50 AM
Hi,
Could you please send the full snippet showing the crash ? (from the moment you've initiated the file transfer to the end of the traceback, so that we could investigate.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 02:47 AM
the issue only happens when calling
.show_progress()
If I refrain from using that the job will run through
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 03:28 AM
It works for me:
>>> c9k3.scp_upload_from_file("file.txt,"file.txt").wait().show_progress()
10:16:45.771Z INFO | internal | upload complete [remote_path='file.txt' bytes_written=149615257]
5126 kbps 100.0% [====================================================================================>] 149615257/149615257 eta [00:00]
>>>
What RADKit version and OS are you facing the issue ? (Also would help if you could provide the full snippet leading to the error so that we could fix it. (please anonymize username, filenames and device names)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 04:00 AM
it does not always break at the same point, but approximately
>>> sess = sw11.scp_upload_from_file(remote_path="cat9k_iosxe.17.12.01.SPA.bin", local_path="/Users/manuel/Downloads
... /cat9k_iosxe.17.12.01.SPA.bin")
>>> sess
[UPLOADING] <radkit_client.sync.terminal.connection.FileWriteConnection object at 0x10a419190>
----------------- ----------------------------------------------------
service_id 8jxd-ul9o-b8td
device_name ibk-lab-sw11
chmod 644
size 1301722947
remote_path cat9k_iosxe.17.12.01.SPA.bin
local_path /Users/manuel/Downloads/cat9k_iosxe.17.12.01.SPA.bin
bytes_written 4521984
bytes_read 0
connection_result connection succeeded
transfer_result connecting
----------------- ----------------------------------------------------
>>> sess.show_progress()
zsh: segmentation fault radkit-client ] 19333120/1301722947 eta [11:42]
manuel@MPX6WPJ77G Downloads %
I am on an ARM based macOS, Version 13.4
RADKit is on version 1.5.8
radkit-service is installed on a small Linux machine (actually it is the host VM for the CCIE Enterprise Infrastructure lab)
