Re: [aur-general] AUR problem: 403 for white_dune package

2020-01-24 Thread J. Scheurich



Hi

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

Is your key added to the ssh-agent?

$ cat ~/.ssh/config
 Host aur.archlinux.org
 User aur
 PreferredAuthentications publickey
 IdentityFile ~/.ssh/aur
 AddKeysToAgent yes
...
$ git push
a...@aur.archlinux.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
$

Is this .ssh/config enough for ssh-agent ?

so long
MUFTI


Re: [aur-general] AUR problem: 403 for white_dune package

2020-01-24 Thread eye
Hi

> $ git clone ssh://a...@aur.archlinux.org/white_dune.git
> Cloning into 'white_dune'...
> a...@aur.archlinux.org: Permission denied (publickey).
> fatal: Could not read from remote repository.
Is your key added to the ssh-agent? 

-- Toni

On 01/24 07:18, J.Scheurich wrote:
> Hi,
> > > When i try
> > > 
> > > $ git remote add white_dunessh://a...@aur.archlinux.org/pkgbase.git
> > > $ git push
> > > fatal: unable to access 'https://aur.archlinux.org/white_dune.git/': The
> > > requested URL returned error: 403
> > the "white_dune" remote you just added is not the one you are pushing
> > to. git push by default pushes to the same remote you used "git clone" on.
> > 
> > You can try:
> > - re-cloning using ssh from the start
> > - "git remote set-url originssh://..." to update the default
> >remote's url for pushing
> > - use "git push white_dune master" to push to the alternative remote
> > 
> 
> Next trail...
> 
> $ git clone ssh://a...@aur.archlinux.org/white_dune.git
> Cloning into 'white_dune'...
> a...@aur.archlinux.org: Permission denied (publickey).
> fatal: Could not read from remote repository.
> 
> Please make sure you have the correct access rights
> and the repository exists.
> $ git clone http://aur.archlinux.org/white_dune.git
> Cloning into 'white_dune'...
> warning: redirecting to https://aur.archlinux.org/white_dune.git/
> remote: Enumerating objects: 560, done.
> remote: Counting objects: 100% (560/560), done.
> remote: Compressing objects: 100% (298/298), done.
> remote: Total 560 (delta 262), reused 560 (delta 262)
> Receiving objects: 100% (560/560), 111.68 KiB | 3.10 MiB/s, done.
> Resolving deltas: 100% (262/262), done.
> $ git remote set-url origin ssh://a...@aur.archlinux.org/white_dune.git
> fatal: not a git repository (or any parent up to mount point /)
> Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
> $
> 
> so long MUFTI


signature.asc
Description: PGP signature


Re: [aur-general] AUR problem: 403 for white_dune package

2020-01-24 Thread J. Scheurich

Hi,



Just try


```

~ ssh a...@aur.archlinux.org help

Commands:
...

if this does not work for you, you'll need to fix your ssh config / keys.


Thanks, that was the problem.


Now i get

$ git push
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 4 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 1.11 KiB | 569.00 KiB/s, done.
Total 7 (delta 3), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 11, in 
remote: load_entry_point('aurweb==4.8.0', 'console_scripts',
'aurweb-git-update')()
remote:   File
"/usr/lib/python3.8/site-packages/aurweb-4.8.0-py3.8.egg/aurweb/git/update.py",
line 341, in main
remote:   File
"/usr/lib/python3.8/site-packages/aurweb-4.8.0-py3.8.egg/aurweb/git/update.py",
line 42, in extract_arch_fields
remote: KeyError: 'arch'
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/white_dune.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to
'ssh://a...@aur.archlinux.org/white_dune.git'

I deleted the "arch" line in PKGBUILD cause of a errormessage in git
push, is this the error ?


what is a valid "arch line" ?


so long

MUFTI


Re: [aur-general] AUR problem: 403 for white_dune package

2020-01-24 Thread Eli Schwartz via aur-general
On 1/24/20 4:17 AM, J. Scheurich wrote:
> 
> Hi
>>> $ git clone ssh://a...@aur.archlinux.org/white_dune.git
>>> Cloning into 'white_dune'...
>>> a...@aur.archlinux.org: Permission denied (publickey).
>>> fatal: Could not read from remote repository.
>> Is your key added to the ssh-agent?
> $ cat ~/.ssh/config
>  Host aur.archlinux.org
>  User aur
>  PreferredAuthentications publickey
>  IdentityFile ~/.ssh/aur
>  AddKeysToAgent yes
> ...
> $ git push
> a...@aur.archlinux.org: Permission denied (publickey).
> fatal: Could not read from remote repository.
> 
> Please make sure you have the correct access rights
> $
> 
> Is this .ssh/config enough for ssh-agent ?

Are you sure your pubkey is added to your AUR profile?

What is the full output of the command:

ssh -v a...@aur.archlinux.org

-- 
Eli Schwartz
Bug Wrangler and Trusted User



signature.asc
Description: OpenPGP digital signature


Re: [aur-general] AUR problem: 403 for white_dune package

2020-01-24 Thread J. Scheurich

Hi,

Is this .ssh/config enough for ssh-agent ?

Are you sure your pubkey is added to your AUR profile?



After recreatin/upload of the aur key it works now 8-)

Thanks to all, who gave tips.

so long
MUFTI