You are not logged in.

#1 2016-07-14 22:14:09

nthm
Member
Registered: 2016-07-14
Posts: 5

[SOLVED] Unable to upload package to AUR: git-receive-pack: denied

Hello,
Today I decided to package an application that I've found useful but isn't yet on the AUR. I made an account on the AUR and put a new SSH public key in my profile. I built a PKGBUILD to the specification of the wiki, and tested both it and the resulting package. Everything checked out until I tried to push it:

git-receive-pack: permission denied: nthm
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

When I add LOGLEVEL1 to ~/.ssh/config I can see that authentication works. Here's the full output:

14:47:20 nthm@leaf ~/Desktop/marp/ (0)
> git push
debug1: Connecting to aur.archlinux.org [5.9.250.164] port 22.
debug1: Connection established.
debug1: identity file /home/nthm/.ssh/aur type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/nthm/.ssh/aur-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2
debug1: match: OpenSSH_7.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to aur.archlinux.org:22 as 'aur'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: aes128-ctr MAC: umac-64-etm@openssh.com compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: umac-64-etm@openssh.com compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:L71Q91yHwmHPYYkJMDgj0xmUuw16qFOhJbBr1mzsiOI
debug1: Host 'aur.archlinux.org' is known and matches the ECDSA host key.
debug1: Found key in /home/nthm/.ssh/known_hosts:13
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/nthm/.ssh/aur
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to aur.archlinux.org ([5.9.250.164]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Remote: Forced command.
debug1: Remote: Port forwarding disabled.
debug1: Remote: X11 forwarding disabled.
debug1: Remote: PTY allocation disabled.
debug1: Remote: Forced command.
debug1: Remote: Port forwarding disabled.
debug1: Remote: X11 forwarding disabled.
debug1: Remote: PTY allocation disabled.
debug1: Sending command: git-receive-pack '/marp.git'
git-receive-pack: permission denied: nthm
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2700, received 3160 bytes, in 0.6 seconds
Bytes per second: sent 4173.6, received 4884.7
debug1: Exit status 1
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
14:47:33 nthm@leaf ~/Desktop/marp/ (128)

I would be concerned about "key_load_public: No such file or directory" (line 4) if it weren't for "Authentication Succeeded". The repository should not yet exist because the package is not on the AUR in any form, which I believe is okay as written on the wiki.

Any suggestions on what I could do to upload packages?
Thanks

Last edited by nthm (2016-07-16 23:24:22)

Offline

#2 2016-07-14 22:16:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

Did you pull the empty repository from the AUR as the starting point for your git project, or did you use git init ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-07-14 22:20:57

nthm
Member
Registered: 2016-07-14
Posts: 5

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

I cloned it using

git clone git+ssh://aur@aur.archlinux.org/marp.git

Offline

#4 2016-07-14 22:25:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

nthm wrote:

I cloned it using

git clone git+ssh://aur@aur.archlinux.org/marp.git

Just making sure smile
BTW,  Welcome to the Arch Linux forums.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-07-14 22:30:38

nthm
Member
Registered: 2016-07-14
Posts: 5

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

Thanks smile

Is it possible for someone to delete the repository (if it exists from me trying to push to it) so I could try cloning and pushing from scratch? Not sure if it'll work but all I can think of

Offline

#6 2016-07-14 22:43:21

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

Try:

ssh aur@aur.archlinux.org list-repos

If it works, you will find out that ssh access is configured properly. wink
You will also see a list of repos that you control. By cloning the repository over ssh you should have created and reserved an empty repo, denoted by an asterisk in front of it.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2016-07-14 23:47:22

nthm
Member
Registered: 2016-07-14
Posts: 5

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

Okay I tried that but there's no output at all hmm
If I enable LOGLEVEL1 as I did before I can see it's authenticated and connects properly but there are still no repos listed.

Last edited by nthm (2016-07-14 23:48:10)

Offline

#8 2016-07-16 17:51:29

alive4ever
Member
Registered: 2016-07-10
Posts: 65

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

Just my experience, to create a new aur repository, I create it from localhost, using git-init.

Then, I set remote origin to git+ssh://aur@aur.archlinux.org/pkgname.git.

Before pushing into origin, make sure that no aur repository with selected name exist. Don't forget to add aur ssh key to ssh-agent before pushing to aur for convenience.

I ever tried to push into someone else aur repository believing that aur will treate it as 'pull request' but it didn't work.

nthm wrote:

Okay I tried that but there's no output at all :/
If I enable LOGLEVEL1 as I did before I can see it's authenticated and connects properly but there are still no repos listed.

list-repos only lists the repositories you owned and candidate repos to be owned (with an asterisk mark). I don't see anything submitted under your username on aur, so it's ok for list-repos to output nothing.

Last edited by alive4ever (2016-07-16 18:01:24)

Offline

#9 2016-07-16 23:20:23

nthm
Member
Registered: 2016-07-14
Posts: 5

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

Using git init and setting the remote/upstream afterwards was what worked for me. I appreciate the help from everyone, thanks

Offline

#10 2016-07-17 02:15:17

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

It shouldn't make a difference.

But perhaps someone else owned a reservation for that package for some reason? (If you don't push a package within 24 hours after initing a repo, it expires and lets someone else push it instead.)

AFAIK there is absolutely no way to know when someone else has reserved a repo but not yet pushed to it.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#11 2016-07-17 02:53:41

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] Unable to upload package to AUR: git-receive-pack: denied

When someone else has "reserved" it, the web page exists. It won't show up in a search, you have to go to it manually.

Offline

Board footer

Powered by FluxBB