Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with snap version - socket: permission denied #42

Open
pallebone opened this issue Jun 16, 2022 · 10 comments
Open

Issue with snap version - socket: permission denied #42

pallebone opened this issue Jun 16, 2022 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@pallebone
Copy link

When trying to use doggo on ubuntu core or debian 11 with snap installed I get the same error:

aragorn@Aragorn:~/Extract$ doggo mrkaran.dev A @192.168.2.22
ERROR[2022-06-16T16:15:21-04:00] error looking up DNS records error="dial udp 192.168.2.22:53: socket: permission denied"
NAME TYPE CLASS TTL ADDRESS NAMESERVER

Screenshot:
image

@mr-karan
Copy link
Owner

snap needs classic support to use root permissions. It's unsupported as of now, please use an alternative way to install

@pallebone
Copy link
Author

Hi there,

Thank you for your reply. Unfortunately ubuntu core only supports snaps and there is no alternative method to install this package as its for iot devices. Is there a way I can resolve the snap error?

kind regards,
Pete

@mr-karan
Copy link
Owner

You can download the binary and get this working: https://github.com/mr-karan/doggo/releases/tag/v0.5.3

Which architecture are you on?

@pallebone
Copy link
Author

pallebone commented Jun 17, 2022

Thank you. I am using amd64 with ubuntu core.

I am actually having a lot of trouble trying to complete what you are asking. At this moment downloading a file to ubuntu core is very difficult and Im trying to work out how to do that. I will update once I get past what seems simple but seems not to work as I am used to. Problem is in ubuntu core everything is a read only filesystem. Nothing is shipped by default to download in ubuntu core. No curl/wget etc.

Kind regards
Pete.

@mr-karan
Copy link
Owner

Can you install curl with snap? I’m not sure. If yes, then you can just curl the binary.

@pallebone
Copy link
Author

Thank you I have managed to install this workaround.

I had to:

snap install curl
cd /home/
mkdir doggo053
cd doggo053
curl -L https://github.com/mr-karan/doggo/releases/download/v0.5.3/doggo_0.5.3_linux_amd64.tar.gz > /home//doggo053.tar.gz
tar -xvzf doggo053.tar.gz

now running ./doggo works as expected.

One last question, would the snap version be somthing you might try to resolve or would this workaround be the only option going forward?

Kind regards
Pete

@mr-karan
Copy link
Owner

Publishing snap with --classic requires a manual approval and some lengthy process. I'll keep this issue open but it's not a priority for me right now

@mr-karan mr-karan added the enhancement New feature or request label Jun 18, 2022
@mr-karan mr-karan self-assigned this Jun 18, 2022
@pallebone
Copy link
Author

I understand. Would it help if I tried to ask this on your behalf if you dont have the time and see what they said so you dont have to do the back and forth and I just relay anything pertinent to you?

@mr-karan
Copy link
Owner

That’s helpful and kind. But I think I need to make a forum post and send for manual approval. I’ll do that soon.

https://snapcraft.io/docs/reviewing-classic-confinement-snaps

Although, this mentions that snap with classic mode cannot be installed on Ubuntu core, which is a bummer. It won’t solve the problem in your case.

May I understand why downloading from binary doesn’t help/solve your case?

@pallebone
Copy link
Author

It provides a workaround and agree it works fine however the idea behind ubuntu core is that all packages on it update automatically once deployed without any intervention at all making it a deploy and forget solution.

Besides a classic solution does snap provide no method to do a dns query that is sanctioned by the more modern version? Seems odd that is not possible. But thanks for looking either way. I agree its not super urgent and am appreciative of the time you spent thinking about it so far. I understand not all methods of installation can be supported and dont want to burden you with what is essentially an annoying request. Please feel free to close this issue if you prefer to do so.

Thank you again :)

P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants