Sorry posted the wrong one. I had tried running with pfexec and I have 
also posted the server output below when trying this operation:

JR

~/work/create_publish_ips$ pfexec pkg install TSTpython-pyopenssl
DOWNLOAD                                    PKGS       FILES     XFER (MB)
TSTpython-pyopenssl                          0/1        0/16     0.00/0.07
pkg: An unexpected error happened during install:
Traceback (most recent call last):
  File "/usr/bin/pkg", line 1798, in ?
    __ret = main_func()
  File "/usr/bin/pkg", line 1755, in main_func
    return install(mydir, pargs)
  File "/usr/bin/pkg", line 573, in install
    api_inst.prepare()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 358, 
in prepare
    self.img.imageplan.preexecute()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", 
line 579, in preexecute
    p.download()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 
241, in download
    flist.flush()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", line 
306, in flush
    self._do_get_files()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", line 
234, in _do_get_files
    fe = self._get_files()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", line 
342, in _get_files
    imgtype = self.image.type)
  File "/usr/lib/python2.4/vendor-packages/pkg/misc.py", line 135, in 
versioned_urlopen
    c = url_opener(req)
  File "/usr/lib/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib/python2.4/urllib2.py", line 402, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error


pkg: This is an internal error.  Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message.  The version of pkg(5) is 'c68ba094f48d+'.

~/work/create_publish_ips$


Output from the server:

/tmp/create_publish_ips$ /usr/lib/pkg.depotd -d /tmp/repo2 -p 9000
[25/Sep/2008:19:43:48] INDEX Search Available
[25/Sep/2008:19:43:48] ENGINE Listening for SIGHUP.
[25/Sep/2008:19:43:48] ENGINE Listening for SIGTERM.
[25/Sep/2008:19:43:48] ENGINE Listening for SIGUSR1.
[25/Sep/2008:19:43:48] ENGINE Bus STARTING
[25/Sep/2008:19:43:48] ENGINE Started monitor thread '_TimeoutMonitor'.
[25/Sep/2008:19:43:48] ENGINE Serving on 0.0.0.0:9000
[25/Sep/2008:19:43:48] ENGINE Bus STARTED
127.0.0.1 - - [25/Sep/2008:19:44:00] "GET /catalog/0 HTTP/1.1" 304 - "" 
"pkg/c68ba094f48d+ (sunos i86pc; 5.11 snv_95; full)"
127.0.0.1 - - [25/Sep/2008:19:44:17] "GET 
/manifest/0/[EMAIL PROTECTED],5.11-0.97:20080925T155641Z HTTP/1.1" 
200 4306 "" "pkg/c68ba094f48d+ (sunos i86pc; 5.11 snv_95; full)"
127.0.0.1 - - [25/Sep/2008:19:44:22] "POST /filelist/0 HTTP/1.1" 200 - 
"" "pkg/c68ba094f48d+ (sunos i86pc; 5.11 snv_95; full)"
[25/Sep/2008:19:44:22]  Traceback (most recent call last):
  File 
"/export/home/osol_0811/gate/proto/root_i386/usr/lib/python2.4/vendor-packages/cherrypy/_cpwsgi.py",
 
line 163, in next
  File "/usr/lib/python2.4/vendor-packages/pkg/server/repository.py", 
line 363, in filelist_0
    tar_stream.add(filepath, v, False)
  File "/usr/lib/python2.4/tarfile.py", line 1211, in add
    if self.name is not None \
  File "/usr/lib/python2.4/posixpath.py", line 403, in abspath
    path = join(os.getcwd(), path)
OSError: [Errno 2] No such file or directory





