Open sed-i opened 12 months ago
On jhack (edge) 0.3.23 there's a different error:
jhack show-stored cos-proxy/0
Traceback (most recent call last):
File "/snap/jhack/266/bin/jhack", line 8, in <module>
sys.exit(main())
File "/snap/jhack/266/lib/python3.8/site-packages/jhack/main.py", line 58, in main
from jhack.scenario.snapshot import snapshot
File "/snap/jhack/266/lib/python3.8/site-packages/jhack/scenario/snapshot.py", line 28, in <module>
from jhack.scenario.utils import JujuUnitName
File "/snap/jhack/266/lib/python3.8/site-packages/jhack/scenario/utils.py", line 6, in <module>
from scenario.scripts.errors import InvalidTargetUnitName
ModuleNotFoundError: No module named 'scenario.scripts'
I'm working on this, I think the issue has appeared on some recent juju version (did the permissions change on the charm files at some point I recall?)
the importerror has been fixed in the meantime, the ssh issue persists.
Have the same issue on juju 3.5.0-genericlinux-amd64
(lxd) and jhack 0.4.0.25.4
(rev 337 from latest/stable):
ERROR:jhack:failed to fetch db; command ['juju', 'scp', 'postgresql/0:/var/lib/juju/agents/unit-postgresql-0/charm/.unit-state.db', '/home/zvirovyi/snap/jhack/337/unit-state-gz7m_i0i.db'] exited with 1
failed to fetch db; aborting. b'ERROR exit status 1 (scp: /var/lib/juju/agents/unit-postgresql-0/charm/.unit-state.db: Permission denied)\n'
Issue
show-stored errors out,
because of file permissions:
Solution attempts
ssh-ing with root doesn't work,
but a sudo helps
Not sure to translate this to a
juju scp
command, but perhaps could pipe stdout instead?Environment