You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-07-15 12:43:36

WebGreg
Member
Registered: 2020-02-27
Posts: 771

[SOLVED] Deploy problem - Error 1606. Could not access network locatio

Hi

I tried with: https://raw.githubusercontent.com/glpi- … oyment.vbs After enter in cmd with administrator privileges:

cscript glpi-agent-deployment.vbs

in the windows event log I get the message: Product: GLPI Agent 1.10 -- Error 1606. Could not access network location 'C:\workfiles\GLPI\'. Anyone have an idea why? I do it on admin who has permissions to this directory. But from a script level, apparently not.

[SOLVED] The issue was in glpi-agent-deployment.vbs within SetupOptions. After removing the entry LOCAL=C:\workfiles\GLPI\, the installer works correctly again.

Last edited by WebGreg (2024-10-30 09:54:44)


--
GLPI 10.0.18
GLPI-Inventory 1.5.0
Ubuntu Server 20.04 LTS

Offline

#2 2024-07-15 16:50:12

cconard96
Moderator
Registered: 2018-07-31
Posts: 3,226
Website

Re: [SOLVED] Deploy problem - Error 1606. Could not access network locatio

Have you tried using an UNC path instead of a local one? The script mentions only HTTP and UNC paths.

\\localhost\C$\workfiles\GLPI


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2024-07-17 11:03:23

WebGreg
Member
Registered: 2020-02-27
Posts: 771

Re: [SOLVED] Deploy problem - Error 1606. Could not access network locatio

Hi @cconard96

It is not it. It worked for me before with this path. However, I tried your suggestion and no changes - it does not install.

I added the station to the domain and I no longer receive the "access denied" message. However, a message appears, the source of which is MsiInstaller: Completing Windows Installer Transaction: C:\Users\myuser\AppData\Local\Temp\2\. Client process ID: 3568.

Information, not an error - however, GLPI was not installed.


--
GLPI 10.0.18
GLPI-Inventory 1.5.0
Ubuntu Server 20.04 LTS

Offline

#4 2024-07-17 14:59:44

WebGreg
Member
Registered: 2020-02-27
Posts: 771

Re: [SOLVED] Deploy problem - Error 1606. Could not access network locatio

I do not know what's going on. I set:

SetupVersion = "1.7.1"

the agent is installing.
I change it to:

SetupVersion = "1.10"

stops installing.

On the server I have:
GLPI-Agent-1.7.1-x64.msi
GLPI-Agent-1.7.1-x86.msi
GLPI-Agent-1.10-x64.msi


--
GLPI 10.0.18
GLPI-Inventory 1.5.0
Ubuntu Server 20.04 LTS

Offline

#5 2024-09-04 19:18:31

WebGreg
Member
Registered: 2020-02-27
Posts: 771

Re: [SOLVED] Deploy problem - Error 1606. Could not access network locatio

I performed several more tests, modifying the code to find the cause. It looks strange...

SetupArchitecture = "Auto"
If LCase(SetupArchitecture) = "x86" Then
    Setup = "GLPI-Agent-" & SetupVersion & "-" & SetupArchitecture & ".msi"
End If
ShowMessage("If SetupArchitecture: _" & SetupArchitecture & "_ is equal _x64_")
If LCase(SetupArchitecture) = "x64" Then
    Setup = "GLPI-Agent-" & SetupVersion & "-" & SetupArchitecture & ".msi"
End If

result: If SetupArchitecture: _Auto_ is equal _x64_

   Case "auto"
      ' Auto detection of SetupArchitecture
      SetupArchitecture = strSystemArchitecture
      Setup = Replace(Setup, "Auto", SetupArchitecture, 1, 1, vbTextCompare)
      ShowMessage("Setup architecture detected: " & SetupArchitecture & " and setup: " & Setup & "correct?")

result: Setup architecture detected: x64 and setup: correct?


It looks as "Auto" was not changed to the system version, and as a result, the correct Setup variable was not created. Or am I wrong?

Last edited by WebGreg (2024-09-04 19:20:13)


--
GLPI 10.0.18
GLPI-Inventory 1.5.0
Ubuntu Server 20.04 LTS

Offline

#6 2024-10-26 22:29:14

WebGreg
Member
Registered: 2020-02-27
Posts: 771

Re: [SOLVED] Deploy problem - Error 1606. Could not access network locatio

Up.


I downloaded the latest script https://github.com/glpi-project/glpi-ag … oyment.vbs I ran it without any modification. Still not installing.


In the event viewer I found the entry: Product: GLPI Agent 1.11 -- Error 1606. Could not access network location 'C:\workfiles\GLPI\'.
I used this folder before, I don't know why it appears now if I have a pure vbs script without any reference to this directory. Maybe he's trying to uninstall the previous version from it and can't do it despite administrator privileges?

HKEY_LOCAL_MACHINE\SOFTWARE\GLPI-Agent    "local" here I have this path

But even when I changed the path here: Product: GLPI Agent 1.11 -- Error 1606. Could not access network location 'C:\temp'.

Windows 10.

Last edited by WebGreg (2024-10-27 00:14:16)


--
GLPI 10.0.18
GLPI-Inventory 1.5.0
Ubuntu Server 20.04 LTS

Offline

Board footer

Powered by FluxBB