User Tools

Site Tools


informatica:hp_z240mt_offstation_comprovacio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
informatica:hp_z240mt_offstation_comprovacio [2017/08/07 14:40]
miquel [Execució de ParaVision com a nmrsu]
informatica:hp_z240mt_offstation_comprovacio [2017/08/09 10:27] (current)
miquel [Patch per corbaNameService.default]
Line 880: Line 880:
  
 Així doncs, surto de la sessió de //sermnadmin// i obro una sessió com a //nmrsu//. Així doncs, surto de la sessió de //sermnadmin// i obro una sessió com a //nmrsu//.
 +
 +===== Init scripts de Bruker =====
 +
 +Alguns dels //init-scripts// de Bruker per gestionar automàticament alguns serveis necessaris pel ParaVision/TopSpin i/o el servidor de llicències no s'ajusten als estàndards actuals, i fan que el sistema mostri missatges d'avís i d'error, per exemple, quan s'instal·la i configura un paquet de software nou (cups en aquest cas),
 +
 +<file>
 +root@sermn115:/home/sermnadmin# apt-get install -t jessie-backports cups
 +Reading package lists... Done
 +...
 +Get:1 http://ftp.caliu.cat/debian/ jessie/main libcupsfilters1 amd64 1.0.61-5+deb8u3 [106 kB]
 +Fetched 106 kB in 0s (347 kB/s)         
 +Preconfiguring packages ...
 +...
 +Setting up cups-daemon (2.2.1-8~bpo8+1) ...
 +insserv: warning: script 'K00corbaNameService' missing LSB tags and overrides
 +insserv: warning: script 'bruker_lmgr' missing LSB tags and overrides
 +insserv: warning: script 'corbaNameService.default' missing LSB tags and overrides
 +insserv: There is a loop at service rc.local if started
 +insserv: There is a loop between service corbaNameService and mountnfs if started
 +insserv:  loop involving service mountnfs at depth 10
 +insserv:  loop involving service nfs-common at depth 9
 +...
 +insserv: Starting corbaNameService.default depends on rc.local and therefore on system facility `$all' which can not be true!
 +...
 +insserv: Max recursions depth 99 reached
 +insserv:  loop involving service saned at depth 2
 +insserv: There is a loop between service corbaNameService and mountall-bootclean if started
 +insserv: There is a loop between service corbaNameService and keyboard-setup if started
 +insserv:  loop involving service keyboard-setup at depth 3
 +insserv:  loop involving service mountkernfs at depth 1
 +insserv:  loop involving service corbaNameService at depth 1
 +insserv: There is a loop between service rc.local and mountdevsubfs if started
 +insserv:  loop involving service mountdevsubfs at depth 1
 +insserv: exiting now without changing boot order!
 +update-rc.d: error: insserv rejected the script header
 +dpkg: error processing package cups-daemon (--configure):
 + subprocess installed post-installation script returned error exit status 1
 +...
 +dpkg: dependency problems prevent configuration of cups-core-drivers:
 + cups-core-drivers depends on cups-daemon (>= 2.2.1-8~bpo8+1); however:
 +  Package cups-daemon is not configured yet.
 +...
 +Errors were encountered while processing:
 + cups-daemon
 + cups-core-drivers
 + cups
 + printer-driver-gutenprint
 +E: Sub-process /usr/bin/dpkg returned an error code (1)
 +</file>
 +
 +En aquests enllaços s'explica la causa de l'error i cóm resoldre'l,
 +  * [[https://unix.stackexchange.com/questions/289667/unable-to-install-anything-using-apt-get-because-of-insserv | unable to install anything using apt-get because of insserv]]
 +  * [[https://unix.stackexchange.com/questions/177819/how-can-i-fix-insserv-there-is-a-loop-between-service-mountnfs-and-nfs-common | How can I fix “insserv: There is a loop between service mountnfs and nfs-common if started” in Debian wheezy?]]
 +  * [[https://wiki.debian.org/LSBInitScripts | LSB Init Scripts]]
 +
 +Després d'afegir i configurar el bloc d'informació (LSB comment) als init-scripts //bruker_lmgr// i //corbaNameService.default//, provo a configurar els paquets pendents i aquest cop es configuren i només surt un missatge d'avís,
 +
 +<file>
 +root@sermn115:/etc/init.d# dpkg --configure --pending
 +Setting up cups-daemon (2.2.1-8~bpo8+1) ...
 +insserv: Script bruker_lmgr is broken: incomplete LSB comment.
 +insserv: missing `Required-Start:' entry: please add even if empty.
 +insserv: missing `Required-Stop:'  entry: please add even if empty.
 +insserv: missing `Default-Start:'  entry: please add even if empty.
 +insserv: missing `Default-Stop:'   entry: please add even if empty.
 +insserv: Default-Start undefined, assuming empty start runlevel(s) for script `bruker_lmgr'
 +insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `bruker_lmgr'
 +Setting up cups-core-drivers (2.2.1-8~bpo8+1) ...
 +Setting up cups (2.2.1-8~bpo8+1) ...
 +Updating PPD files for cups ...
 +Updating PPD files for cups-filters ...
 +Updating PPD files for gutenprint ...
 +Setting up printer-driver-gutenprint (5.2.10-3) ...
 +</file>
 +
 +Edito els init-scripts per afegir els LSB comment que manquen i evitar que donin cap missatge d'avís.
 +
 +==== Patch per bruker_lmgr ====
 +
 +Aquest és el patch generat amb la comanda ''diff -Naur <original_file> <modified_file>'' per actualitzar l'init-script //bruker_lmgr//:
 +
 +<file>
 +--- /home/sermnadmin/Documents/20170807-Original-Bruker-init-scripts/bruker_lmgr 2012-03-30 13:10:09.000000000 +0200
 ++++ bruker_lmgr 2017-08-08 12:58:46.341286448 +0200
 +@@ -21,6 +21,17 @@
 + # description: BRUKER FLEXlm license server.
 + #
 + 
 ++### BEGIN INIT INFO
 ++# Provides:           bruker_lmgr
 ++# Required-Start:
 ++# Required-Stop:
 ++# Default-Start:      2 3 4 5
 ++# Default-Stop:       0 1 6
 ++# Short-Description:  Start/Stop the Flexible License Manager ( Flexlm )
 ++# Description:        Start/Stop the Flexible License Manager ( Flexlm )
 ++### END INIT INFO
 ++
 ++
 + # lmgrd_alive returns 0 if lmgrd is alive otherwise anything else
 + lmgrd_alive()
 + {
 +</file>
 +
 +==== Patch per corbaNameService.default ====
 +
 +Aquest és el patch generat amb la comanda ''diff -Naur <original_file> <modified_file>'' per actualitzar l'init-script //corbaNameService.default//:
 +
 +<file>
 +--- /home/sermnadmin/Documents/20170807-Original-Bruker-init-scripts/corbaNameService.default 2017-08-04 12:41:11.000000000 +0200
 ++++ corbaNameService.default 2017-08-08 12:51:40.609300041 +0200
 +@@ -4,7 +4,18 @@
 + #
 + # $Id: corbaNameService.default,v 1.9.2.7 2010/01/18 17:52:02 mgoe Exp $
 + #
 +
 ++
 ++### BEGIN INIT INFO
 ++# Provides:           corbaNameService
 ++# Required-Start:
 ++# Required-Stop:
 ++# Default-Start:      2 3 4 5
 ++# Default-Stop:       0 1 6
 ++# Short-Description:  Start/stop CORBA name service
 ++# Description:        Start/stop CORBA name service
 ++### END INIT INFO
 ++
 ++
 + XWINNMRHOME=/opt/PV5.1
 + NMR_SU=nmrsu
 + INITIAL_PORT=12345
 +</file>
 +
 +===== Patch per ~paravision/prog/pvmacros/PvStartup =====
 +
 +Quan executo ParaVision surt un missatge d'error que fa referència al fitxer ///opt/PV5.1/prog/pvmacros/PvStartup//,
 +
 +<file>
 +sermnmri@sermn115:/opt/PV5.1$ ./pv
 +Available disk memory for ParaVision is 40Gbytes. The partition load is 59%
 +...
 +/opt/PV5.1/prog/pvmacros/PvStartup: 115: [: 1002: unexpected operator
 +</file>
 +
 +Comprovo que es tracta d'un problema de sintaxi (emprar "==" en comptes de "=") i el corregeixo,
 +
 +<file>
 +--- ./PvStartup.BKUP-20170809 2017-08-09 10:19:53.179024468 +0200
 ++++ ./PvStartup 2017-08-09 10:20:21.710655615 +0200
 +@@ -112,7 +112,7 @@
 + 
 + id=`cat $XWINNMRHOME/conf/nmrsuperuser`
 + nmrsu=`id -u $id`
 +-if [ `id -u` == $nmrsu ]
 ++if [ `id -u` = $nmrsu ]
 + then
 +     touch $XWINNMRHOME/.hasStarted
 + fi
 +</file>
 +
 +i el següent cop que executo ParaVision ja no apareix el missatge d'error.
  
informatica/hp_z240mt_offstation_comprovacio.1502109644.txt.gz · Last modified: 2017/08/07 14:40 by miquel