[BUG REPORTED] Unable to fully uninstall OPSI-Client-agent 4.1.0.0-11

Antworten
dorian.borovina
Beiträge: 36
Registriert: 24 Aug 2017, 12:32

[BUG REPORTED] Unable to fully uninstall OPSI-Client-agent 4.1.0.0-11

Beitrag von dorian.borovina »

Hi all,

I've got an interesting problem, possible bug or something.
Never had a similar problem.

When I want to uninstall OPSI-Client-agent version 4.1.0.0-11 from the Windows 10 1803 machine this is what I get in the log.
Uninstall procedure started from OPSIConfiged.

Code: Alles auswählen

1] [Jul 27 10:34:25:826] --
(2)       [1] [Jul 27 10:34:25:826] --
(3)       [1] [Jul 27 10:34:25:826] c:\opsi.org\log\\opsi-script-part-Pi55Lm08.log
(4)       [1] [Jul 27 10:34:25:831] opsi-script 4.12.0.18 started at >>
(5)       [1] [Jul 27 10:34:25:831] opsi-script log file with encoding utf8
(6)       [1] [Jul 27 10:34:25:831] startmessage opsi-script created at CentralForm.FormCreate: 27.07.2018 10:34:23
(7)       [1] [Jul 27 10:34:25:831] Loading skin from: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winstskin
(8)       [1] [Jul 27 10:34:25:831] Called with parameter: /opsiservice\r\nhttps://IP:4447/rpc\r\n/clientid\r\ndevice01.domain.name\r\n/username\r\ndevice01.domain.namel\r\n/password\r\n***(confidential)***\r\n
(9)       [1] [Jul 27 10:34:25:838] Depot path from readconfig:  p:\ 27.07.2018 10:34:23
(10)      [1] [Jul 27 10:34:25:839] startmessage StartProgramModes and create log: 27.07.2018 10:34:23
(11)      [1] [Jul 27 10:34:25:839] pm: 5 27.07.2018 10:34:23
(12)      [1] [Jul 27 10:34:25:839] startmessage start opsi service connection: 27.07.2018 10:34:23
(13)      [1] [Jul 27 10:34:25:839] startmessage: opsidata initialized: 27.07.2018 10:34:23
(14)      [1] [Jul 27 10:34:25:839] device01.domain.name
(15)      [1] [Jul 27 10:34:25:839] got debug_lib: false
(16)      [1] [Jul 27 10:34:25:839] got debug_prog: false
(17)      [1] [Jul 27 10:34:25:839] got default_loglevel: 7
(18)      [1] [Jul 27 10:34:25:839] got config: opsi-script.global.force_min_loglevel
(19)      [1] [Jul 27 10:34:25:839] got force_min_loglevel: 0
(20)      [1] [Jul 27 10:34:25:839] readConfigFromService: ok
(21)      [1] [Jul 27 10:34:25:839] startmessage create log: 27.07.2018 10:34:25
(22)      [1] [Jul 27 10:34:25:839] force_min_loglevel: 0
(23)      [1] [Jul 27 10:34:25:839] default_loglevel: 7
(24)      [1] [Jul 27 10:34:25:839] debug_prog: false
(25)      [1] [Jul 27 10:34:25:839] debug_lib: false
(50)      [1] [Jul 27 10:34:28:845] [opsi-client-agent] Prog: force_min_loglevel: 0
(51)      [1] [Jul 27 10:34:28:845] [opsi-client-agent] Prog: default_loglevel: 7
(52)      [1] [Jul 27 10:34:28:845] [opsi-client-agent] Prog: debug_prog: False
(53)      [1] [Jul 27 10:34:28:845] [opsi-client-agent] Prog: debug_lib: False
(54)      [1] [Jul 27 10:34:28:845] [opsi-client-agent] Prog: ScriptErrorMessages: False
(55)      [1] [Jul 27 10:34:28:845] [opsi-client-agent] Prog: AutoActivityDisplay: False
(57)      [1] [Jul 27 10:34:28:889] [opsi-client-agent] 
(58)      [1] [Jul 27 10:34:28:889] [opsi-client-agent] ============ Version 4.12.0.18 script "p:\opsi-client-agent\files\opsi\uninst\uninstall.opsiscript"
(59)      [1] [Jul 27 10:34:28:889] [opsi-client-agent]              used script encoding: cp1252
(60)      [1] [Jul 27 10:34:28:889] [opsi-client-agent]              used system encoding: cp1252
(61)      [1] [Jul 27 10:34:28:889] [opsi-client-agent]              start: 2018-07-27  10:34:28 
(62)      [1] [Jul 27 10:34:28:890] [opsi-client-agent]              installing product: opsi-client-agent_4.1.0.0-11
(63)      [1] [Jul 27 10:34:28:890] [opsi-client-agent]              on client named    "device01.domain.name"
(64)      [1] [Jul 27 10:34:28:891] [opsi-client-agent]              loggedin user    "localadmin"
(65)      [1] [Jul 27 10:34:28:891] [opsi-client-agent]              opsi-script running as    "SYSTEM"
(66)      [1] [Jul 27 10:34:28:891] [opsi-client-agent]              opsi-script running with admin privileges
(67)      [1] [Jul 27 10:34:28:891] [opsi-client-agent]              opsi-script running in standard script mode
(68)      [1] [Jul 27 10:34:28:891] [opsi-client-agent] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
(69)      [1] [Jul 27 10:34:28:891] [opsi-client-agent] system infos:
(70)      [1] [Jul 27 10:34:28:900] [opsi-client-agent] 14-4F-8A-XX-XX-XX  -  PC hardware address
(71)      [1] [Jul 27 10:34:28:900] [opsi-client-agent] device01  -  IP name 
(72)      [1] [Jul 27 10:34:28:900] [opsi-client-agent] 172.16.X.X  -  IP address
(73)      [1] [Jul 27 10:34:28:900] [opsi-client-agent] DEU  -  System default locale 
(79)      [1] [Jul 27 10:34:28:900] [opsi-client-agent] MS Windows 10.0 64 Bit, Release: 1803, Edition: PRODUCT_PROFESSIONAL
(80)      [1] [Jul 27 10:34:28:900] [opsi-client-agent] opsi service version : 4
(81)      [1] [Jul 27 10:34:28:900] [opsi-client-agent] 
(125)     [5] [Jul 27 10:34:29:183] [opsi-client-agent] comment: read on_shutdown settings
(197)     [5] [Jul 27 10:34:29:198] [opsi-client-agent]     comment: ($Modus$ = SRV_OFF) or ($Modus$ = DEINSTALL)
(198)     [5] [Jul 27 10:34:29:198] [opsi-client-agent]     comment: get configuration data
(215)     [5] [Jul 27 10:34:29:201] [opsi-client-agent]     comment: configure on_shutdown
(223)     [5] [Jul 27 10:34:29:204] [opsi-client-agent]       comment: no opsi shutdown script entry found - nothing to remove
(243)     [5] [Jul 27 10:34:29:208] [opsi-client-agent]         message opsi-client-agent deinstallation
(250)     [5] [Jul 27 10:34:29:269] [opsi-client-agent]         Execution of: DosInAnIcon_StopService 
(269)     [5] [Jul 27 10:34:39:586] [opsi-client-agent]           Execution of: DosInAnIcon_opsiclientd_unregister_service 
(285)     [5] [Jul 27 10:34:40:421] [opsi-client-agent]           Execution of: Registry_vista_del_loginblocker /Sysnative
(286)     [5] [Jul 27 10:34:40:421] [opsi-client-agent]           
(309)     [5] [Jul 27 10:34:40:428] [opsi-client-agent]           Execution of: DosInAnIcon_close_firewall_for_control_server_nt6 
(343)     [5] [Jul 27 10:34:41:579] [opsi-client-agent]         Execution of: Files_delete_opsiloginblocker /Sysnative
(344)     [5] [Jul 27 10:34:41:579] [opsi-client-agent]         
(350)     [5] [Jul 27 10:34:41:581] [opsi-client-agent]         comment: create batch and runonce entry to delete all the running stuff after reboot
(351)     [5] [Jul 27 10:34:41:583] [opsi-client-agent]         Execution of: Registry_del_via_runonce /Sysnative
(352)     [5] [Jul 27 10:34:41:583] [opsi-client-agent]         
(358)     [5] [Jul 27 10:34:41:586] [opsi-client-agent]         Execution of: DosInAnIcon_del_via_runonce 
(383)     [5] [Jul 27 10:34:41:815] [opsi-client-agent]           Execution of: Registry_del_opsi_org /32bit
(384)     [5] [Jul 27 10:34:41:815] [opsi-client-agent]           
(419)     [5] [Jul 27 10:34:41:823] [opsi-client-agent]           Execution of: Registry_del_uninstall /32bit
(420)     [5] [Jul 27 10:34:41:823] [opsi-client-agent]           
(433)     [5] [Jul 27 10:34:41:907] [opsi-client-agent]           Execution of: DosInAnIcon_kill_notifier 
(450)     [5] [Jul 27 10:34:42:329] [opsi-client-agent]           Execution of: Files_Delete_OpsiFiles 
(451)     [5] [Jul 27 10:34:42:329] [opsi-client-agent]           
(479)     [4] [Jul 27 10:34:42:338] [opsi-client-agent]                   Warning: The file could not be deleted
(493)     [4] [Jul 27 10:34:42:341] [opsi-client-agent]                   Warning: The file could not be deleted
(495)     [4] [Jul 27 10:34:42:341] [opsi-client-agent]                   Warning: The file could not be deleted
(507)     [4] [Jul 27 10:34:42:345] [opsi-client-agent]                   Warning: The file could not be deleted
(515)     [4] [Jul 27 10:34:42:347] [opsi-client-agent]                   Warning: The file could not be deleted
(529)     [4] [Jul 27 10:34:42:350] [opsi-client-agent]                   Warning: The file could not be deleted
(533)     [4] [Jul 27 10:34:42:350] [opsi-client-agent]                   Warning: The file could not be deleted
(537)     [4] [Jul 27 10:34:42:352] [opsi-client-agent]                   Warning: The file could not be deleted
(541)     [4] [Jul 27 10:34:42:352] [opsi-client-agent]                   Warning: The file could not be deleted
(543)     [4] [Jul 27 10:34:42:352] [opsi-client-agent]                   Warning: The file could not be deleted
(545)     [4] [Jul 27 10:34:42:352] [opsi-client-agent]                   Warning: The file could not be deleted
(547)     [4] [Jul 27 10:34:42:352] [opsi-client-agent]                   Warning: The file could not be deleted
(549)     [4] [Jul 27 10:34:42:353] [opsi-client-agent]                   Warning: The file could not be deleted
(551)     [4] [Jul 27 10:34:42:353] [opsi-client-agent]                   Warning: The file could not be deleted
(553)     [4] [Jul 27 10:34:42:353] [opsi-client-agent]                   Warning: The file could not be deleted
(555)     [4] [Jul 27 10:34:42:353] [opsi-client-agent]                   Warning: The file could not be deleted
(557)     [4] [Jul 27 10:34:42:354] [opsi-client-agent]                   Warning: The file could not be deleted
(561)     [4] [Jul 27 10:34:42:355] [opsi-client-agent]                   Warning: The file could not be deleted
(565)     [4] [Jul 27 10:34:42:355] [opsi-client-agent]                   Warning: The file could not be deleted
(569)     [4] [Jul 27 10:34:42:357] [opsi-client-agent]                   Warning: The file could not be deleted
(573)     [4] [Jul 27 10:34:42:357] [opsi-client-agent]                   Warning: The file could not be deleted
(575)     [4] [Jul 27 10:34:42:357] [opsi-client-agent]                   Warning: The file could not be deleted
(579)     [4] [Jul 27 10:34:42:358] [opsi-client-agent]                   Warning: The file could not be deleted
(583)     [4] [Jul 27 10:34:42:358] [opsi-client-agent]                   Warning: The file could not be deleted
(585)     [4] [Jul 27 10:34:42:358] [opsi-client-agent]                   Warning: The file could not be deleted
(588)     [4] [Jul 27 10:34:42:360] [opsi-client-agent]                 Warning: "Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\lib" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
(749)     [4] [Jul 27 10:34:42:391] [opsi-client-agent]                   Warning: The file could not be deleted
(757)     [4] [Jul 27 10:34:42:391] [opsi-client-agent]                   Warning: The file could not be deleted
(759)     [4] [Jul 27 10:34:42:391] [opsi-client-agent]                   Warning: The file could not be deleted
(761)     [4] [Jul 27 10:34:42:391] [opsi-client-agent]                   Warning: The file could not be deleted
(762)     [4] [Jul 27 10:34:42:391] [opsi-client-agent]                 Warning: "Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
(1043)    [4] [Jul 27 10:34:42:434] [opsi-client-agent]                   Warning: The file could not be deleted
(1046)    [4] [Jul 27 10:34:42:444] [opsi-client-agent]                 Warning: "Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientdguard" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
(1144)    [4] [Jul 27 10:34:42:470] [opsi-client-agent]                 Warning: The file could not be deleted
(1156)    [4] [Jul 27 10:34:42:472] [opsi-client-agent]                 Warning: The file could not be deleted
(1157)    [4] [Jul 27 10:34:42:472] [opsi-client-agent]               Warning: "Directory C:\Program Files (x86)\opsi.org\opsi-client-agent" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
(1216)    [4] [Jul 27 10:34:42:517] [opsi-client-agent]                 Warning: "Directory C:\opsi.org\log" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
(1267)    [4] [Jul 27 10:34:42:528] [opsi-client-agent]               Warning: "Directory C:\opsi.org" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
(1272)    [5] [Jul 27 10:34:42:535] [opsi-client-agent]           Execution of: Registry_DeleteOpsiclientd 
(1273)    [5] [Jul 27 10:34:42:535] [opsi-client-agent]           
(1284)    [1] [Jul 27 10:34:42:540] [opsi-client-agent] ___________________
(1285)    [1] [Jul 27 10:34:42:540] [opsi-client-agent] script finished: success
(1286)    [1] [Jul 27 10:34:42:540] [opsi-client-agent] 0 errors
(1287)    [1] [Jul 27 10:34:42:540] [opsi-client-agent] 38 warnings
(1288)    [1] [Jul 27 10:34:42:540] [opsi-client-agent] 
(1289)    [1] [Jul 27 10:34:42:540] [opsi-client-agent] installed product: opsi-client-agent Version: 4.1.0.0-11
(1290)    [1] [Jul 27 10:34:42:540] [opsi-client-agent] 
(1301)    [5] [Jul 27 10:34:42:760] -------- submitted part of log file ends here, see the rest of log file on client ----------
Hmmmm, so I went on machine to see what's going on, and what are the leftovers.

