sedat1988 - turn on debugging mode from within Kodi which will then display information at the top left of the screen. Monitor the memory and CPU usage before and after connecting via VPN manager. Does it spike immediately afterwards? Does the use of other add-ons have the same effect?
Try to replicate then shut down Kodi and post a log.
Just install this over 4.9.7 and delete the alternative APPEND.txt and TEMPLATE.txt you have, then reset the provider. At this point an attempt to connect should not work for you. There's a new option in the Advanced tab called "Potential DNS fix" that when you click it and follow the instructions, should do the right thing. If it doesn't, get me the APPEND.txt and the a debug log.
Hi Bud,
Just tested this and I get an error when trying to apply the fix.
The log states that it is trying to amend the "APPEND.txt" in the directory: "/userdata/addon_data/service.vpn.manager/PIA/" and it cant find a file.
My PIA folder sits one deeper in: /userdata/addon_data/service.vpn.manager/Downloads/PIA/ which could be the reason?
I created a "PIA" folder one level up and created a blank "APPEND.txt" file with 777 permissions and retried and it worked.
After that reset the VPN and tried a connection. BINGO!
The APPEND.txt now reads:
"dhcp-option DNSSEC allow-downgrade
dhcp-option DOMAIN-ROUTE .
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf"
and the ovpn files have been amended with this at the bottom.
So, your solution works a treat but I had to do a little hacking to get there. Did I go wrong somewhere?
Still getting the "Too few arguments" entries in the log but it works.
Content embedded from external sources will not be displayed without your consent.
Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.
Tested fully using your add-on and we appear to be golden! Thank you so much for all your guidance!
Just 2 things finally and then I'll leave you alone:
1. Notice the "Too few arguments." in the log. What is that? what am I missing?
2. With the VPN disconnected, my resolv.conf reads:
In a nutshell, using the arguments: "--script-security 2 --up /etc/openvpn/update-resolv-conf --down /etc/openvpn/update-resolv-conf" from the command line worked perfectly however dont work when I add them to the ovpn file.
I sense there is a way to get this to work if I create an up.bat and down.bat and use your toggle in the settings. However I am unsure how to create these .bat files so that your addon will run them correctly.
I feel that I am very close to paradise but just need a little of your expertise to get there
I will do as instructed and report back what PIA state.
Thanks again,
Christopher
P.s. your work on this addon is nothing short of Stellar!
Display More
Hi Zomboided,
I have carried out what you have asked. Not getting much of a reply from the PIA support staff but there is a fellow on the forums who seems very keen to help. Post is here: Link
I feel like Im getting closer but still no cigar. Any suggestions or should I just keep hacking?
Content embedded from external sources will not be displayed without your consent.
Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.
If I added:
Code
"dhcp-option DNS 8.8.8.8"
to the end of the OPVN file or TEMPLATE.txt, would that work? I've given up trying after approx 3 hours of trying to hack through this
Looks like it's working at designing. Something is screwing up the connection and it's reconnecting when it notices. This tiny extract of your log is just showing that your dodgy streaming add-on is causing problems. I'm not going to be debugging that for you.
Content embedded from external sources will not be displayed without your consent.
Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.
The log is showing that you can't connect to two of the three providers used to determine the external IP address. It also appears to have other messages in the log that suggest you've got some network issues that are preventing external connection, ie:
21:00:11.850 T:1516237568 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for ncsi.txt
You should look at your network and firewall settings and see if you can connect outside of the Kodi environment.
Hi Zomboided,
Thank you so much for replying so quickly 😍.
I am only semi techy however I thought the same. Weirdly on the disconnection cycle it displayed the location etc so it must be able to get outside when the vpn is disconnected. I can also download add-ons etc when disconnected from the VPN so yes I can definitely get to the internet when I disable your addon.
Could this be a PIA issue by blocking the location providers? It still works on my laptop however.
Content embedded from external sources will not be displayed without your consent.
Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.