-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with VPNUser data in 'wrong' format. #51
Comments
Hi, Can you run it with |
Hi @bb-Ricardo, I'm using your docker-compose file to run fritzinfluxdb (and influxdb and grafana). I'm not aware how I would pass a parameter to a command inside a docker container from docker compose. Is there an environment varialbe I can use ot increase the verbosity? That also said, I just realized: I'm using neither |
After some more thinking: I patched the included Dockerfile to add "-v" to the CMD, built a new containers, and switched over the compose file to use the new container. Now I truly am using First, I'm seeing this line:
So it seems to be picking up my internet connection successfully. This got me thinking about the original error: Does On the other hand, the original error message is now gone. When I search for
I'm only seeing the original error message in relation to VPN connections now:
EDIT: I removed the "-v" on my patched docker container and am now back to the original error message. I'm confused. |
Hi @deltaphi, docker tag have to investigate a bit more: {
"pid": "shareVpn",
"hide": {
"faxSet": true,
"shareUsb": true,
"ssoSet": true,
"liveTv": true
},
"time": [],
"data": {
"vpnInfo": {
"userConnections": [],
"type": "IPSec Xauth PSK",
"help": {
"url": "https://www.avm.de/service/vpn",
"text": "www.avm.de/service/vpn"
},
"boxConnections": [],
"server": "REDACTED.myfritz.net"
}
},
"sid": "REDACTED"
} This is what my FritzBox returns: {
"pid": "shareVpn",
"hide": {
"shareUsb": true,
"liveTv": true,
"dectRdio": true,
"rss": true,
"ssoSet": true,
"dectMail": true,
"provServ": true,
"mobile": true,
"liveImg": true
},
"time": [],
"data": {
"vpnInfo": {
"userConnections": {
"connection1": {
"psk": "XXX",
"connected": false,
"deletable": true,
"active": true,
"address": "",
"virtualAddress": "XXX",
"userId": "XXX",
"name": "XXX"
},
"connection0": {
"psk": "",
"connected": false,
"deletable": true,
"active": true,
"address": "",
"virtualAddress": "XXX",
"userId": "",
"name": "XXX"
}
},
"type": "IPSec Xauth PSK",
"help": {
"url": "https://www.avm.de/service/vpn",
"text": "www.avm.de/service/vpn"
},
"boxConnections": [],
"server": "XXX.myfritz.net"
}
},
"sid": "XXX"
} Where Can you (for testing purposes) add a vpn connection and run it again? try to add this to your docker compose service. command:
- python
- /app/fritzinfluxdb.py
- -v |
I actually had a VPN connection set up ages ago on a different box - probably before the times when Fritz!Boxes has actual user management. I have not used it in years and it does not show up in the UI - but I have carried over the configuration (export/import) through several boxes. So maybe this is the cause of this strange VPN entry? I will have to try setting up a new VPN connection over the weekend. Fritz security requires me to dial on an attached phone, which I unfortunately won't be able to dig out tonight. |
Ahh, that is indeed interesting. Maybe it is caused by an old config. I will try to add a fix, tonight. I mean that can always happen to other users as well. |
And when FritzBox request an physical approval I was always able to just press any button on the FritzBox. |
Hey, I just pushed a new commit to Thank you |
With the latest changes I'm now seeing the following:
So from the logs, it would appear that despite the error messages, the lingering VPN connection is picked up. I am unsure whether this solves my initial issue (no data available) - I might now be facing some kind of spurious error with connecting Grafana and InfluxDB and am looking into that. |
Continuing the other error in #54. |
Strange that the error is still there. Was sure it is fixed in next-release. |
The docker images are not updated. You have to do a docker build yourself if you need an image with the latest code |
I did rebuild the docker image, also adding the "-v" flag - which is what gave the above log entries. |
Hi, I just pushed another change to |
Hi @bb-Ricardo, |
I'm using a Fritz!Box 7520 with Fritz!OS 7.29. I've tried with fritzinfluxdb master and next-release (as of the time of writing), both show the same error.
Fritzinfluxdb can connect to the FritzBox:
But it cannot read any data (REDACTED added by me):
Everything starting from
FritzBox metric type '<class 'dict'>' does not match data: <class 'list'>
will repeat in the log indefinitely.I found the same problem mentioned in #42, but I'm not using a beta firmware and using
next-release
didn't do anything for me, so I'm stumped.What do I need to do to fix getting data from my Fritz!Box?
The text was updated successfully, but these errors were encountered: