canonical / jhack

Chock-full of Juju hackery.
Apache License 2.0
48 stars 23 forks source link

jhack sync isnt syncing #73

Closed erik78se closed 1 year ago

erik78se commented 1 year ago

I made some local changes and ran "jhack sync"

erik@frozen:~/nextcloud-charms/operator-nextcloud$ jhack sync nextcloud/0 
WARNING:jhack./snap/jhack/201/lib/python3.8/site-packages/jhack/utils/sync.py:not a directory: cannot watch /home/erik/nextcloud-charms/operator-nextcloud/lib. Skipping...
watching: 
    /home/erik/nextcloud-charms/operator-nextcloud/src/interface_http.py
    /home/erik/nextcloud-charms/operator-nextcloud/src/interface_mount.py
    /home/erik/nextcloud-charms/operator-nextcloud/src/occ.py
    /home/erik/nextcloud-charms/operator-nextcloud/src/interface_redis.py
    /home/erik/nextcloud-charms/operator-nextcloud/src/utils.py
    /home/erik/nextcloud-charms/operator-nextcloud/src/charm.py
Ctrl+C to interrupt
synced /home/erik/nextcloud-charms/operator-nextcloud/src/charm.py -> nextcloud/0
synced /home/erik/nextcloud-charms/operator-nextcloud/src/charm.py -> nextcloud/0
synced /home/erik/nextcloud-charms/operator-nextcloud/src/charm.py -> nextcloud/0
synced /home/erik/nextcloud-charms/operator-nextcloud/src/charm.py -> nextcloud/0

But when I looka at the file on the unit, its not changed at all.

PietroPasotti commented 1 year ago

Probably related to the other issue you were having. Try granting jhack ssh access. If you can still reproduce this, let me know and I will take a closer look.

erik78se commented 1 year ago

Thanx! I will try.

Did the snap mention this trick somewhere?

PietroPasotti commented 1 year ago

a few. But I do need to find a better solution because it seems like it's not obvious for everyone