Skip to content
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

Incorrect telnet prompt causes program to hang #78

Open
Minitajfun opened this issue Dec 23, 2024 · 4 comments
Open

Incorrect telnet prompt causes program to hang #78

Minitajfun opened this issue Dec 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Minitajfun
Copy link

Describe the bug
When starting spiderweb, either via wsgi.py or webapp.py, the program fails to host the actual website despite running with no errors reported.

To Reproduce
Steps to reproduce the behavior:

  1. Run wsgi.py or webapp.py
  2. Wait for a bit
  3. Website is not hosted, no related errors or warnings in the log

Expected behavior
Program should host a website

Server:

Additional context
While hosting the website does not work when running either of two scripts, running flask run successfully hosts a website, which is weird because, to my understanding, flask run should behave the same exact way as Flask.run().

Log file
webapp.log

@Minitajfun
Copy link
Author

After checking the log today, I was greeted by this message:

[ERROR] (dxtelnet.py) could not connect to telnet dxspider host: Separator is not found, and chunk exceed the limit

After a bit of investigation, the issue turned out to be a WAIT_FOR variable in the who() function of dxtelnet.py.
After logging in to telnet, the program will read until it finds "dxspider >" string. However, and I might not be 100% right here, if you log in using a non-anonymous user, a different prompt will be displayed, so for example instead of

[MY_CALLSIGN] de IU1BOW-2 27-Dec-2024 1918Z dxspider >

you will get

[MY_CALLSIGN]>

which will cause the program to hang.

Changing this variable to my callsign solved my problem, but I'm leaving this issue open as I believe it should be properly resolved.

@Minitajfun Minitajfun changed the title spiderweb scripts unable to host the website Incorrect telnet prompt causes program to hang Dec 27, 2024
@coulisse
Copy link
Owner

Hello,
in order to solve this issue, please change in the cfg/webapp_log_config.ini, the leves for all the keyes, from info to debug.

level=INFO --> level=DEBUG

Then restart the application and give me the log.

Moreover, if it is possible, could I make some test with your cluster?
In this case give me your credential using my mail corrado.gerbaldo@gmail.com

Best regards
Corrado

@coulisse coulisse added the bug Something isn't working label Dec 28, 2024
@coulisse
Copy link
Owner

coulisse commented Jan 9, 2025

Hello, have you any news?

@Minitajfun
Copy link
Author

Hi,
Sorry for the late response. I was sure I sent you the log and credentials already, but I guess my memory resembles Swiss cheese.

As I write this, I'm sending you the cluster credentials in the mail (along with the log file for convenience).

And here's a copy of the log: webapp.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants