madsbacha / routeros-vpn

Automatically setup Private Internet Access (PIA) WireGuard VPN on your MikroTik router, and auto-update ephemeral connection whenever needed.
MIT License
8 stars 3 forks source link

Script error #5

Closed xorinzor closed 2 months ago

xorinzor commented 2 months ago

I copied the script and edited the parameters, yet executing it results in this (I executed it 3 times sequentially to make sure there was no other log output from the script):

image

Opening one of them doesn't show any additional information: image

Running this on my RB3011UiAS, do you have any idea what could be the issue?

madsbacha commented 2 months ago

Which RouterOS version are you running?

xorinzor commented 2 months ago

7.15.3

madsbacha commented 2 months ago

That's weird, it works without errors on my RB5009 running RouterOS 7.15.3. What happens when you run the script from the terminal? Like /system/script/run vpn-pia-berlin-1; where vpn-pia-berlin-1 is the name of the script.

xorinzor commented 2 months ago

Ah, cool. Now it does show me the exact position in the code where the error occurs, that's what I was searching for.

Appears to be the pia-password that's problematic, despite me escaping the $ characters in my password. I suppose there's some other problematic characters in it. Will try changing the password to something else.

xorinzor commented 2 months ago

Works now, thanks!