Bug 2513

Summary: Cannot upload binary files to binrepo via mgarepo
Product: Infrastructure Reporter: Funda Wang <fundawang>
Component: BuildSystemAssignee: Sysadmin Team <sysadmin-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: dmorganec, lev, sysadmin-bugs
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Funda Wang 2011-08-26 06:53:04 CEST
$ mgarepo --version
 mgarepo 1.10.1

 $ mgarepo upload git-1.7.6.1.tar.bz2
 fatal: unrecognized command '/usr/local/bin/wrapper.upload-bin git-1.7.6.1.tar.bz2'
 error: command failed: ssh binrepo.mageia.org /usr/local/bin/wrapper.upload-bin git-1.7.6.1.tar.bz2
 fatal: unrecognized command '/usr/local/bin/wrapper.upload-bin git-1.7.6.1.tar.bz2'

 $ ssh -v binrepo.mageia.org /usr/local/bin/wrapper.upload-bin git-1.7.6.1.tar.bz2
OpenSSH_5.8p2, OpenSSL 1.0.0d 8 Feb 2011
debug1: Reading configuration data /home/fwang/.ssh/config
debug1: Applying options for binrepo.mageia.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to binrepo.mageia.org [212.85.158.147] port 22.
debug1: Connection established.
debug1: identity file /home/fwang/.ssh/id_rsa type 1
debug1: identity file /home/fwang/.ssh/id_rsa-cert type -1
debug1: identity file /home/fwang/.ssh/id_dsa type -1
debug1: identity file /home/fwang/.ssh/id_dsa-cert type -1
debug1: identity file /home/fwang/.ssh/id_ecdsa type -1
debug1: identity file /home/fwang/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5
debug1: match: OpenSSH_5.5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.8
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA ad:34:4d:3f:37:73:91:51:9b:af:80:ce:e9:d6:2a:a4
debug1: Host 'binrepo.mageia.org' is known and matches the RSA host key.
debug1: Found key in /home/fwang/.ssh/known_hosts:46
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/fwang/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Authentication succeeded (publickey).
Authenticated to binrepo.mageia.org ([212.85.158.147]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting authentication agent forwarding.
debug1: Sending command: /usr/local/bin/wrapper.upload-bin git-1.7.6.1.tar.bz2
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
fatal: unrecognized command '/usr/local/bin/wrapper.upload-bin git-1.7.6.1.tar.bz2'
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2672, received 2392 bytes, in 0.0 seconds
Bytes per second: sent 83988.4, received 75187.3
debug1: Exit status 128
Comment 1 D Morgan 2011-08-26 08:16:16 CEST
for all or only this one ?

CC: (none) => dmorganec

Comment 2 Funda Wang 2011-08-26 09:21:02 CEST
Mmm,,, only this one.
Comment 3 Lev Givon 2011-09-26 18:52:54 CEST
I also noticed this when I attempted to import the Mandriva hg-git package. I'm also using mgarepo 1.10.1 (on Mandriva 2011). I haven't observed it while importing any other packages:

$ mgarepo import hg-git-0.3.1-1.src.rpm                                            
Importing package to svn+ssh://lebedov@svn.mageia.org/svn/packages/cauldron/hg-git
fatal: unrecognized command '/usr/local/bin/wrapper.upload-bin hg-git-0.3.1.tar.gz'
error: command failed: ssh binrepo.mageia.org /usr/local/bin/wrapper.upload-bin hg-git-0.3.1.tar.gz
fatal: unrecognized command '/usr/local/bin/wrapper.upload-bin hg-git-0.3.1.tar.gz'

CC: (none) => lev

Comment 4 Nicolas Vigier 2011-09-26 19:41:58 CEST
This should now be fixed, with this commit :
http://svnweb.mageia.org/adm/puppet/modules/restrictshell/templates/sv_membersh.pl?r1=1939&r2=2026

Status: NEW => RESOLVED
CC: (none) => boklm
Resolution: (none) => FIXED

Comment 5 Nicolas Vigier 2011-09-26 19:48:08 CEST
And I imported hg-git from cooker, for testing.
Comment 6 Lev Givon 2011-09-26 19:55:03 CEST
..and I just built it successfully. Thanks for fixing this.
Nicolas Vigier 2014-05-08 18:05:43 CEST

CC: boklm => (none)