Description
Hi I picked up the following error when trying to archive to the tape. Im very excited for this project! Please let me know if you require anything else.
Error: panic: unexpected EOF
OS: Fedora 41, x86_64
Tape Drive: IBM ULT3580-HH9
`[root@localhost tmp]# stfs op archive -d /dev/nst1 -v 4
{"time":1740040082,"level":"TRACE","event":"SQL Query","data":[{"query":"select min(length(name) - length(replace(name, "/", ""))) as depth, name from headers where deleted != 1"}]}
{"time":1740040082,"level":"TRACE","event":"SQL Query","data":[{"query":"[]"}]}
{"time":1740040088,"level":"TRACE","event":"SQL Query","data":[{"query":"select lastknownrecord, lastknownblock, ((lastknownrecord*$1)+lastknownblock) as location from headers order by location desc limit 1"}]}
{"time":1740040088,"level":"TRACE","event":"SQL Query","data":[{"query":"[20]"}]}
type,indexed,record,lastknownrecord,block,lastknownblock,typeflag,name,linkname,size,mode,uid,gid,uname,gname,modtime,accesstime,changetime,devmajor,devminor,paxrecords,format
archive,false,-1,-1,-1,-1,53,.,,0,1023,0,0,root,root,2025-02-20T09:58:48+02:00,2025-02-20T10:26:16+02:00,2025-02-20T09:58:48+02:00,0,0,null,4
archive,false,-1,-1,-1,-1,53,systemd-private-e8fa79ba87be4b2290fc299515e1c08c-systemd-resolved.service-wcOkon/tmp,,0,1023,0,0,root,root,2025-02-20T08:44:39+02:00,2025-02-20T10:26:23+02:00,2025-02-20T08:44:39+02:00,0,0,null,4
Error: unexpected EOF
Usage:
stfs operation archive [flags]
Aliases:
archive, arc, a, c, add, post
Flags:
-l, --compression-level string Compression level to use (default balanced, available are [fastest balanced smallest]) (default "balanced")
-f, --from string File or directory to archive (default ".")
-h, --help help for archive
-i, --identity string Path to private key to sign with
-o, --overwrite Start writing from the start instead of from the end of the tape or tar file
-p, --password string Password for the private key
-r, --recipient string Path to public key of recipient to encrypt for
-z, --record-size int Amount of 512-bit blocks per record (default 20)
Global Flags:
-c, --compression string Compression format to use (default , available are [ gzip parallelgzip lz4 zstandard brotli bzip2 parallelbzip2])
-d, --drive string Tape or tar file to use (default "/dev/nst0")
-e, --encryption string Encryption format to use (default , available are [ age pgp])
-m, --metadata string Metadata database to use (default "/root/.local/share/stfs/var/lib/stfs/metadata.sqlite")
-s, --signature string Signature format to use (default , available are [ minisign pgp])
-v, --verbose int Verbosity level (default 2, available are [0 1 2 3 4]) (default 2)
panic: unexpected EOF
goroutine 1 [running]:
main.main()
/data/cmd/stfs/main.go:7 +0x2b`