Mailinglist Archive: opensuse-buildservice (140 mails)

< Previous Next >
[opensuse-buildservice] osc commond error

When I am fascinated with Open Build Service,I would like to setup my own
OBS just for fun.

I did the job following README.SETUP Guideline in obs-api rpm step by step
,And Now I can access my OBS very well.

But I think I did the ssl certificate job OK by the following commond
Generate an ssl certificate via following commands:

mkdir /srv/obs/certs
openssl genrsa -out /srv/obs/certs/server.key 1024
openssl req -new -key /srv/obs/certs/server.key \
-out /srv/obs/certs/server.csr
openssl x509 -req -days 365 -in /srv/obs/certs/server.csr \
-signkey /srv/obs/certs/server.key -out /srv/obs/certs/server.crt
cat /srv/obs/certs/server.key /srv/obs/certs/server.crt \
> /srv/obs/certs/server.pem

But I also got a problem, my osc commond didn't work.
This is error message :

Traceback (most recent call last):
File "/usr/bin/osc", line 22, in <module>
r =
File "/usr/lib/python2.7/site-packages/osc/", line 53, in run
return prg.main()
File "/usr/lib/python2.7/site-packages/osc/", line 310, in main
return self.cmd(args)
File "/usr/lib/python2.7/site-packages/osc/", line 333, in cmd
retval = self.onecmd(argv)
File "/usr/lib/python2.7/site-packages/osc/", line 449, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/python2.7/site-packages/osc/", line 1179, in
return handler(argv[0], opts, *args)
File "/usr/lib/python2.7/site-packages/osc/", line 375, in
for prj in meta_get_project_list(apiurl, opts.deleted):
File "/usr/lib/python2.7/site-packages/osc/", line 2940, in
f = http_GET(u)
File "/usr/lib/python2.7/site-packages/osc/", line 2853, in
def http_GET(*args, **kwargs): return http_request('GET', *args,
File "/usr/lib/python2.7/site-packages/osc/", line 2841, in
fd = urllib2.urlopen(req, data=data)
File "/usr/lib/python2.7/", line 126, in urlopen
return, data, timeout)
File "/usr/lib/python2.7/", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.7/", line 409, in _open
'_open', req)
File "/usr/lib/python2.7/", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/site-packages/osc/", line 209, in
h.request(req.get_method(), selector,, headers)
File "/usr/lib/python2.7/", line 946, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/", line 987, in _send_request
File "/usr/lib/python2.7/", line 940, in endheaders
File "/usr/lib/python2.7/", line 803, in _send_output
File "/usr/lib/python2.7/", line 755, in send
File "/usr/lib/python2.7/site-packages/osc/", line 244, in
File "/usr/lib/python2.7/site-packages/osc/", line 310, in
if tc.is_trusted(): # ok, same cert as the stored one
File "/usr/lib/python2.7/site-packages/osc/", line 48, in
cert = X509.load_cert(self.file)
File "/usr/lib/python2.7/site-packages/M2Crypto/", line 611, in
return load_cert_bio(bio)
File "/usr/lib/python2.7/site-packages/M2Crypto/", line 639, in
raise X509Error(Err.get_error())
M2Crypto.X509.X509Error: 3074913984:error:0906D06C:PEM
routines:PEM_read_bio:no start line:pem_lib.c:696:Expecting: CERTIFICATE

Did I missed something important? I have no idea about it .

Anybody can give me a hand ? So many many thanks to U

View this message in context:
Sent from the opensuse-buildservice mailing list archive at
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups