Project

General

Profile

Bug #617

update-refresh.sh in root cron error

Added by Anil Jangity almost 10 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
PKG (Image Packaging System)
Target version:
Start date:
2011-01-09
Due date:
2011-09-14
% Done:

100%

Estimated time:
1.00 h
Difficulty:
Bite-size
Tags:
pkg5

Description

This is from OI build 147.

Your "cron" job on vps5
/usr/lib/update-manager/update-refresh.sh

produced the following output:

/usr/lib/python2.6/vendor-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Not running within active session)
/usr/bin/pm-updatemanager:93: GtkWarning: file gtkicontheme.c: line 317: assertion `GDK_IS_SCREEN (screen)' failed
self.icon_theme = gtk.icon_theme_get_default()
Traceback (most recent call last):
File "/usr/bin/pm-updatemanager", line 408, in <module>
set_check_all, set_check_cache)
File "/usr/bin/pm-updatemanager", line 95, in init
self.icon_theme.append_search_path(pkg_icon_location)
AttributeError: 'NoneType' object has no attribute 'append_search_path'

This script is setup by default in the root's crontab. Sorry, no time to look through this script to see what is broken ... hope someone else has some cycles to do so. If this script is no longer needed, it should be removed from default install.

root@vps5:~# pkg publisher
PUBLISHER TYPE STATUS URI
openindiana.org (preferred) origin online http://pkg-1.fr.openindiana.org/dev/
opensolaris.org (non-sticky) origin online http://pkg.opensolaris.org/release/
root@vps5:~#

#1

Updated by Matt Wilby almost 10 years ago

  • Assignee set to Matt Wilby

This appears to work ok in oi_148.


root@vbox_oi148:~# sh -x /usr/lib/update-manager/update-refresh.sh
+ fmri=svc:/application/pkg/update
++ svcprop -p update/image_dir svc:/application/pkg/update
+ image_dir=/
++ crontab -l
++ grep update-refresh.sh
+ cronentry='30 0,9,12,18,21 * * * /usr/lib/update-manager/update-refresh.sh'
+ [[ 30 0,9,12,18,21 * * * /usr/lib/update-manager/update-refresh.sh == \3\0\ \0\,\9\,\1\2\,\1\8\,\2\1\ \*\ \*\ \*\ * ]]
++ svcprop -p update/lastrun svc:/application/pkg/update
+ lastrun=1295181001
++ /usr/bin/python -ESc 'import time; print int(time.time())'
+ now=1295372977
+ rolls=11
+ (( rolls > 34 ))
+ chance=24
+ roll=6
+ (( roll > 0 ))
+ exit 0

#2

Updated by Alex Sims over 9 years ago

  • Difficulty set to Medium
  • Tags set to needs-triage

The test sh -x /usr/lib/update-manager/update-refresh.sh is not valid. I see this every few days, is probably invoked randomly and then fails, see the rolls bit at the end.

#3

Updated by Ken Mays about 9 years ago

  • Due date set to 2011-09-14
  • Status changed from New to Resolved
  • Assignee changed from Matt Wilby to OI PKG
  • Target version set to oi_151_stable
  • % Done changed from 0 to 100
  • Estimated time set to 1.00 h
  • Difficulty changed from Medium to Bite-size
  • Tags changed from needs-triage to pkg5

Resolved issue per user notes (Matt Wilby). Moved under OI-PKG maintainer group.

Latest package: pkg:,5.11-0.151.1:20110910T085524Z

Also available in: Atom PDF