Brock Pytlik wrote:
> jmr wrote:
>> Brock - I'm using v3 of the api in the UpdateManager GUI and need to 
>> test it out for installs. I have applied your patch on the gate and a 
>> modified version of Michal's ProgressTracker webrev. When I build 
>> this and run it I am having problems installing packages from a test 
>> repo. This is my trace, any idea what's up?
>>
>> ~/work/ips_work/src$ pkg install TSTpython-cherrypy
>> Traceback (most recent call last):     File "/usr/bin/pkg", line 
>> 1798, in ?
>>     __ret = main_func()
>>   File "/usr/bin/pkg", line 1755, in main_func
>>     return install(mydir, pargs)
>>   File "/usr/bin/pkg", line 546, in install
>>     refresh_catalogs, noexecute):
>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 
>> 163, in plan_install
>>     self.img.history.operation_result = \
>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", 
>> line 196, in __setattr__
>>     if self.__save():
>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", 
>> line 405, in __save
>>     os.O_CREAT|os.O_EXCL|os.O_WRONLY), "w")
>> OSError: [Errno 13] Permission denied: 
>> '/var/pkg/history/20080925T160031Z-01.xml'
>>   
> As Bart suggested, I'd make sure you're running with enough privileges 
> or as the right user to modify that file.
>>
>> pkg: This is an internal error.  Please let the developers know about 
>> this
>> problem by filing a bug at http://defect.opensolaris.org and 
>> including the
>> above traceback and this message.  The version of pkg(5) is 
>> 'c68ba094f48d+'.
>> ~/work/ips_work/src$ pfexec pkg install TSTpython-cherrypy
>> DOWNLOAD                                    PKGS       FILES     XFER 
>> (MB)
>> TSTpython-cherrypy                           0/1        0/76     
>> 0.00/0.28
>> pkg: An unexpected error happened during install:
>> Traceback (most recent call last):
>>   File "/usr/bin/pkg", line 1798, in ?
>>     __ret = main_func()
>>   File "/usr/bin/pkg", line 1755, in main_func
>>     return install(mydir, pargs)
>>   File "/usr/bin/pkg", line 573, in install
>>     api_inst.prepare()
>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 
>> 358, in prepare
>>     self.img.imageplan.preexecute()
>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", 
>> line 579, in preexecute
>>     p.download()
>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", 
>> line 241, in download
>>     flist.flush()
>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", 
>> line 306, in flush
>>     self._do_get_files()
>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", 
>> line 234, in _do_get_files
>>     fe = self._get_files()
>>   File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", 
>> line 342, in _get_files
>>     imgtype = self.image.type)
>>   File "/usr/lib/python2.4/vendor-packages/pkg/misc.py", line 135, in 
>> versioned_urlopen
>>     c = url_opener(req)
>>   File "/usr/lib/python2.4/urllib2.py", line 364, in open
>>     response = meth(req, response)
>>   File "/usr/lib/python2.4/urllib2.py", line 471, in http_response
>>     response = self.parent.error(
>>   File "/usr/lib/python2.4/urllib2.py", line 402, in error
>>     return self._call_chain(*args)
>>   File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
>>     result = func(*args)
>>   File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default
>>     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
>> HTTPError: HTTP Error 500: Internal Server Error
>>   
> Not sure what happened here. Given the response, I'd expect a 
> traceback from the server. Is the server still running or did it die?
>
> The patch I submitted passes our test suite, so I'm reasonably 
> confident that the CLI works, in general, on the major operations, at 
> least for the basics. What I'm totally confused by is why the small 
> changes I made to the GUI would cause removal to break, but 
> installation and image-update to succeed.
>
> Thanks,
> Brock
>>
>> pkg: This is an internal error.  Please let the developers know about 
>> this
>> problem by filing a bug at http://defect.opensolaris.org and 
>> including the
>> above traceback and this message.  The version of pkg(5) is 
>> 'c68ba094f48d+'.
>>
>> ~/work/ips_work/src$
>>
>>
>> Brock Pytlik wrote:
>>  
>>> Another new version is out. For the CLI and backend it's essentially 
>>> unchanged. It introduces changes to the GUI code to help it not 
>>> break when the API is put back.
>>>
>>> http://cr.opensolaris.org/~bpytlik/ips-api-v3/
>>>
>>> John, Michal, could you please take a look at the changes to the GUI 
>>> code in general, and the changes to remove.py in particular. Somehow 
>>> my changes seem to make the GUI never realize it's done evaluating 
>>> the removal plan, and I'm lost as to why remove would be showing 
>>> this behavior when install and image-update work. From looking at 
>>> the truss output, it seems like it spends time reading files, then 
>>> finishes, and just spins, updating progress bar.
>>>
>>> Thanks,
>>> Brock
>>>
>>> Brock Pytlik wrote:
>>>    
>>>> New webrev reflecting the comments I've gotten so far, and 
>>>> resyncing with the gate to gather in the new changes.
>>>>
>>>> http://cr.opensolaris.org/~bpytlik/ips-api-v2/
>>>>
>>>> Thanks,
>>>> Brock
>>>>
>>>> Brock Pytlik wrote:
>>>>  
>>>>      
>>>>> Here's the link:
>>>>> http://cr.opensolaris.org/~bpytlik/ips-api-v1/
>>>>>
>>>>> I haven't done as much cleanup as I usually try to do, but since 
>>>>> I'm ooto tomorrow, I thought it would be better to get this out 
>>>>> now, rather than next Monday.
>>>>>
>>>>> Other things that I know need to be improved, but that I think can 
>>>>> wait for another round of revisions:
>>>>> API Exception organization
>>>>> More complete functionality
>>>>> Automated testing of cancellation (I hope to work with the GUI 
>>>>> team to test this by hand in the interim)
>>>>> Versioning of the Progress tracker (perhaps)
>>>>> More Documentation
>>>>> Figure out the future approach to testing we'll take
>>>>>
>>>>> Thanks,
>>>>> Brock
>>>>> _______________________________________________
>>>>> pkg-discuss mailing list
>>>>> [email protected]
>>>>> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
>>>>>               
>>>> _______________________________________________
>>>> pkg-discuss mailing list
>>>> [email protected]
>>>> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
>>>>         
>>
>> _______________________________________________
>> pkg-discuss mailing list
>> [email protected]
>> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
>>   
>

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to