You are not logged in.

#1 2020-07-24 10:42:33

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Hi,
Please tell me what this error might be related to:

[helg@Houston ~]$ git remote add origin ssh://aur@aur.archlinux.org/cine-encoder.git
[helg@Houston ~]$ git add PKGBUILD .SRCINFO
[helg@Houston ~]$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin master

[helg@Houston ~]$ git push --set-upstream origin master
Enter passphrase for key '/home/helg/.ssh/aur': 
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 721 bytes | 721.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 11, in <module>
remote:     load_entry_point('aurweb==5.0.0', 'console_scripts', 'aurweb-git-update')()
remote:   File "/usr/lib/python3.8/site-packages/aurweb-5.0.0-py3.8.egg/aurweb/git/update.py", line 306, in main
remote: KeyError: 'pkgbase'
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/cine-encoder.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Last edited by Helg1980 (2020-07-24 11:54:30)

Offline

#2 2020-07-24 10:59:45

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

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Please use BBcode code tags, the forum software does not support markdown.

Also, please post the PKGBUILD and .SRCINFO content (again, in code tags).


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 2020-07-24 11:20:09

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

I don't know if I'm so stupid or if there's something wrong with the server.

PKGBUILD

# Maintainer: Helg1980 <depositmail@rambler.ru>
pkgname=cine-encoder
_name=${pkgname#python-}
pkgver=1.0
pkgrel=1
pkgdesc="Cine Encoder 2020SE"
arch=(x86_64)
url="https://github.com/CineEncoder/cine-encoder.git"
license=('GPL')
depends=('mkvtoolnix-cli' 'ffmpeg' 'mediainfo' 'python>=3.8.3' 'python-pyqt5' 'python-pymediainfo')
source=("https://github.com/CineEncoder/cine-encoder/archive/1.0.tar.gz")
md5sums=('SKIP')

build() {
  cd "${srcdir}/cine-encoder-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/cine-encoder-${pkgver}"
  python setup.py install --root="$pkgdir/" --skip-build  --optimize=1
  # install documentation
  install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
  # install license
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
  # install icon
  install -Dm644 cine-encoder/cine-encoder.png -t "${pkgdir}/usr/share/icons/hicolor/64x64/apps/"
  # install .desktop
  install -Dm644 cine-encoder/cine-encoder.desktop -t "${pkgdir}/usr/share/applications/"

}

.SRCINFO

pkgbase = cine-encoder
	pkgdesc = Cine Encoder 2020SE
	pkgver = 1.0
	pkgrel = 1
	url = https://github.com/CineEncoder/cine-encoder.git
	arch = x86_64
	license = GPL
	depends = mkvtoolnix-cli
	depends = ffmpeg
	depends = mediainfo
	depends = python>=3.8.3
	depends = python-pyqt5
	depends = python-pymediainfo
	source = https://github.com/CineEncoder/cine-encoder/archive/1.0.tar.gz
	md5sums = SKIP

pkgname = cine-encoder

Last edited by Helg1980 (2020-07-24 12:49:35)

Offline

#4 2020-07-24 11:50:16

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

You are using [ quote ] tags -- please use [ code ] tags instead.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#5 2020-07-24 12:26:02

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

You have run

$ makepkg --printsrcinfo > .SRCINFO

to generate a correct .SRCINFO file ?


Another possbile cause is the migration of AUR to a new box that will take place today or tomorrow, see https://lists.archlinux.org/pipermail/a … 35838.html


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2020-07-24 12:51:20

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

I re-created .SRCINFO and still the same error appears.

Offline

#7 2020-07-24 13:01:52

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

[helg@Houston ~]$ git remote add origin ssh://aur@aur.archlinux.org/cine-encoder.git
[helg@Houston ~]$ git add PKGBUILD .SRCINFO
[helg@Houston ~]$ git push

Wiki indicates after setting the remote you need to fetch the remote to initialize it on the aur side.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2020-07-24 13:29:12

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Yes, I saw it now. I'm sorry!

Last edited by Helg1980 (2020-07-24 13:38:30)

Offline

#9 2020-07-24 13:58:47

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

But the error did not disappear after that.
Here are all the commands I did:

create config:
~/.ssh/config
-------------------------------
Host aur.archlinux.org
  IdentityFile ~/.ssh/aur
  User aur
------------------------------  
  
$ ssh-keygen -f ~/.ssh/aur

- add aur.pub key to account


$ git clone ssh://aur@aur.archlinux.org/cine-encoder.git

$ git remote add origin ssh://aur@aur.archlinux.org/cine-encoder.git

$ git fetch origin

$ makepkg --printsrcinfo > .SRCINFO

$ git add PKGBUILD .SRCINFO

$ git commit -m "update files"

$ git push origin master

Last edited by Helg1980 (2020-07-24 15:02:10)

Offline

#10 2020-07-25 11:43:03

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Today I already have this coming up:
(I tried changing the key, but this message still comes out)


[helg@Houston ~]$ git fetch origin
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for aur.archlinux.org has changed,
and the key for the corresponding IP address 95.216.144.15
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:uTa/0PndEgPZTf76e1DFqXKJEXKsn7m9ivhLQtzGOCI.
Please contact your system administrator.
Add correct host key in /home/helg/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/helg/.ssh/known_hosts:1
ECDSA host key for aur.archlinux.org has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

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

Last edited by Helg1980 (2020-07-25 11:44:05)

Offline

#11 2020-07-25 12:10:54

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#12 2020-07-27 10:19:20

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Hi,

Today is Monday, and the same thing.

Last edited by Helg1980 (2020-07-27 10:19:33)

Offline

#13 2020-07-27 11:14:07

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,932
Website

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

... and you still did not read the sticky topic.

Offline

#14 2020-07-27 11:31:09

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

I read it ...

It was written that the migration will take 2 hours.
but it's been 3 days since then...

Em julho 23, 2020 17:09 Giancarlo Razzolini via aur-general escreveu:
> Hi All,
>
> In continuing with the improvements being done to our infrastructure, we're
> planning to migrate the AUR to another machine. This means that, during the migration,
> there *will* be downtime of the whole AUR.
>
> I expect the migration to take around two hours and happen either tomorrow (Friday)
> or on Saturday, depending on availability.
>
> Regards,
> Giancarlo Razzolini
>

The migration is almost done. Since we are moving to a new machine, it will
have new host keys. They are:

    Ed25519: SHA256:RFzBCUItH9LZS0cKB5UE6ceAYhBD5C8GeOBip8Z11+4
    ECDSA: SHA256:5s5cIyReIfNNVGRFdDbe3hdYiI5OelHGpw2rOUud3Q8
    RSA: SHA256:uTa/0PndEgPZTf76e1DFqXKJEXKsn7m9ivhLQtzGOCI

They are also be available on the home page when logged out.

Regards,
Giancarlo Razzolini

Last edited by Helg1980 (2020-07-27 11:33:39)

Offline

#15 2020-07-27 11:33:41

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

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Helg1980 wrote:

It was written that the migration will take 2 hours.

That is not the relevant part, this is:

Since we are moving to a new machine, it will
have new host keys.


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

#16 2020-07-27 11:40:41

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

and again-it is unclear what these keys are? what are they for? what should I do with them if I have my own SSH keys?
Can someone explain "not for the smart"?

Offline

#17 2020-07-27 11:56:41

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,932
Website

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

The AUR server's host keys have changed with the said migration.
Host keys are not user keys. Host keys identify hosts whereas user keys identify users.
Read the Wiki and official SSH documentation for further details.

Offline

#18 2020-07-27 13:59:31

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

I try to understand, so far unsuccessfully....

Offline

#19 2020-07-27 14:03:12

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

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Have you tried googling ssh host keys yet?

Don't expect to be spoon fed.

Offline

#20 2020-07-27 14:13:44

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Yes, I only found that they are stored in the ~/.ssh/known_hosts file.
And what to do next is unclear. Change them manually in this file?

I don't know how to link this:

Ed25519: SHA256:RFzBCUItH9LZS0cKB5UE6ceAYhBD5C8GeOBip8Z11+4
ECDSA: SHA256:5s5cIyReIfNNVGRFdDbe3hdYiI5OelHGpw2rOUud3Q8
RSA: SHA256:uTa/0PndEgPZTf76e1DFqXKJEXKsn7m9ivhLQtzGOCI


with the ~/.ssh/known_hosts file

Last edited by Helg1980 (2020-07-27 14:16:24)

Offline

#21 2020-07-27 14:33:55

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,932
Website

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

The error message you provided above tells you exactly what to do.
Hint:

man ssh-keygen wrote:

     -R hostname | [hostname]:port
             Removes all keys belonging to the specified hostname (with optional port number) from a known_hosts file.  This option is useful to delete hashed hosts (see the -H option above).

Still, it all boils down to RTFM and RTFW.

Last edited by schard (2020-07-27 14:35:38)

Offline

#22 2020-07-27 15:18:07

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

I fixed the host keys with your help, but went back to the previous error again:


[helg@Houston AUR]$ git fetch origin
Enter passphrase for key '/home/helg/.ssh/aur': 

[helg@Houston AUR]$ git add PKGBUILD .SRCINFO

[helg@Houston AUR]$ git commit -m "update files"
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        AUR commands
        cine-encoder-1.0-1-x86_64.pkg.tar.xz
        cine-encoder/

nothing added to commit but untracked files present (use "git add" to track)

[helg@Houston AUR]$ git push origin master
Enter passphrase for key '/home/helg/.ssh/aur': 
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 1.14 KiB | 585.00 KiB/s, done.
Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 33, in <module>
remote:     sys.exit(load_entry_point('aurweb==5.0.0', 'console_scripts', 'aurweb-git-update')())
remote:   File "/usr/lib/python3.8/site-packages/aurweb-5.0.0-py3.8.egg/aurweb/git/update.py", line 306, in main
remote: KeyError: 'pkgbase'
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/cine-encoder.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Here I was simply dumbfounded....

Offline

#23 2020-07-27 15:27:19

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,932
Website

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

As mentioned before, the AUR repo needs to be cloned in order to initialize it.
Again, RTFW.
Also, the error indicates a mismatch of the pkgbase.
I doubt that you correctly generated the .SRCINFO as described above, since the correct command is not part of your posted workflow.

Last edited by schard (2020-07-27 15:29:55)

Offline

#24 2020-07-27 15:32:22

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

These commands I also executed, just did not write, here is the full list:

[helg@Houston AUR]$ git clone ssh://aur@aur.archlinux.org/cine-encoder.git
Cloning into 'cine-encoder'...
The authenticity of host 'aur.archlinux.org (95.216.144.15)' can't be established.
ECDSA key fingerprint is SHA256:uTa/0PndEgPZTf76e1DFqXKJEXKsn7m9ivhLQtzGOCI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'aur.archlinux.org,95.216.144.15' (ECDSA) to the list of known hosts.
Enter passphrase for key '/home/helg/.ssh/aur': 
warning: You appear to have cloned an empty repository.
[helg@Houston AUR]$ git remote add origin ssh://aur@aur.archlinux.org/cine-encoder.git
fatal: remote origin already exists.
[helg@Houston AUR]$ git fetch origin
Enter passphrase for key '/home/helg/.ssh/aur': 
[helg@Houston AUR]$ git add PKGBUILD .SRCINFO
[helg@Houston AUR]$ git commit -m "update files"
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        AUR commands
        cine-encoder-1.0-1-x86_64.pkg.tar.xz
        cine-encoder/

nothing added to commit but untracked files present (use "git add" to track)
[helg@Houston AUR]$ git push origin master
Enter passphrase for key '/home/helg/.ssh/aur': 
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 1.14 KiB | 585.00 KiB/s, done.
Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 33, in <module>
remote:     sys.exit(load_entry_point('aurweb==5.0.0', 'console_scripts', 'aurweb-git-update')())
remote:   File "/usr/lib/python3.8/site-packages/aurweb-5.0.0-py3.8.egg/aurweb/git/update.py", line 306, in main
remote: KeyError: 'pkgbase'
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/cine-encoder.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

.SRCINFO generated by the command:

makepkg --printsrcinfo > .SRCINFO

.SRCINFO:

pkgbase = cine-encoder
	pkgdesc = Cine Encoder 2020SE
	pkgver = 1.0
	pkgrel = 1
	url = https://github.com/CineEncoder/cine-encoder.git
	arch = x86_64
	license = GPL
	depends = mkvtoolnix-cli
	depends = ffmpeg
	depends = mediainfo
	depends = python>=3.8.3
	depends = python-pyqt5
	depends = python-pymediainfo
	source = https://github.com/CineEncoder/cine-encoder/archive/1.0.tar.gz
	md5sums = SKIP

pkgname = cine-encoder

Last edited by Helg1980 (2020-07-27 15:35:15)

Offline

#25 2020-07-27 15:47:31

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

Re: Failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

You should start again with a fresh git repository, you have probably old commits with wrong data in your "AUR" git repository. I suggest you delete that, then clone the git repository from the AUR and enter the newly created directory that contains the new git repository.

 cd ~/AUR
rm -r .git
git clone ssh://aur@aur.archlinux.org/cine-encoder.git
cd cine-encoder
mv ../PKGBUILD ./ # move PKGBUILD into repository
... >.SRCINFO # create srcinfo
...

Last edited by progandy (2020-07-27 15:50:12)


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

Online

Board footer

Powered by FluxBB