Git Product home page Git Product logo

Comments (11)

oparoz avatar oparoz commented on May 20, 2024 8

You need to call a different binary:
sudo /snap/bin/nextcloud.enable-https

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 20, 2024

Yeah, /snap/bin/ isn't in the path for sudo at the moment (a bug which been fixed but is being SRUd, which takes a bit). A workaround while we're waiting is to use the absolute path as @oparoz mentioned.

from nextcloud-snap.

kristbaum avatar kristbaum commented on May 20, 2024

So it the bug is in snapd?

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 20, 2024

So it the bug is in snapd?

It ended up being fixed in sudo (LP: #1595558).

from nextcloud-snap.

kristbaum avatar kristbaum commented on May 20, 2024

Ah thanks, is it okay if I leave the issue open until the fix comes out of xenial-proposed?

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 20, 2024

Oh certainly, I probably would have re-opened it if you closed it 😄 . Thanks for the report!

from nextcloud-snap.

kristbaum avatar kristbaum commented on May 20, 2024

Great, so let's: Ceep Calm, and sudo apt update! ;)

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 20, 2024

Just saw that this works in 16.04 now. Make sure you're up-to-date.

from nextcloud-snap.

alexpattyn avatar alexpattyn commented on May 20, 2024

This issue seems to still exist on Fedora 31 Server. After following https://snapcraft.io/docs/installing-snap-on-fedora I can install nextcloud but running...

[apattyn@localhost ~]$ nextcloud.enable-https lets-encrypt
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
chmod: changing permissions of '/tmp/pids': Operation not permitted
This utility needs to run as root
[apattyn@localhost ~]$ sudo nextcloud.enable-https lets-encrypt
sudo: nextcloud.enable-https: command not found

Wasn't sure if cgroups v2 was causing an issue but running the same command above but with /snap/bin/nextcloud.enable-https instead works.

from nextcloud-snap.

roadev avatar roadev commented on May 20, 2024

This issue seems to still exist on Fedora 31 Server. After following https://snapcraft.io/docs/installing-snap-on-fedora I can install nextcloud but running...

[apattyn@localhost ~]$ nextcloud.enable-https lets-encrypt
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
chmod: changing permissions of '/tmp/pids': Operation not permitted
This utility needs to run as root
[apattyn@localhost ~]$ sudo nextcloud.enable-https lets-encrypt
sudo: nextcloud.enable-https: command not found

Wasn't sure if cgroups v2 was causing an issue but running the same command above but with /snap/bin/nextcloud.enable-https instead works.

Same issue here on debian!

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 20, 2024

Yeah you might need to reboot to get /snap/bin onto your PATH, or you might need to add it yourself. In reality though, the snap cross-platform story is a bit of a stretch, I really don't recommend snaps unless you're on Ubuntu. Otherwise you'll (in most cases) end up running daemons as unconfined root, which is a terrible security practice.

from nextcloud-snap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.