Using koji via a ssh tunnel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

Seems I cannot use koji (therefore fedpkg build and related commands) on
my university wifi. It gives me an error: 


> [ankur@ankur SRPMS]$ ps aux | egrep ssh
> root       999  0.0  0.0  77608  1288 ?        Ss   Oct18   0:00 /usr/sbin/sshd -D
> ankur     4714  0.0  0.0 106996   848 pts/9    S+   14:17   0:00 egrep --color=auto ssh
> ankur     7810  0.0  0.0  75528  1276 ?        Ss   11:31   0:00 ssh -f -L 6667:irc.freenode.net:6667 ankursinha@xxxxxxxxxxxxxxxx -N
> [ankur@ankur SRPMS]$ koji --debug-xmlrpc list-tasks --mine
> send: "POST /kojihub/ssllogin HTTP/1.1\r\nHost: koji.fedoraproject.org:443\r\nAccept-Encoding: gzip\r\nUser-Agent: pyOpenSSL_XMLRPC/0.12 - xmlrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length: 140\r\n\r\n<?xml version='1.0'?>\n<methodCall>\n<methodName>sslLogin</methodName>\n<params>\n<param>\n<value><nil/></value></param>\n</params>\n</methodCall>\n"
> reply: 'HTTP/1.1 200 OK\r\n'
> header: Date: Fri, 19 Oct 2012 03:18:14 GMT
> header: Server: Apache/2.2.15 (Red Hat)
> header: Content-Length: 304
> header: AppTime: D=1222732
> header: AppServer: koji03.phx2.fedoraproject.org
> header: Connection: close
> header: Content-Type: text/xml
> body: "<?xml version='1.0'?>\n<methodResponse>\n<params>\n<param>\n<value><struct>\n<member>\n<name>session-id</name>\n<value><int>8020825</int></value>\n</member>\n<member>\n<name>session-key</name>\n<value><string>935-c3ou3TL42EtyQayMxKv</string></value>\n</member>\n</struct></value>\n</param>\n</params>\n</methodResponse>\n"
> send: "POST /kojihub?session-id=8020825&session-key=935-c3ou3TL42EtyQayMxKv&callnum=0 HTTP/1.1\r\nHost: koji.fedoraproject.org:443\r\nAccept-Encoding: gzip\r\nUser-Agent: pyOpenSSL_XMLRPC/0.12 - xmlrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length: 107\r\n\r\n<?xml version='1.0'?>\n<methodCall>\n<methodName>getAPIVersion</methodName>\n<params>\n</params>\n</methodCall>\n"
> reply: 'HTTP/1.1 200 OK\r\n'
> header: Date: Fri, 19 Oct 2012 03:18:16 GMT
> header: Server: Apache/2.2.15 (Red Hat)
> header: Content-Length: 292
> header: AppTime: D=5592
> header: AppServer: koji03.phx2.fedoraproject.org
> header: Connection: close
> header: Content-Type: text/xml
> body: "<?xml version='1.0'?>\n<methodResponse>\n<fault>\n<value><struct>\n<member>\n<name>faultCode</name>\n<value><int>1002</int></value>\n</member>\n<member>\n<name>faultString</name>\n<value><string>Invalid session or bad credentials</string></value>\n</member>\n</struct></value>\n</fault>\n</methodResponse>\n"
> AuthError: Invalid session or bad credentials
> send: "POST /kojihub?session-id=8020825&session-key=935-c3ou3TL42EtyQayMxKv HTTP/1.1\r\nHost: koji.fedoraproject.org:443\r\nAccept-Encoding: gzip\r\nUser-Agent: pyOpenSSL_XMLRPC/0.12 - xmlrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length: 100\r\n\r\n<?xml version='1.0'?>\n<methodCall>\n<methodName>logout</methodName>\n<params>\n</params>\n</methodCall>\n"
> reply: 'HTTP/1.1 200 OK\r\n'
> header: Date: Fri, 19 Oct 2012 03:18:17 GMT
> header: Server: Apache/2.2.15 (Red Hat)
> header: Content-Length: 292
> header: AppTime: D=5696
> header: AppServer: koji03.phx2.fedoraproject.org
> header: Connection: close
> header: Content-Type: text/xml
> body: "<?xml version='1.0'?>\n<methodResponse>\n<fault>\n<value><struct>\n<member>\n<name>faultCode</name>\n<value><int>1002</int></value>\n</member>\n<member>\n<name>faultString</name>\n<value><string>Invalid session or bad credentials</string></value>\n</member>\n</struct></value>\n</fault>\n</methodResponse>\n"
> send: "POST /kojihub?session-id=8020825&session-key=935-c3ou3TL42EtyQayMxKv HTTP/1.1\r\nHost: koji.fedoraproject.org:443\r\nAccept-Encoding: gzip\r\nUser-Agent: pyOpenSSL_XMLRPC/0.12 - xmlrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length: 100\r\n\r\n<?xml version='1.0'?>\n<methodCall>\n<methodName>logout</methodName>\n<params>\n</params>\n</methodCall>\n"
> reply: 'HTTP/1.1 200 OK\r\n'
> header: Date: Fri, 19 Oct 2012 03:18:18 GMT
> header: Server: Apache/2.2.15 (Red Hat)
> header: Content-Length: 292
> header: AppTime: D=5242
> header: AppServer: koji03.phx2.fedoraproject.org
> header: Connection: close
> header: Content-Type: text/xml
> body: "<?xml version='1.0'?>\n<methodResponse>\n<fault>\n<value><struct>\n<member>\n<name>faultCode</name>\n<value><int>1002</int></value>\n</member>\n<member>\n<name>faultString</name>\n<value><string>Invalid session or bad credentials</string></value>\n</member>\n</struct></value>\n</fault>\n</methodResponse>\n"
> [ankur@ankur SRPMS]$
> 

I already need to use ssh tunneling for irc, as you can see. Would any
one know how I can use koji from this connection? Another ssh tunnel? 

I can't use 443 on my system for the tunnel since it requires root
privileges and my keys etc are only set up for the non root user. (I
wasn't sure what port koji used, so I tried 443 and 80 both with a local
port) I tried using another such as 9000, but koji doesn't take port as
an argument at all. "-s localhost:9000" doesn't appear to work. I get a
"bad xml-rpc response" error. 


This bug/issue looks like what I'm hitting:
https://bugzilla.redhat.com/show_bug.cgi?id=668947

but it wasn't followed up, and no solution is available therefore. 

I tethered my phone and then koji worked as expected, which is why I
think it's something to do with the university wifi (proxy?) here.
However, I don't expect them to modify/correct their wifi setup for
this.

Any hints would be appreciated. 

-- 
Thanks, 
Warm regards,
Ankur: "FranciscoD"

Please only print if necessary. 

Looking to contribute to Fedora? Look here: https://fedoraproject.org/wiki/Fedora_Join_SIG

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux