-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
ASUSWRT log message confirm connection #972
Comments
Hi @netExtra , Thanks for the report. To me this is not a big issue. Looking at the code the script returns number of devices: mylog(
"verbose",
[f"[{pluginName}] Processing '{len(filtered_devices)}' connected devices"],
) I'll let @labmonkey decide if he wants to improve the logging, for me this is not an issue (low priority). Happy for you @netExtra also to submit a PR if interested. Thanks for understanding, |
There is nothing 'pretty' that can be done while the plugin tries to connect. In case your credentials etc. are wrong it will try connect until it timeouts and the library that it is using has quite a long timeout for few minutes. This means in case of wrong settings the resulting output such as an error can be somewhere far later in the logs. |
Thanks for the explanation. But what I am saying is that it is clear from the logs that connection failed. I would like a bit more info but at least it is clear that it failed. When (I assume that) it succeeds the app.log says nothing after the initial "connecting" message. So I'm left assuming that it has succeeded because I don't see a timeout message. |
Hummm do you have an idea how to incorporate https://github.com/jokob-sk/NetAlertX/blob/main/server/logger.py I never used the logging object before... |
Something like this: logging.basicConfig( |
I believe I fixed this. This should be available in the next release. It would be great if you could test this. Can you please switch to the Consider sharing the app on socials 🙂🙏 Thanks in advance, |
08:38:04 [ASUSWRT] started. Not sure what this is telling me? Are those the actual HTTP connections to the router? Because I'm seeing the same kind of log message after "[Database] Opening DB" too. Also, I've been seeing a message in the status windows that after "Process: idle" then shows "check scan" then sometimes "scan: true". I don't know what "check scan" and "scan: true" means and I've been seeing these notifications on my UI since my previous dev update 3 days ago. |
Can you try to enter incorrect credentials and post the result vs correct credentials? I regrettably can't change what the Asus library logs - so if there is an obvious error, and 200 means everything OK then I'd consider this as solved. |
What's interesting is that since the latest release, my usb ethernet connection is considered down. I disables the notification because it is reduntant. If the interface is down then I won't be able to connect to netalertx. But it is an interesting change. As for what happens with incorrect credentials ? So far it looks like it keeps on retrying because the ASUSWRT notification reappears. But no HTTP 200 messages in the log. Update: Nope HTTP 200 message appeared after 1 minute. See below. I think the problem might be that the HTTP 200 messages appear not just for ASUSWRT but for Open DB (and maybe other log entries) as well. So I can't tell whether these are for ASUSWRT or something else. 09:29:24 [ASUSWRT] started. |
Hummm, I can't test a valid connection, but if I enter an incorrect IP I'm getting a pretty good log: INCORRECT SETTINGS
This is clear. If you are then getting something like this on success, then I think this is a significant improvement and I would consider the issue as resolved: CORRECT SETTINGS
|
OK you've had another update within the last hour. I'm getting that image now. |
I just downloaded you latest image from 30 minutes ago. I ran the plugin manually to make sure and I'm still not getting the the incorrect error messages even though I've entered the wrong username. I wonder if it is still using the old "correct" credentials. |
Whatever dev version you are running, I don't have it. But it says I'm up to date. |
Regrettably I'm not able to help with your environment. You can try to stop all nax containers, delete them and and delete the images. That's the only advice I can offer. |
I have you latest image from just under an hour ago and it's not giving me the same results I already deleted the old images stopped and removed the container. Restarted with a new one. I did this multiple times. But no problem as this isn't a key requirement for me. But I would like to know if others are getting the same log messages you are, coz I'm getting nothing with incorrect credentials, but maybe something with correct credentials. |
This is all I get with your latest image: Starting new HTTPS connection (1): api.github.com:443
|
You can ignore that message. Also you need to save settings for them to apply. Running a plugin manually without saving settings will use saved settings only. You can of course contribute with code directly if you have a better idea on how to solve this, but this is the extend of my ability right now I think. |
Thanks. I did save settings then run manually. I just downloaded the latest dev image (from about 2 hours ago) and app.log shows absolutely nothing now. app_front.log shows it being added to the execution queue. But app.log shows nothing. |
Can you try to run the image completely without mounts? Might be a permission issue:
|
No change. Asuswrt starts but nothing happens with the logs. Am I supposed to use Sudo? |
Hmm, not sure what is going on with your system at the moment... You can
also access logs via /app/log so maybe give taht a try
…On Sat, 25 Jan 2025, 13:41 netExtra, ***@***.***> wrote:
Can you try to run the image completely without mounts? Might be a
permission issue:
docker run -d --rm --network=host \
-e TZ=Europe/Berlin \
-e PORT=20211 \
jokobsk/netalertx-dev:latest
No change. Asuswrt starts but nothing happens with the logs. Am I supposed
to use Sudo?
—
Reply to this email directly, view it on GitHub
<#972 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5URDBTQX563P2U53G5XHD2ML2UDAVCNFSM6AAAAABVR3MMPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJTG4ZTONJWHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Tried everything. I don't get the log entries for incorrect Asuswrt access. Since the last image I downloaded 6 hours ago, I get even less info than before. |
Hmmm, what's your LOG_LEVEL?
…On Sat, 25 Jan 2025, 14:17 netExtra, ***@***.***> wrote:
Hmm, not sure what is going on with your system at the moment... You can
also access logs via /app/log so maybe give taht a try
… <#m_4715180665850557774_>
Tried everything. I don't get the log entries for incorrect Asuswrt
access. Since the last image I downloaded 6 hours ago, I get even less info
than before.
—
Reply to this email directly, view it on GitHub
<#972 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5URDB2JFDS435QWZ4RFOD2ML64XAVCNFSM6AAAAABVR3MMPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJTG42TANRVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Verbose. What's weird is that logging issues got worse after my last dev update 6 hours ago. |
Could you please try to set it to debug? I;'m getting this on the debug level:
|
This is what I get from Debug: 13:39:08 [ASUSWRT] started. |
OK finally getting the not correct messages on debug. I can see exactly where it is failing. Not quite sure why I'm getting the message but at least I'm getting it. |
Phew, glad to hear that, was getting desperate. :) Here is what I've added to the README:
|
This isn't key functionality for me at the moment. But I would still like to know why even with the correct information I'm getting this message. I definitely saved the new details with the correct user/pass and port. But may be that's for another ticket so you can close this one if you wish. |
Is there an existing issue for this?
Is your feature request related to a problem? Please describe
I "think" I connected to my router. It is on the supported list and when I wasn't connecting I kept getting timeout errors. But I'm not sure if I connected because this is the last message in the log.
[ASUSWRT] Connecting to the Router...
Nothing else about ASUSWRT after that.
Describe the solution you'd like
If ASUSWRT is successfully connected then the log should reflect that, even if nothing is imported.If nothing is imported that should also be noted.
Describe alternatives you've considered
N/A
Anything else?
The only thing that did happen was the Netalertx thought that my router was down. I assume that is because I couldn't connect to the router at first?
Am I willing to test this? 🧪
netlertx-dev
image when requested within 48h and report bugs to help deliver a great user experience for everyone and not to break existing installations.Can I help implement this? 👩💻👨💻
The text was updated successfully, but these errors were encountered: