Bug #2041

Yum transaction aborted while installing nethserver-file-server group

Added by Davide Principi about 8 years ago. Updated about 8 years ago.

Status:CLOSEDStart date:07/16/2013
Priority:NormalDue date:07/16/2013
Assignee:-% Done:

100%

Category:nethserver-samba
Target version:v6.4-beta2
Security class: Resolution:
Affected version:v6.4-beta1 NEEDINFO:No

Description

In /var/log/messages:

Jul  3 09:36:06 mail pkgaction[2325]: Installing @nethserver-file-server
...
Jul  3 09:38:30 mail esmith::event[2858]: Processing event: nethserver-samba-update
...
Jul  3 09:38:34 mail esmith::event[2858]: Running event handler: /etc/e-smith/events/actions/adjust-services
Jul  3 09:38:34 mail esmith::event[2858]: adjusting service nmb (restart)#012
Jul  3 09:38:35 mail esmith::event[2858]: Shutting down NMB services: [FAILED]#015#012
Jul  3 09:38:35 mail esmith::event[2858]: Starting NMB services: [  OK  ]#015#012
Jul  3 09:38:35 mail esmith::event[2858]: adjusting service winbind (restart)#012
Jul  3 09:38:35 mail esmith::event[2858]: #012
Jul  3 09:38:35 mail esmith::event[2858]: Shutting down Winbind services: [FAILED]#015#012
Jul  3 09:38:35 mail esmith::event[2858]: Starting Winbind services: [  OK  ]#015#012
Jul  3 09:38:35 mail esmith::event[2858]: adjusting service smb (restart)#012
Jul  3 09:38:36 mail esmith::event[2858]: Shutting down SMB services: [  OK  ]#015#012
Jul  3 09:38:36 mail esmith::event[2858]: Starting SMB services: [  OK  ]#015#012
Jul  3 09:38:36 mail esmith::event[2858]: adjusting service httpd-admin (reload)#012
Jul  3 09:38:36 mail pkgaction[2325]: Error '[Errno 4] Interrupted system call'
Jul  3 09:38:37 mail httpd-admin: [NOTICE] NethServer\Module\PackageManager\StatusTracker: PackageManager process `PackageManager` exit code: 1

See also attached yum history info output.

yum-history-tx4.txt Magnifier (4 KB) Davide Principi, 07/03/2013 11:37 AM


Related issues

Related to NethServer 6 - Feature #1767: Base: new PackageManager UI module CLOSED 07/11/2013 07/12/2013
Related to NethServer 6 - Feature #1531: Base: package installation progress tracking and UI locking CLOSED 07/12/2013 07/15/2013

Associated revisions

Revision 2e8c8dec
Added by Davide Principi about 8 years ago

ProcessDetached (shellBackgroundInvocation): use setsid instead of nohup to fully detach the process. Refs #2041

Revision a676c03d
Added by Davide Principi about 8 years ago

nethserver-samba-update event: reload http-admin gracefully to avoid killing the running request. Refs #2041

History

#1 Updated by Davide Principi about 8 years ago

  • Due date set to 07/16/2013
  • Status changed from NEW to TRIAGED
  • Assignee set to Davide Principi
  • Start date set to 07/16/2013
  • % Done changed from 0 to 20
  • Estimated time set to 1.00

Test case

Start from scratch on a clean beta1:

  # rpm -qa | grep ^neth
nethserver-lib-1.1.1-1.ns6.noarch
nethserver-php-1.1.0-1.ns6.noarch
nethserver-ntp-1.0.2-1.ns6.noarch
nethserver-smartd-1.0.0-1.ns6.noarch
nethserver-yum-1.0.4-1.ns6.noarch
nethserver-nethgui-1.1.0-1.ns6.noarch
nethserver-base-1.2.2-1.ns6.noarch
nethserver-httpd-admin-1.0.4-1.ns6.noarch
nethserver-grub-1.0.1-1.ns6.noarch
nethserver-openssh-1.0.2-1.ns6.noarch
nethserver-release-6.4-beta1.noarch

During nethserver-file-server group installation from PackageManager UI module I got "[Errno 4] Interrupted system call".

Reloading httpd-admin causes pkgaction subprocess death. Probably the subprocess is not completely detached from the web server and continues to receive its signals.

Proposed solution: use setsid command to spawn the subprocess.

Bug confirmed.

#2 Updated by Davide Principi about 8 years ago

  • Project changed from NethServer 6 to Nethgui
  • Category set to 2

#3 Updated by Davide Principi about 8 years ago

  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#4 Updated by Davide Principi about 8 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 70

#5 Updated by Davide Principi about 8 years ago

  • Project changed from Nethgui to NethServer 6
  • Category deleted (2)
  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 80
In nethserver-testing repository:
  • nethserver-samba-1.3.6-1.ns6.noarch.rpm
  • nethserver-nethgui-1.2.1-1.ns6.noarch.rpm

#6 Updated by Giacomo Sanchietti about 8 years ago

  • Assignee set to Giacomo Sanchietti

#7 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 80 to 100

Updated nethserver-nethgui to version 1.2.1-1 and installer nethserver-file-server group from web ui.

Extract from /var/log/messages:

Jul 24 08:14:31 localhost httpd-admin: [NOTICE] NethServer\Module\PackageManager\StatusTracker: PackageManager process `PackageManager` exit code: 0

No error found:

[root@test ~]# grep "Interrupted system call" /var/log/messages
[root@test ~]# 

Marking VERIFIED

#8 Updated by Davide Principi about 8 years ago

  • Status changed from VERIFIED to CLOSED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 90 to 100

Moved to nethserver-updates repository

Also available in: Atom PDF