Uploading rpm's to nethforge-testing: Couldn't read packet

What my is my mistake?

[markVnl@nethdev SOGo-Spec]$ ls -l
total 89892
-rw-rw-r-- 1 markVnl markVnl  1137291 Oct 19 19:00 build.log
-rw-rw-r-- 1 markVnl markVnl     3273 Oct 18 19:19 libwbxml.spec
-rw-rw-r-- 1 markVnl markVnl       12 Oct 18 19:19 README.md
-rw-rw-r-- 1 markVnl markVnl    42208 Oct 19 19:00 root.log
-rw-rw-r-- 1 markVnl markVnl 31906076 Oct 19 18:59 sogo-3.2.0-1.ns7.src.rpm
-rw-rw-r-- 1 markVnl markVnl 19827148 Oct 19 19:00 sogo-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl 32138507 Oct 19 18:58 SOGo-3.2.0.tar.gz
-rw-rw-r-- 1 markVnl markVnl   126772 Oct 19 19:00 sogo-activesync-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl    18056 Oct 18 19:31 sogo.spec
-rw-rw-r-- 1 markVnl markVnl    49224 Oct 19 19:00 sogo-tool-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl  2194701 Oct 19 18:47 SOPE-3.2.0.tar.gz
-rw-rw-r-- 1 markVnl markVnl  2198954 Oct 19 18:49 sope49-3.2.0-1.ns7.src.rpm
-rw-rw-r-- 1 markVnl markVnl   941896 Oct 19 18:52 sope49-appserver-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl   184660 Oct 19 19:00 sope49-cards-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl   351992 Oct 19 18:52 sope49-core-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl   175208 Oct 19 18:52 sope49-gdl1-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl    64304 Oct 19 19:00 sope49-gdl1-contentstore-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl    36252 Oct 19 18:52 sope49-gdl1-mysql-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl    53348 Oct 19 18:52 sope49-ldap-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl   306792 Oct 19 18:52 sope49-mime-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl    18752 Oct 19 18:52 sope49-sbjson-2.3.1-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl   211124 Oct 19 18:52 sope49-xml-3.2.0-1.ns7.x86_64.rpm
-rw-rw-r-- 1 markVnl markVnl    18216 Oct 18 19:31 sope.spec
-rw-rw-r-- 1 markVnl markVnl     1940 Oct 19 19:00 state.log
[markVnl@nethdev SOGo-Spec]$ pwd
[markVnl@nethdev SOGo-Spec]$ ls ~/.ssh/
id_rsa  id_rsa.pub
[markVnl@nethdev SOGo-Spec]$
[markVnl@nethdev SOGo-Spec]$ upload-rpms markVnl@packages.nethserver.org:nethforge-testing/ *.rpm
Couldn't read packet: Connection reset by peer
[markVnl@nethdev SOGo-Spec]$
[markVnl@nethdev SOGo-Spec]$ upload-rpms markVnl@packages.nethserver.org:/nethforge-testing/ *.rpm
Couldn't read packet: Connection reset by peer
[markVnl@nethdev SOGo-Spec]$
[markVnl@nethdev SOGo-Spec]$ upload-rpms markVnl@packages.nethserver.org:nethforge-testing *.rpm
Couldn't read packet: Connection reset by peer
[markVnl@nethdev SOGo-Spec]$ upload-rpms markVnl@packages.nethserver.org:nscom/7/nethforge-testing *.rpm
Couldn't read packet: Connection reset by peer

Don’t think it a connection problem, saw some echo’s in the script

Last try came from here:

Could it have something to do with updating the repositories to NS7RC1?
@davidep might shed some light.

You are right! Is not your fault!
I think this is: NethServer 7 rc1 ISO is coming up

After further reading is a SFTP connection problem,
There is no hurry :grinning:

1 Like

AFAIK sftp doesn’t let you accept the ssh key.
Could you try to ssh first and accept the key?

1 Like
 ssh markVnl@packages.nethserver.org
The authenticity of host 'packages.nethserver.org (' can't be established.
ECDSA key fingerprint is xx.yy.xx.yyy.xx.yy.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'packages.nethserver.org,64' (ECDSA) to the list of known hosts.
Could not chdir to home directory /home/markVnl: No such file or directory
This service allows sftp connections only.
Connection to packages.nethserver.org closed.

Tnx this solved the the connection problem :ok_hand:

Coming closer, now (I think) it’s figuring out the right path / syntax

upload-rpms markVnl@packages.nethserver.org:nethforge-testing/ *.rpm
File "/nethforge-testing/" not found.
 upload-rpms markVnl@packages.nethserver.org:nscom/7/nethforge-testing/ *.rpm
File "/nscom/7/nethforge-testing/" not found.

The “7” symlink is not available in the spool directory. Try with “7.2.1511”, good luck!

$ sftp davidep@packages.nethserver.org
Connected to packages.nethserver.org.
sftp> ls
sftp> ls nscom
nscom/6.8       nscom/7.2.1511  
sftp> ls nscom/7.2.1511
nscom/7.2.1511/base                       nscom/7.2.1511/nethforge                  nscom/7.2.1511/nethforge-groups.xml       nscom/7.2.1511/nethforge-testing          nscom/7.2.1511/testing                    
nscom/7.2.1511/updates                    nscom/7.2.1511/updates-groups.xml         
sftp> ls nscom/7.2.1511/nethforge-testing
1 Like

Bingo! thnx (made a small mistake though : uploaded 2 src.rpm to :cold_sweat:)

I’ll recap it here later here:

No problems, you must upload-rpms src too!

I usually do

upload-rpms davidep@packages.nethserver.org:<path> nethserver-*.rpm

Different RPM type/arch are dispatched in the proper subdir automatically. By now only x86_64 arch is supported but I’d like to support arm, too!