C:\opsi.org\log\opsiclientdguard.txt
C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientguard\opsiclientguard.exe
C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientguard\opsiclientguard.txt

Let's try to manually delete them. :)
Doesn't work because the opsiclientguard service is still running?!
Went to the services, and there it is...still running.
Manually disabled, and now I'm able do remove those folders.

Reboot.
Service is still there.
Let's remove it manually,
Privileged cmd => sc delete opsiclientdguard
Tested on another machine, same problem.
Manually reinstalled the OPSI-Client-agent from the service_setup.cmd.
Installation went through, no issues whatsoever.
OPSI-Client-agent is working and listening for my commands. :)
Trying to removed it from the OPSIConfiged, procedure starts, and I get the same exact output in the log.

Any hints?

Best regards,
Dorian Borovina

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

UPDATE:

I have update the Config and Depot servers from Debian 8 Jessie to Debian 9 Stretch

Updated the OPSI Server and all the neccessary packages.

PRE-UPDATE

Code: Alles auswählen

root@OPSI-Master:/home/opsiuser# dpkg -l | grep opsi
ii  opsi-atftpd                          0.7.dfsg-7                         amd64        advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                        4.0.7.6.34-2                       all          OPSI config editor
ii  opsi-depotserver                     4.0.7.3-3                          all          opsi depotserver configuration package
ii  opsi-linux-bootimage                 20170720-1                         amd64        opsi bootimage for netboot tasks.
ii  opsi-utils                           4.0.7.18-7                         all          utilites for working with opsi.
ii  opsiconfd                            4.0.7.14-2                         all          opsi configuration service
ii  opsipxeconfd                         4.0.7.9-2                          all          opsi pxe configuration daemon
ii  python-opsi                          4.0.7.57-1                         all          opsi python library

