[Nut-upsuser] Shutdown problem with Geek Squad GS1285U

Peter Selinger selinger at mathstat.dal.ca
Mon Feb 19 16:14:08 CET 2007


Hi Gary,

I am no good at reading kernel logs; these are Greek to me. 

The normal sequence is that upsd, upsmon, and the driver are all
stopped. Then 'upsdrvctl shutdown' is called as a standalone program
at the very end to turn off the power. (Neither a daemon nor a monitor
are required at that time).

There could be several reasons this fails. 

* perhaps your binaries are in /usr/local/bin, and your /usr/local
  partition has already been unmounted. In this case, you need to put
  the binaries in the root partition somewhere (/usr/bin or /bin). 

* perhaps your USB filesystem is in /proc/bus/usb, and /proc/bus/usb
  has already been unmounted prior to shutdown. In this case,
  newhidups will be unable to talk to your UPS. You would need to
  mount it again before calling upsdrvctl: 
  mount -t usbfs usbfs /proc/bus/usb

For testing purposes, you can replace the call to "upsdrvctl shutdown"
by a call to "/bin/sh", which will drop you to a shell at the right
moment in the shutdown sequence. You can then experiment and see what
you need to call to shutdown the system.

-- Peter

Gary Redden wrote:
> 
> I have attached a section of my syslog. It seems to say that newhidups 
> had a problem on the shutdown part of a restart. But before that upsd is 
> still running after newhidups has exited. This might be causing the 
> paging error. My script tries to shut down upsd before it runs upsdrvctl 
> stop. Am I reading this correctly? This happens when I test the shutdown 
> also and may bypass some of the code in the scripts because the error.
> Also, Peter the scripts in rc0.d are handled different than the others. 
> The Knn.. scripts are called with stop and then the Snn.. scripts are 
> called with stop (not start as in the other rcn.d directories). The halt 
> script had code that should shutdown the ups. There is a bug in there 
> somewhere that I have not found. The scripts came from the package for 
> nut-2.0.4 on Ubuntu 6.10. I had to change the paths to the 2.0.5 
> executiables and conf files.  I need to find who created the scripts.
> 
> 
> Feb 18 14:57:47 ubuntu-desk-610 gconfd (root-4754): GConf server is not in use, shutting down.
> Feb 18 14:57:47 ubuntu-desk-610 gconfd (root-4754): Exiting
> Feb 18 14:57:51 ubuntu-desk-610 gconfd (gary-4596): Exiting
> Feb 18 14:57:51 ubuntu-desk-610 gdm[3774]: Restarting computer...
> Feb 18 14:57:53 ubuntu-desk-610 init: tty1 process (3542) killed by signal 15
> Feb 18 14:57:53 ubuntu-desk-610 init: tty2 process (3543) killed by signal 15
> Feb 18 14:57:53 ubuntu-desk-610 init: tty3 process (3544) killed by signal 15
> Feb 18 14:57:53 ubuntu-desk-610 init: tty4 process (3545) killed by signal 15
> Feb 18 14:57:53 ubuntu-desk-610 init: tty5 process (3546) killed by signal 15
> Feb 18 14:57:53 ubuntu-desk-610 init: tty6 process (3547) killed by signal 15
> Feb 18 14:57:57 ubuntu-desk-610 hcid[4403]: Got disconnected from the system message bus
> Feb 18 14:57:57 ubuntu-desk-610 newhidups[4318]: Signal 15: exiting
> Feb 18 14:57:57 ubuntu-desk-610 upsd[4320]: UPS [GeekSquad1] disconnected - check driver
> Feb 18 14:57:57 ubuntu-desk-610 upsd[4320]: Can't connect to UPS [GeekSquad1] (GeekSquad1): Connection refused
> Feb 18 14:57:57 ubuntu-desk-610 upsd[4320]: Data for UPS [GeekSquad1] is stale - check driver
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784748] BUG: unable to handle kernel paging request at virtual address 76697264
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784767]  printing eip:
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784772] c01abb38
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784777] *pde = 00000000
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784784] Oops: 0000 [#1]
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784789] SMP 
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784795] Modules linked in: binfmt_misc rfcomm l2cap bluetooth apm speedstep_lib cpufreq_userspace cpufreq_stats freq_table cpufreq_powersave cpufreq_ondemand cpufreq_conservative af_packet lp stv680 compat_ioctl32 ipv6 videodev usbhid tsdev snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_seq_dummy snd_seq_oss parport_pc snd_seq_midi snd_seq_midi_event snd_seq parport evdev floppy serio_raw snd_emu10k1 snd_rawmidi snd_ac97_codec snd_ac97_bus psmouse snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_device snd_timer snd_page_alloc snd_util_mem snd_hwdep pcspkr emu10k1_gp gameport snd intel_agp soundcore i2c_piix4 agpgart r8169 shpchp pci_hotplug i2c_core ext3 jbd uhci_hcd usbcore ide_generic ide_cd cdrom ide_disk piix generic processor fbcon tileblit font bitblit softcursor vesafb capability commoncap
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784919] CPU:    0
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784922] EIP:    0060:[sysfs_hash_and_remove+88/256]    Not tainted VLI
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784926] EFLAGS: 00010246   (2.6.17-10-generic #2) 
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784945] EIP is at sysfs_hash_and_remove+0x58/0x100
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784955] eax: 76697264   ebx: d2bc34e0   ecx: d3486d40   edx: 00000020
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784965] esi: 76697264   edi: d76c0690   ebp: d2bc34dc   esp: d2a2bf1c
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784973] ds: 007b   es: 007b   ss: 0068
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784982] Process newhidups (pid: 4318, threadinfo=d2a2a000 task=d7739050)
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.784988] Stack: d76c0690 c3d55e7c c3d3bf64 d76c068c d76c0614 d88ba108 d88b98dc c0245dff 
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785009]        d76c0614 d76c0614 d128fde0 c02460ec d76c0600 d889abc7 d75a4800 00000000 
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785029]        d88a505a d128fde0 00000000 d75a4800 d3bf994c d88a7f5a 00000008 d7673500 
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785048] Call Trace:
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785070]  <c0245dff> __device_release_driver+0x2f/0xa0  <c02460ec> device_release_driver+0x1c/0x30
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785105]  <d889abc7> usb_driver_release_interface+0x77/0x80 [usbcore]  <d88a505a> releaseintf+0x9a/0xa0 [usbcore]
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785242]  <d88a7f5a> usbdev_release+0x9a/0x9f [usbcore]  <c016b95b> __fput+0x9b/0x1a0
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785317]  <c0168b27> filp_close+0x47/0x80  <c016a216> sys_close+0x56/0xa0
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785342]  <c0102fbb> sysenter_past_esp+0x54/0x79 
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785382] Code: 83 ed 04 8b 45 04 0f 18 00 90 83 c6 0c 8d 5d 04 39 de 89 74 24 08 74 3d 8b 4d 14 85 c9 74 20 89 e8 e8 5d ff ff ff 8b 3c 24 89 c6 <ac> ae 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 85 c0 74 34 8b 
> Feb 18 14:57:57 ubuntu-desk-610 kernel: [ 1504.785465] EIP: [sysfs_hash_and_remove+88/256] sysfs_hash_and_remove+0x58/0x100 SS:ESP 0068:d2a2bf1c
> Feb 18 14:57:59 ubuntu-desk-610 exiting on signal 15
> Feb 18 14:59:33 ubuntu-desk-610 syslogd 1.4.1#18ubuntu6: restart.



More information about the Nut-upsuser mailing list