Closed gaul closed 4 years ago
Does sudo -EHP
work?
Same error:
$ sudo -EHP rr record --setuid-sudo --chaos s3fs -o storage_class=standard_ia gaulbackup "${HOME}/gaulbackup" -f
[FATAL /builddir/build/BUILD/rr-4513b23c8092097dc42c73f3cbaf4cfaebd04efe/src/util.cc:1383:ensure_dir() errno: EACCES] Can't write to trace directory `/root/.local/share'.
=== Start rr backtrace:
rr(_ZN2rr13dump_rr_stackEv+0x5a)[0x564d8f17794a]
rr(_ZN2rr15notifying_abortEv+0x4f)[0x564d8f1779df]
rr(_ZN2rr12FatalOstreamD1Ev+0x5d)[0x564d8f08927d]
rr(_ZN2rr10ensure_dirERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcj+0x319)[0x564d8f178279]
rr(_ZN2rr10ensure_dirERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcj+0x524)[0x564d8f178484]
rr(_ZN2rr11TraceWriterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_NS_14TicksSemanticsE+0x5ec)[0x564d8f169f8c]
rr(_ZN2rr13RecordSessionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EESD_RKNS_20DisableCPUIDFeaturesENS0_16SyscallBufferingEiNS_7BindCPUES8_PKNS_9TraceUuidEb+0x93)[0x564d8f0bafd3]
rr(_ZN2rr13RecordSession6createERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EESB_RKNS_20DisableCPUIDFeaturesENS0_16SyscallBufferingEhNS_7BindCPUERKS7_PKNS_9TraceUuidEb+0x8de)[0x564d8f0bbc5e]
rr(_ZN2rr13RecordCommand3runERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE+0xbea)[0x564d8f0ad74a]
rr(main+0x16e)[0x564d8f02203e]
/lib64/libc.so.6(__libc_start_main+0xf2)[0x7f56220f0042]
rr(_start+0x2e)[0x564d8f0221de]
=== End rr backtrace
Aborted
Ah, I meant the opposite of course sudo -EP --preserve-env=HOME
. Looks like sudo has changed its default here to always set HOME
to that of the root user.
@gaul I wouldn't be surprised if you run into additional issues with privileged operations that rr doesn't handle yet. Please do feel free to open a new issue if you do, even if this particular issue is solved.
When running s3fs I see this error:
Following the instructions gives a different error:
This directory exists:
Any pointers to what I am doing wrong? Is there some issue related to
fusermount
?