Hello, I've had a system (in the UK) trying to use onu to pull in bits from a US based system. On *first* reboot only the onu fails 100% of the time (onu run with -r -v -d)
At first blush is looks like a race between the repos starting up (specifically the one for the on-nightly) and when onu runs pkg -R / refresh --full (within the function configure_publishers()). Putting a sleep 10 prior to the pkg -R / refresh works around the issue. The errors reported during onu are: [27/Jul/2010:16:09:19] INDEX Updating search indexes [27/Jul/2010:16:09:20] INDEX Updating search indexes pkg: 2/3 catalogs successfully updated: Framework error: code: 7 reason: couldn't connect to host URL: 'http://localhost:13000/catalog/0/'. (happened 4 times) pkg -R / refresh --full failed: exit code 3 and this then goes off and kills the pkg.depotd servers (which gives rise to a python stack). Anyway full log attached. Note: the only repo configured post the reboot is the opensolaris.org pointing at http://ipkg.sfbay/dev. Anyone seen this and got a better work around ? I intend to log a bug tomorrow (and fix it in some manner). thanks pete
## edited out the rather long path to make it easier to read # /pete/onu -r -v -d `pwd` starting pkg.depotd -d <....>/repo.redist -p 13000 starting pkg.depotd -d <....>/repo.extra -p 13001 pkg -R / set-publisher --no-refresh --non-sticky opensolaris.org pkg -R / set-publisher -e --no-refresh -P -O http://localhost:13000/ on-nightly pkg -R / set-publisher -e --no-refresh -O http://localhost:13001/ on-extra pkg -R / refresh --full Refreshing catalog 2/3 opensolaris.org[27/Jul/2010:16:09:18] ENGINE Listening for SIGHUP. [27/Jul/2010:16:09:18] ENGINE Listening for SIGTERM. [27/Jul/2010:16:09:18] ENGINE Listening for SIGUSR1. [27/Jul/2010:16:09:18] ENGINE Bus STARTING [27/Jul/2010:16:09:18] ENGINE Started monitor thread '_TimeoutMonitor'. [27/Jul/2010:16:09:18] ENGINE Serving on 0.0.0.0:13000 [27/Jul/2010:16:09:18] ENGINE Bus STARTED [27/Jul/2010:16:09:18] ENGINE Listening for SIGHUP. [27/Jul/2010:16:09:18] ENGINE Listening for SIGTERM. [27/Jul/2010:16:09:18] ENGINE Listening for SIGUSR1. [27/Jul/2010:16:09:18] ENGINE Bus STARTING [27/Jul/2010:16:09:18] ENGINE Started monitor thread '_TimeoutMonitor'. [27/Jul/2010:16:09:18] ENGINE Serving on 0.0.0.0:13001 [27/Jul/2010:16:09:18] ENGINE Bus STARTED [27/Jul/2010:16:09:19] INDEX Updating search indexes [27/Jul/2010:16:09:20] INDEX Updating search indexes pkg: 2/3 catalogs successfully updated: Framework error: code: 7 reason: couldn't connect to host URL: 'http://localhost:13000/catalog/0/'. (happened 4 times) pkg -R / refresh --full failed: exit code 3 [27/Jul/2010:16:09:29] ENGINE Caught signal SIGTERM. [27/Jul/2010:16:09:29] ENGINE Bus STOPPING [27/Jul/2010:16:09:29] ENGINE Caught signal SIGTERM. [27/Jul/2010:16:09:29] ENGINE Bus STOPPING [27/Jul/2010:16:09:29] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 13000)) shut down [27/Jul/2010:16:09:29] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 13001)) shut down # [27/Jul/2010:16:09:29] ENGINE Stopped thread '_TimeoutMonitor'. [27/Jul/2010:16:09:29] ENGINE Bus STOPPED [27/Jul/2010:16:09:29] ENGINE Bus EXITING [27/Jul/2010:16:09:29] ENGINE Stopped thread '_TimeoutMonitor'. [27/Jul/2010:16:09:29] ENGINE Bus EXITED [27/Jul/2010:16:09:29] ENGINE Waiting for child threads to terminate... [27/Jul/2010:16:09:29] ENGINE Bus STOPPED [27/Jul/2010:16:09:29] ENGINE Bus EXITING [27/Jul/2010:16:09:29] ENGINE Bus EXITED [27/Jul/2010:16:09:29] ENGINE Waiting for child threads to terminate... Traceback (most recent call last): File "/usr/lib/pkg.depotd", line 751, in <module> writable_root=writable_root) File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 282, in __init__ self.__init_state(refresh_index=refresh_index) File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 844, in __init_state self.__refresh_index() File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 783, in __refresh_index self.run_update_index() File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 1385, in run_update_index self.__update_searchdb_unlocked(fmris_to_index) File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 1033, in __update_searchdb_unlocked index_inst.server_update_index(fmris) File "/usr/lib/python2.6/vendor-packages/pkg/indexer.py", line 750, in server_update_index IDX_INPUT_TYPE_FMRI, tmp_index_dir) File "/usr/lib/python2.6/vendor-packages/pkg/indexer.py", line 703, in _generic_update_index self.__close_sort_fh() File "/usr/lib/python2.6/vendor-packages/pkg/indexer.py", line 195, in __close_sort_fh tmp_fh = file(tmp_file_name, "rb", buffering=PKG_FILE_BUFSIZ) IOError: [Errno 2] No such file or directory: '/tmp/extra.101494/index/TMP/sort.0'
_______________________________________________ on-ips-dev mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/on-ips-dev
