Closed teslabol77 closed 2 years ago
Well, the bot gets an "unauthorized" error when trying to access moonraker. Any ideas why that might be happening?
Well, the bot gets an "unauthorized" error when trying to access moonraker. Any ideas why that might be happening?
No idea why. It's a vague error. Any ideas on your end?
No idea why. It's a vague error. Any ideas on your end?
You have enabled authorization in moonraker and the moonraker login password is not specified or incorrectly specified in the bot configuration.
Close issue due to inactivity. Don't hesitate to reopen if the issue persists.
If you have authorization enabled, you can add 127.0.0.1 as trusted host
# moonraker.conf
[authorization]
trusted_clients:
192.168.1.0/24
127.0.0.1 # for telegram bot
What happened and in what context?
I followed the install instructions and I am not able to get this to work. I just keep getting a repeating text from the bot:
Bot online, no moonraker connection! Connection failed, Unauthorized Failing...
I am not sure how to do a clean install as there are no instructions for that.
Thanks for the help.
If needed, paste the relevant bot log contents here.
2022-02-24 18:05:45,611 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:05:45,611 - main - INFO - WebSocket closed 2022-02-24 18:05:45,612 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:06:05,729 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:06:05,730 - main - INFO - WebSocket closed 2022-02-24 18:06:05,730 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:06:25,649 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:06:25,650 - main - INFO - WebSocket closed 2022-02-24 18:06:25,650 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:06:45,591 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:06:45,591 - main - INFO - WebSocket closed 2022-02-24 18:06:45,592 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:07:05,549 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:07:05,549 - main - INFO - WebSocket closed 2022-02-24 18:07:05,550 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:07:25,413 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:07:25,413 - main - INFO - WebSocket closed 2022-02-24 18:07:25,414 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:07:45,337 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:07:45,338 - main - INFO - WebSocket closed 2022-02-24 18:07:45,338 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:08:05,435 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:08:05,436 - main - INFO - WebSocket closed 2022-02-24 18:08:05,437 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:08:25,485 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:08:25,486 - main - INFO - WebSocket closed 2022-02-24 18:08:25,486 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:08:45,404 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:08:45,405 - main - INFO - WebSocket closed 2022-02-24 18:08:45,406 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:09:05,401 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:09:05,401 - main - INFO - WebSocket closed 2022-02-24 18:09:05,401 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:09:25,421 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:09:25,421 - main - INFO - WebSocket closed 2022-02-24 18:09:25,422 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:09:45,422 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:09:45,423 - main - INFO - WebSocket closed 2022-02-24 18:09:45,423 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:10:05,384 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:10:05,385 - main - INFO - WebSocket closed 2022-02-24 18:10:05,385 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:10:25,337 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:10:25,338 - main - INFO - WebSocket closed 2022-02-24 18:10:25,339 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:10:45,072 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:10:45,073 - main - INFO - WebSocket closed 2022-02-24 18:10:45,073 - main - INFO - Exiting! Moonraker connection lost! 2022-02-24 18:11:04,935 - main - ERROR - Handshake status 401 Unauthorized 2022-02-24 18:11:04,935 - main - INFO - WebSocket closed 2022-02-24 18:11:04,935 - main - INFO - Exiting! Moonraker connection lost!
If needed, paste the relevant bot journal contents here.
-- Logs begin at Wed 2022-02-23 19:45:43 CST, end at Thu 2022-02-24 18:10:26 CST. -- Feb 24 18:10:25 fluiddpi python[28640]: 2022-02-24 18:10:25,339 - apscheduler.scheduler - INFO - Scheduler has been shut down Feb 24 18:10:25 fluiddpi python[28640]: 2022-02-24 18:10:25,339 - main - INFO - Exiting! Moonraker connection lost! Feb 24 18:10:25 fluiddpi python[28640]: 2022-02-24 18:10:25,338 - main - INFO - WebSocket closed Feb 24 18:10:25 fluiddpi python[28640]: 2022-02-24 18:10:25,337 - main - ERROR - Handshake status 401 Unauthorized Feb 24 18:10:25 fluiddpi python[28640]: 2022-02-24 18:10:25,328 - apscheduler.scheduler - INFO - Added job "reshedule" to job store "default" Feb 24 18:10:24 fluiddpi python[28640]: 2022-02-24 18:10:24,064 - apscheduler.scheduler - INFO - Scheduler started Feb 24 18:10:23 fluiddpi python[28640]: 2022-02-24 18:10:23,484 - apscheduler.scheduler - INFO - Scheduler started Feb 24 18:10:20 fluiddpi systemd[1]: Started Starts Moonraker Telegram Bot on startup. Feb 24 18:10:20 fluiddpi systemd[1]: Stopped Starts Moonraker Telegram Bot on startup. Feb 24 18:10:20 fluiddpi systemd[1]: moonraker-telegram-bot.service: Scheduled restart job, restart counter is at 43. Feb 24 18:10:20 fluiddpi systemd[1]: moonraker-telegram-bot.service: Service RestartSec=5s expired, scheduling restart. Feb 24 18:10:15 fluiddpi systemd[1]: moonraker-telegram-bot.service: Succeeded. Feb 24 18:10:13 fluiddpi python[28513]: 2022-02-24 18:10:13,377 - apscheduler.executors.default - INFO - Job "reshedule (trigger: interval[0:00:02], next run at: 2022-02-24 Feb 24 18:10:13 fluiddpi python[28513]: 2022-02-24 18:10:13,377 - apscheduler.executors.default - INFO - Running job "reshedule (trigger: interval[0:00:02], next run at: 20 Feb 24 18:10:11 fluiddpi python[28513]: 2022-02-24 18:10:11,379 - apscheduler.executors.default - INFO - Job "reshedule (trigger: interval[0:00:02], next run at: 2022-02-24 Feb 24 18:10:11 fluiddpi python[28513]: 2022-02-24 18:10:11,377 - apscheduler.executors.default - INFO - Running job "reshedule (trigger: interval[0:00:02], next run at: 20 Feb 24 18:10:09 fluiddpi python[28513]: 2022-02-24 18:10:09,378 - apscheduler.executors.default - INFO - Job "reshedule (trigger: interval[0:00:02], next run at: 2022-02-24 Feb 24 18:10:09 fluiddpi python[28513]: 2022-02-24 18:10:09,377 - apscheduler.executors.default - INFO - Running job "reshedule (trigger: interval[0:00:02], next run at: 20 Feb 24 18:10:07 fluiddpi python[28513]: 2022-02-24 18:10:07,377 - apscheduler.executors.default - INFO - Job "reshedule (trigger: interval[0:00:02], next run at: 2022-02-24 Feb 24 18:10:07 fluiddpi python[28513]: 2022-02-24 18:10:07,375 - apscheduler.executors.default - INFO - Running job "reshedule (trigger: interval[0:00:02], next run at: 20 Feb 24 18:10:05 fluiddpi python[28513]: 2022-02-24 18:10:05,385 - apscheduler.scheduler - INFO - Scheduler has been shut down Feb 24 18:10:05 fluiddpi python[28513]: 2022-02-24 18:10:05,385 - main - INFO - Exiting! Moonraker connection lost! Feb 24 18:10:05 fluiddpi python[28513]: 2022-02-24 18:10:05,385 - main - INFO - WebSocket closed Feb 24 18:10:05 fluiddpi python[28513]: 2022-02-24 18:10:05,384 - main - ERROR - Handshake status 401 Unauthorized Feb 24 18:10:05 fluiddpi python[28513]: 2022-02-24 18:10:05,374 - apscheduler.scheduler - INFO - Added job "reshedule" to job store "default" Feb 24 18:10:04 fluiddpi python[28513]: 2022-02-24 18:10:04,118 - apscheduler.scheduler - INFO - Scheduler started Feb 24 18:10:03 fluiddpi python[28513]: 2022-02-24 18:10:03,542 - apscheduler.scheduler - INFO - Scheduler started Feb 24 18:10:00 fluiddpi systemd[1]: Started Starts Moonraker Telegram Bot on startup. Feb 24 18:10:00 fluiddpi systemd[1]: Stopped Starts Moonraker Telegram Bot on startup. Feb 24 18:10:00 fluiddpi systemd[1]: moonraker-telegram-bot.service: Scheduled restart job, restart counter is at 42. Feb 24 18:10:00 fluiddpi systemd[1]: moonraker-telegram-bot.service: Service RestartSec=5s expired, scheduling restart. Feb 24 18:09:55 fluiddpi systemd[1]: moonraker-telegram-bot.service: Succeeded. Feb 24 18:09:53 fluiddpi python[28387]: 2022-02-24 18:09:53,416 - apscheduler.executors.default - INFO - Job "reshedule (trigger: interval[0:00:02], next run at: 2022-02-24 Feb 24 18:09:53 fluiddpi python[28387]: 2022-02-24 18:09:53,416 - apscheduler.executors.default - INFO - Running job "reshedule (trigger: interval[0:00:02], next run at: 20 Feb 24 18:09:51 fluiddpi python[28387]: 2022-02-24 18:09:51,417 - apscheduler.executors.default - INFO - Job "reshedule (trigger: interval[0:00:02], next run at: 2022-02-24 Feb 24 18:09:51 fluiddpi python[28387]: 2022-02-24 18:09:51,415 - apscheduler.executors.default - INFO - Running job "reshedule (trigger: interval[0:00:02], next run at: 20 Feb 24 18:09:49 fluiddpi python[28387]: 2022-02-24 18:09:49,420 - apscheduler.executors.default - INFO - Job "reshedule (trigger: interval[0:00:02], next run at: 2022-02-24 Feb 24 18:09:49 fluiddpi python[28387]: 2022-02-24 18:09:49,418 - apscheduler.executors.default - INFO - Running job "reshedule (trigger: interval[0:00:02], next run at: 20 Feb 24 18:09:47 fluiddpi python[28387]: 2022-02-24 18:09:47,415 - apscheduler.executors.default - INFO - Job "reshedule (trigger: interval[0:00:02], next run at: 2022-02-24 Feb 24 18:09:47 fluiddpi python[28387]: 2022-02-24 18:09:47,414 - apscheduler.executors.default - INFO - Running job "reshedule (trigger: interval[0:00:02], next run at: 20 Feb 24 18:09:45 fluiddpi python[28387]: 2022-02-24 18:09:45,423 - apscheduler.scheduler - INFO - Scheduler has been shut down Feb 24 18:09:45 fluiddpi python[28387]: 2022-02-24 18:09:45,423 - main - INFO - Exiting! Moonraker connection lost! Feb 24 18:09:45 fluiddpi python[28387]: 2022-02-24 18:09:45,423 - main - INFO - WebSocket closed
What branch does this occur on?
master
Reports only on latest master or development branches!