You are not logged in.

#1 2016-03-31 06:19:06

rodaz143
Member
Registered: 2013-07-24
Posts: 95

[SOLVED] Issue with authentication for pushing to AUR

I'm making an initial commit to the AUR for a game engine called minisphere. I am not the main developer, but he uses PPA, so I offered to submit it to the AUR, since he is not familiar with Arch Linux. Naturally, I don't have access to his GitHub credentials, but the tar.gz file in the source section is publicly available. I can copy the PKGBUILD to an empty folder and run makepkg, and it will build it correctly. On the AUR page in the wiki, I have done everything up to here, all but git push, where it asks for the credentials.

Is there anything here that might be obvious that I'm missing?

Last edited by rodaz143 (2016-03-31 08:02:56)

Offline

#2 2016-03-31 06:21:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Issue with authentication for pushing to AUR


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-03-31 06:22:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Issue with authentication for pushing to AUR

specific commands and output, please.

Online

#4 2016-03-31 06:42:41

rodaz143
Member
Registered: 2013-07-24
Posts: 95

Re: [SOLVED] Issue with authentication for pushing to AUR

First, I already have two SSH keys set up, as described in the wiki page, and configured in ~/.ssh/config. But just in case it might be useful information,

Host josh-ArchMate
	IdentityFile ~/.ssh/id_rsa
	User josh

Host aur.archlinux.org
	IdentityFile ~/.ssh/aur_rsa
	User aur

And for the commands:

git clone git+ssh://aur@aur.archlinux.org/minisphere.git
git remote add origin git+ssh://aur@aur.archlinux.org/minisphere.git
git fetch origin
git.config user.email "...@..."
makepkg --printsrcinfo > .SRCINFO
git add PKGBUILD .SRCINFO
git commit -m "initial commit"
git push

And when I enter the last command, it prints out this:

[josh@josh-PC minisphere]$ git push
Username for 'https://github.com': 
Password for 'https://github.com': 
remote: Anonymous access to fatcerberus/minisphere.git denied.
fatal: Authentication failed for 'https://github.com/fatcerberus/minisphere/'

For reference, here is my PKGBUILD: http://pastebin.com/7iU6C6Uf

Offline

#5 2016-03-31 06:49:35

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Issue with authentication for pushing to AUR

The issue doesn't seem to be with AUR. It seems to be with the GitHub repository.

Edit: From within your local repo, post the output of

$ git remote -v

Last edited by x33a (2016-03-31 06:54:42)

Offline

#6 2016-03-31 06:55:03

rodaz143
Member
Registered: 2013-07-24
Posts: 95

Re: [SOLVED] Issue with authentication for pushing to AUR

I got the link to the tar file from the repo's download page
https://github.com/fatcerberus/minisphere/releases

Offline

#7 2016-03-31 06:58:31

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: [SOLVED] Issue with authentication for pushing to AUR

git clone git+ssh://aur@aur.archlinux.org/minisphere.git
git remote add origin git+ssh://aur@aur.archlinux.org/minisphere.git

If you clone, you don't need to add the remote -- the clone creates it.

Read this part very closely................. wink

[josh@josh-PC minisphere]$ git push
remote: Anonymous access to fatcerberus/minisphere.git denied.
fatal: Authentication failed for 'https://github.com/fatcerberus/minisphere/'

Offline

#8 2016-03-31 07:12:31

rodaz143
Member
Registered: 2013-07-24
Posts: 95

Re: [SOLVED] Issue with authentication for pushing to AUR

So then do I have one of the fields in the PKGBUILD mixed up and as a result, it's trying to push to the Github repo instead of the AUR repo?

Offline

#9 2016-03-31 07:40:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Issue with authentication for pushing to AUR

What is the output of `git remote -v`?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2016-03-31 08:02:38

rodaz143
Member
Registered: 2013-07-24
Posts: 95

Re: [SOLVED] Issue with authentication for pushing to AUR

Alright. Well I went back, created a new folder, copied over the PKGBUILD and ran git init and made sure that everything else was in line. I may have mesed up somewhere and did something out of order.

https://aur.archlinux.org/packages/minisphere/

Offline

Board footer

Powered by FluxBB