POST-UPDATE

Code: Alles auswählen

root@OPSI-Master:/home/opsiuser# dpkg -l | grep opsi
ii  opsi-atftpd                      0.7.dfsg-7                     amd64        advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                    4.0.7.6.34-2                   all          OPSI config editor
ii  opsi-depotserver                 4.1.0.0-3                      all          transitional package
ii  opsi-linux-bootimage             20180208-1                     amd64        opsi bootimage for netboot tasks.
ii  opsi-server                      4.1.1.4-10                     all          opsi server configuration package
ii  opsi-utils                       4.1.1.19-2                     all          utilites for working with opsi.
ii  opsiconfd                        4.1.1.10-7                     all          opsi configuration service
ii  opsipxeconfd                     4.1.1.9-1                      all          opsi pxe configuration daemon
ii  python-opsi                      4.1.1.40-1                     all          opsi python library
Updated the packages with opsi-package-updater, reinstalled the OPSI Client agent few more times.

Problem still persists.
Zuletzt geändert von dorian.borovina am 31 Jul 2018, 09:25, insgesamt 1-mal geändert.
Best regards,
Dorian Borovina
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Unable to fully uninstall OPSI-Client-agent 4.1.0.0-11

Beitrag von uncle_scrooge »

There is a bug filed in the german part of the forum.
viewtopic.php?f=6&t=10437
Let's wait....and see.
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Unable to fully uninstall OPSI-Client-agent 4.1.0.0-11

Beitrag von d.oertel »

Hi,

thank you for the hint.
I have filed an internal bug ticket and will fix this issue soon.

cheers

d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
dorian.borovina
Beiträge: 36
Registriert: 24 Aug 2017, 12:32

Re: Unable to fully uninstall OPSI-Client-agent 4.1.0.0-11

Beitrag von dorian.borovina »

uncle_scrooge hat geschrieben:There is a bug filed in the german part of the forum.
viewtopic.php?f=6&t=10437
Let's wait....and see.
Thank you! @uncle_scrooge! :)
d.oertel hat geschrieben:Hi,

thank you for the hint.
I have filed an internal bug ticket and will fix this issue soon.

cheers

d.oertel
Thank you! @d.oertel! :)
Best regards,
Dorian Borovina
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: [BUG REPORTED] Unable to fully uninstall OPSI-Client-agent 4.1.0.0-11

Beitrag von d.oertel »

opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
Antworten