Hello,
Thanks for quick response.
Here is end of log of pkg depo:
::ffff:127.0.0.1 - - [29/Jun/2008:14:37:46] "POST
/add/0/1214743063_pkg:[EMAIL PROTECTED],5.11:20080629T143743Z/set
HTTP/1.1" 200 - "" ""
[29/Jun/2008:14:37:46] HTTP Traceback (most recent call last):
File "/usr/lib/python2.4/vendor-packages/cherrypy/_cprequest.py",
line 551, in respond
cherrypy.response.body = self.handler()
File "/usr/lib/python2.4/vendor-packages/cherrypy/_cpdispatch.py",
line 24, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/lib/python2.4/vendor-packages/pkg/server/repository.py",
line 408, in close_0
t.close()
File "/usr/lib/python2.4/vendor-packages/pkg/server/transaction.py",
line 164, in close
pkg_fmri, pkg_state = self.accept_publish()
File "/usr/lib/python2.4/vendor-packages/pkg/server/transaction.py",
line 296, in accept_publish
self.publish_package()
File "/usr/lib/python2.4/vendor-packages/pkg/server/transaction.py",
line 326, in publish_package
cfg.catalog.update_searchdb([os.path.join(
File "/usr/lib/python2.4/vendor-packages/pkg/catalog.py", line 482,
in update_searchdb
self.__update_searchdb_unlocked(fmri_list)
File "/usr/lib/python2.4/vendor-packages/pkg/catalog.py", line 463,
in __update_searchdb_unlocked
self.update_index(f, mfst.search_dict())
File "/usr/lib/python2.4/vendor-packages/pkg/manifest.py", line 261,
in search_dict
for k, v in a.generate_indices().iteritems():
File "/usr/lib/python2.4/vendor-packages/pkg/actions/depend.py",
line 118, in generate_indices
fmri = self.attrs["fmri"]
KeyError: 'fmri'
::ffff:127.0.0.1 - - [29/Jun/2008:14:37:46] "GET
/close/0/1214743063_pkg:[EMAIL PROTECTED],5.11:20080629T143743Z
HTTP/1.1" 500 805 "" ""
::ffff:127.0.0.1 - - [29/Jun/2008:14:37:59] "GET / HTTP/1.1" 200 1012 "" ""
::ffff:127.0.0.1 - - [29/Jun/2008:14:37:59] "GET /static/pkg.css
HTTP/1.1" 304 - "" ""
::ffff:127.0.0.1 - - [29/Jun/2008:14:38:00] "GET
/static/pkg-block-logo.png HTTP/1.1" 304 - "" ""
I don't understand it at all:
Here is output from web page generated by pkg depot ( http://localhost:9000/ ):
pkg server ok
Statistics
Number of packages: 0
Number of in-flight transactions: 6
Number of catalogs served: 0
Number of manifests served: 0
Number of files served: 0
Number of flists requested: 0
Number of files served by flist: 0
Number of packages renamed: 0
Looks like maybe there is problem that I have too many in-flight transactions.
I'm pretty sure that they are from same package SFExdelta.
Can I somehow close/rollback these transactions?
I had previously some errors in scripts, which I fixed until I got the
last one, which I didn't see problem.
For the quoting, I tried it with other quotes and it didn't helped.
I will modify pkgbuild to do it your way for future, but when I tried
single quota ' for other package (exactly same line)
it worked.
Thanks,
Petr
2008/6/29 Danek Duvall <[EMAIL PROTECTED]>:
> On Sun, Jun 29, 2008 at 02:49:55PM +0200, Petr Sobotka wrote:
>
>> Can you please let me know what is wrong with this script?
>> [ ... ]
>> pkgsend add set name=summary value='Opensource binary diff'
>
> I think this line is problematic. First, single quotes aren't recognized
> by the parser -- they'll have to be double quotes. Second, you need to
> make sure that the quotes make it past the shell -- right now, it'll strip
> them. So you probably need to say
>
> pkgsend [ ... ] value='"Opensource binary diff"'
>
> but I haven't actually tried that, so ymmv.
>
>> When I execute it I got this error:
>> $ /tmp/script.sh
>> Failed with 500
>>
>> Which is at least from my point of view totally useless error message.
>
> Yup, it could be more useful. Feel free to file a bug. But it indicates
> that the server's response to the close failed to send back any HTTP
> headers (a 500 HTTP code isn't necessarily what happened, but it's likely),
> so look at the server log for more information. There may be a bug there
> we want to fix as well.
>
> Danek
>
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss