Hello. I'm trying to map a network drive so that I'll be able to write a file in a custom folder. I've followed this guide and honestly I don't see any error message in my wrapper.log file.
The gateway runs as its own user and has its own environment. Drives mapped by a user logged into the gateway's desktop have no relation to the gateway's service environment. And, by default, the gateway runs as a system user that has no network privileges. Did you provide a user name and password in ignition.conf for the service to use to make that network connection?
Consider assigning a real user to the gateway's service (one that has network privileges) and then use UNC paths in your scripts.
Whatever you do won't take effect until you restart the gateway.
Let me emphasize: Mapping a drive on the gateway's desktop does NOTHING for the gateway's Ignition service.
I didn't provide any authentication data, so I suppose that's the issue, thank you: I thought the Ignition service would share the same environment of the logged in account which has the correct access privileges.
I'm afraid this will put me on a collision route with the IT guys, considering putting the network credentials as clear text inside of ignition.conf is not going to be appreciated. It would be nice to have some kind of encryption for the passwords written into this file, similarly to what Node-RED does with its credentials inside of settings.js (hashed using the bcrypt algorithm).
This is a common misconception. It isn't Ignition's doing--this is standard Windows behavior.
Which is why you should have the Ignition service run as a specific, credentialed, user. Then the password is placed in Window's registry instead of in clear text.
These would be one and the same. And if you use UNC paths, you also avoid the problem that occurs when a particular server is down at the time Ignition restarts--a missing mapped drive in ignition.conf would stay missing until another Ignition restart.