You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Jhack set config fails with redirection (using snap) #202
changed the title [-]Set config fails with `OSError: [Errno 9] Bad file descriptor`[/-][+]Jhack set config fails with redirection (using snap)[/+]on Dec 17, 2024
@MichaelThamm I'm not sure what's going on. On my machine I get a different error, a 'no such file or directory' because the .config/jhack folder does not exist.
Do you by any chance see a warning like
WARNING:jhack./snap/jhack/x1/lib/python3.12/site-packages/jhack/conf/conf.py:failed to create default user config in ~/.config/jhack/config.toml. You'll have to do that manually.
in the output of jhack conf destructive?
That means jhack is failing to create the file ~/.config/jhack/config.toml, for some reason.
To confirm, could you run snappy-debug on the side? you should see something like: Log: apparmor="DENIED" operation="mkdir" class="file" profile="snap.jhack.jhack" name="~/.config/jhack/" pid=590756 comm="python3" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
ehm it seems that snapcraft.yaml only has read premissions for that path, while we've been granted write. in theory that should fix the issue I am having.
I have the same issue with juju export-bundle > tee bundle.yaml and resort to using tee as well so this makes me think this could be my shell. Not sure ...
Activity
[-]Set config fails with `OSError: [Errno 9] Bad file descriptor`[/-][+]Jhack set config fails with redirection (using snap)[/+]PietroPasotti commentedon Jan 6, 2025
@MichaelThamm I'm not sure what's going on. On my machine I get a different error, a 'no such file or directory' because the
.config/jhackfolder does not exist.Do you by any chance see a warning like
in the output of
jhack conf destructive?That means jhack is failing to create the file
~/.config/jhack/config.toml, for some reason.To confirm, could you run
snappy-debugon the side? you should see something like:Log: apparmor="DENIED" operation="mkdir" class="file" profile="snap.jhack.jhack" name="~/.config/jhack/" pid=590756 comm="python3" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000PietroPasotti commentedon Jan 6, 2025
ehm it seems that snapcraft.yaml only has
readpremissions for that path, while we've been grantedwrite. in theory that should fix the issue I am having.PietroPasotti commentedon Jan 15, 2025
this should be fixed on edge, could you confirm @MichaelThamm
MichaelThamm commentedon Jan 15, 2025
I installed version
0.4.4.0.11, triedjhack conf destructive > ~/.config/jhack/config.toml, and still get:I have the same issue with
juju export-bundle > tee bundle.yamland resort to using tee as well so this makes me think this could be my shell. Not sure ...