You are not logged in.

#1 2015-06-08 18:22:52

lykwydchykyn
Member
Registered: 2013-07-11
Posts: 91

[Solved] Permission denied when trying to create aur4 repo

I'm trying to follow the steps here to migrate my aur packages to aur4.  I've created my public key, edited ~/.ssh/config as described, and copied my public key file to my aur4 account settings.

When I run my git clone command I get this:

$ git clone ssh://aur@aur4.archlinux.org/wcgbrowser-git.git
Cloning into 'wcgbrowser-git'...
Permission denied (publickey).
fatal: Could not read from remote repository.

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

Is there a step missing here where I need to create the repository on aur4 first, or is that done automatically when I clone?  Seems logical, but I couldn't find a way to create the repo either in the web interface or on the wiki.  Or is this indeed an authentication issue of some kind?

Last edited by lykwydchykyn (2015-06-08 18:53:57)

Offline

#2 2015-06-08 18:41:11

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: [Solved] Permission denied when trying to create aur4 repo

lykwydchykyn wrote:

is this indeed an authentication issue of some kind?

The "Permission denied (publickey)" message suggests that this is the case. Double-check that your ~/.ssh/config and the public key on the AUR web interface are correct.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-06-08 18:46:57

lykwydchykyn
Member
Registered: 2013-07-11
Posts: 91

Re: [Solved] Permission denied when trying to create aur4 repo

Ah, looks like I copied the wrong publickey.  Thanks for the sanity check.

Offline

#4 2015-08-02 20:48:53

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,367

Re: [Solved] Permission denied when trying to create aur4 repo

I've done everything here and mine wants a passphrase for the pub file/key.  Even when I put a passphrase in for the key it still doesn't work.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#5 2015-08-30 23:49:18

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: [Solved] Permission denied when trying to create aur4 repo

I also got this error when I tried to clone a package I had already migrated and done updates to. I was following the wiki instructions https://wiki.archlinux.org/index.php/Ar … g_packages which say to

$ git clone ssh://aur@aur.archlinux.org/foobar.git

However, everything worked fine when I used

$ git clone ssh://aur@aur4.archlinux.org/foobar.git

Notice `aur4` instead of `aur`.

I'm not sure where to fix this. I could try to change the wiki, but it seems like now that https://aur4.archlinux.org/ and https://aur.archlinux.org/ take you to the same place, it shouldn't be necessary to specify aur4 in the clone command.

Last edited by colinkeenan (2015-08-30 23:51:23)

Offline

#6 2015-08-31 20:28:39

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,367

Re: [Solved] Permission denied when trying to create aur4 repo

colinkeenan wrote:

I also got this error when I tried to clone a package I had already migrated and done updates to. I was following the wiki instructions https://wiki.archlinux.org/index.php/Ar … g_packages which say to

$ git clone ssh://aur@aur.archlinux.org/foobar.git

However, everything worked fine when I used

$ git clone ssh://aur@aur4.archlinux.org/foobar.git

Notice `aur4` instead of `aur`.

I'm not sure where to fix this. I could try to change the wiki, but it seems like now that https://aur4.archlinux.org/ and https://aur.archlinux.org/ take you to the same place, it shouldn't be necessary to specify aur4 in the clone command.

aur4 was temporary for about 2 months.  It is now aur as the transition period has ended. You can still upload the stuff and still use the backup at pkgbuild if needed.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#7 2015-08-31 20:37:32

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: [Solved] Permission denied when trying to create aur4 repo

nomorewindows wrote:
colinkeenan wrote:

I also got this error when I tried to clone a package I had already migrated and done updates to. I was following the wiki instructions https://wiki.archlinux.org/index.php/Ar … g_packages which say to

$ git clone ssh://aur@aur.archlinux.org/foobar.git

However, everything worked fine when I used

$ git clone ssh://aur@aur4.archlinux.org/foobar.git

Notice `aur4` instead of `aur`.

I'm not sure where to fix this. I could try to change the wiki, but it seems like now that https://aur4.archlinux.org/ and https://aur.archlinux.org/ take you to the same place, it shouldn't be necessary to specify aur4 in the clone command.

aur4 was temporary for about 2 months.  It is now aur as the transition period has ended. You can still upload the stuff and still use the backup at pkgbuild if needed.

Yes - I know that aur4 was temporary, and therefore it makes sense that the wiki says to use aur, however, I get this error when using aur and therefore still have to use aur4. I have created a bug report concerning this: https://bugs.archlinux.org/task/46154

Offline

#8 2015-09-09 13:14:53

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: [Solved] Permission denied when trying to create aur4 repo

I tried to solve this without editing the wiki by filing this bug report: https://bugs.archlinux.org/task/46154. It was closed for not being a bug, so I have fixed the command in the wiki, putting "aur4" back into it because that's what's required to avoid this error.

Offline

#9 2015-09-09 13:19:47

progandy
Member
Registered: 2012-05-17
Posts: 5,202

Re: [Solved] Permission denied when trying to create aur4 repo

Did you maybe forget to change "aur4" to "aur" in your ssh config?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#10 2015-09-09 13:25:34

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: [Solved] Permission denied when trying to create aur4 repo

@progandy Thank you for providing the correct answer to my problem. I had to use "aur4" because I had

/home/colin %cat /home/colin/.ssh/config
Host aur4.archlinux.org
   IdentityFile ~/.ssh/id_aur
   User aur

I've fixed it to

 /home/colin %cat /home/colin/.ssh/config
Host aur.archlinux.org
   IdentityFile ~/.ssh/id_aur
   User aur

and now the original wiki command works (and somebody else already undid my previous edit of the wiki)

Offline

#11 2015-10-22 17:10:33

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: [Solved] Permission denied when trying to create aur4 repo

Problem happened again today when doing a git push. Fixed by removing the local git repository for the package and cloning again. The problem was the previous clone was still using aur4.

Offline

Board footer

Powered by FluxBB