ltfs icon indicating copy to clipboard operation
ltfs copied to clipboard

Terminal Error launching LTFS ordered copy

Open chlowden opened this issue 6 months ago • 3 comments

Describe the bug Terminal Error launching LTFS ordered copy

To Reproduce Steps to reproduce the behavior: $ /opt/ibm/ltfssde/bin/ltfs_ordered_copy -p -r -a -v '/mnt/49c57912-2bd6-4f31-a2b7-6df585bc9f40/LOWDEN_PIX' '/mnt/ltfs/sg1' Tape order aware copy for LTFS Check destination:startswith first arg must be bytes or a tuple of bytes, not str

Expected behavior Copy does not launch.

Desktop (please cplete the following information):

  • OS: Rocky Linux 8.10

Additional context When I use the QUANTUM version of ltfs_ordered_copy, I get the error below : sudo /opt/QUANTUM/ltfs/bin/ltfs_ordered_copy -p -r -a -v /mnt/49c57912-2bd6-4f31-a2b7-6df585bc9f40/LOWDEN_PIX /mnt/ltfs/sg1/000041 [sudo] password for admin: /usr/bin/env: ‘python’: No such file or directory

chlowden avatar May 17 '25 10:05 chlowden

Hello @chlowden ! It looks like something went wrong with the xattr.get function, and it's returning bytes instead of a string. I have not been able to reproduce it on my environment, but I can fix this issue by expecting this scenario and casting the value into a string to work properly. However, I still need to see in which case the function returns bytes instead of a string. I will work on this fix in the next few days. Sorry for taking so long to comment on this issue.

Could you please share which Python version you are using? I'm assuming 3.6 since you're using Rocky Linux 8.10. Please run which python and share the output.

Also, did you try to run the ordered_copy using sudo, or did you check if the user you were using has the appropriate permissions for both the source and destination folders?

In the quantum version, it seems like python is not specified for your system. Try creating a symlink so python gets your default python3 binary. Running sudo ln -sf /usr/bin/python3 /usr/bin/python and try again.

vandelvan avatar Jun 24 '25 23:06 vandelvan

Hello Thanks for getting back to me.

I have python 3.6 installed Package python36-3.6.8-39.module+el8.10.0+1910+234ad790.x86_64 is already installed.

but I get the below from which python which python /usr/bin/which: no python in (/usr/bin:/home/admin/.local/bin:/home/admin/bin:/usr/condabin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/opt/ibm/ltfsde/bin/ltfs:/opt/ibm/ltfsde/bin/ltfsck:/opt/ibm/ltfsde/bin/mkltfs:/opt/ibm/ltfsde/bin/ltfs:/opt/ibm/ltfsde/bin/ltfsck:/opt/ibm/ltfsde/bin/mkltfs) sudo ln -sf /usr/bin/python3 /usr/bin/python (base) [admin@LOWROCKY ~]$ which python /usr/bin/python The above looks more promising. But ... sudo /opt/ibm/ltfssde/bin/ltfs_ordered_copy -ar '/home/admin/Desktop/LOWBOSC PIX/NEW YEAR CARDS' /mnt/ltfs/sg4 Tape order aware copy for LTFS Check destination:startswith first arg must be bytes or a tuple of bytes, not str Not sure what it is worth but -p gives another error .... sudo /opt/ibm/ltfssde/bin/ltfs_ordered_copy -p '/home/admin/Desktop/LOWBOSC PIX/NEW YEAR CARDS' /mnt/ltfs/sg4 Tape order aware copy for LTFS omitting directory '/home/admin/Desktop/LOWBOSC PIX/NEW YEAR CARDS'

chlowden avatar Jun 25 '25 18:06 chlowden

It does not seem to work with a python3 simlink.

chlowden avatar Jul 19 '25 09:07 chlowden