mehdi
January 7, 2023, 9:35am
1
tsi
January 7, 2023, 10:22am
2
Upgrading a sandbox only changes pointer to distro. Do you have the logs from booting the upgraded sandbox? Also, which XP version did you use previously?
mehdi
January 9, 2023, 6:03am
3
Unfortunately, the problem was from my side
Every time I tried to update the cli, it gave me this message
snap “enonic” has no updates available
Then when I searched I found this page
opened 07:36AM - 05 Jun 19 UTC
closed 12:26PM - 17 Sep 19 UTC
When installing the cli with `sudo snap install enonic` on arch linux it has pro… blems:
* It does not seem to like my java home: JAVA_HOME is set to an invalid directory
* It is unable to start service on port 8080
* The ~/.enonic folder does not appear but is is located at ~/snap/enonic/5/.enonic
When installing with `sudo snap install --devmode enonic`:
* Still complains about java home
* It is able to start the service on port 8080
When downloading the binary manually from the enonic repo and installing it has no problems.
The reason could be because goreleaser is releasing [the snap in strict mode](https://github.com/enonic/cli-enonic/blob/acf3357a236829c73bb0929a3c082df3efdbabc4/.goreleaser.yml#L253).
I am wondering if adding plugs to the `.goreleaser.yml` file would do the trick? Something like this:
```yaml
snapcraft:
...
name: enonic
...
confinement: strict
apps:
enonic:
plugs: ["network", "network-bind", "personal-files", "system-files"]
plugs:
personal-files:
read:
- $HOME/.enonic
write:
- $HOME/.enonic
system-files:
read:
- $JAVA_HOME
```
Links:
* [Snapcraft confinement](https://snapcraft.io/docs/reference/confinement)
* [Snapcraft supported interfaces](https://forum.snapcraft.io/t/supported-interfaces/7744)
* [Plugs in goreleaser](https://goreleaser.com/snapcraft/)
I ran this command and this happened
**
sudo rm -r $HOME/.enonic && sudo snap refresh enonic && enonic -v
**
tsi
January 9, 2023, 6:39am
4
This command deletes both sandboxes, cli and distros… . I assume you have no backups of your computer, or something in the trashcan?