matrix-org / mjolnir

A moderation tool for Matrix
Apache License 2.0
330 stars 56 forks source link

Mjolnir fails to start #362

Closed starcraft66 closed 1 month ago

starcraft66 commented 2 years ago

Describe the bug When I start mjolnir, it fails to start and crash loops

To Reproduce Not sure, it started happening randomly one day

Expected behavior The bot starts

Desktop (please complete the following information):

Additional context Log:

Sat, 27 Aug 2022 04:12:25 GMT [INFO] [index] Starting bot...                                                                         
Sat, 27 Aug 2022 04:12:25 GMT [INFO] [index] Resolving protected rooms...                                                            
Sat, 27 Aug 2022 04:12:25 GMT [INFO] [index] Resolving management room...                                                            
Creating Web APIs                                                                                                                    
Sat, 27 Aug 2022 04:12:25 GMT [INFO] [index] Mjolnir is starting up. Use !mjolnir to query status.                                   
Starting web server                                                                                                                  
Sat, 27 Aug 2022 04:12:27 GMT [ERROR] [MatrixHttpClient (REQ-22)] [Error: Error during MatrixClient request GET /_matrix/client/r0/di
rectory/room/%23handrub_m2322ty_blacklist%3Aglowers.club: 404 Not Found -- {"errcode":"M_NOT_FOUND","error":"Room alias #handrub_m232
2ty_blacklist:glowers.club not found"}]                                                                                              
Sat, 27 Aug 2022 04:12:27 GMT [ERROR] [Mjolnir] Error during startup:                                                                
Sat, 27 Aug 2022 04:12:27 GMT [ERROR] [Mjolnir] {                                                                                    
  errcode: 'M_NOT_FOUND',                                                                                                            
  error: 'Room alias #handrub_m2322ty_blacklist:glowers.club not found'                                                              
}                                                                                                                                    
Sat, 27 Aug 2022 04:12:27 GMT [INFO] [Mjolnir] Stopping Mjolnir...                                                                   
Sat, 27 Aug 2022 04:12:27 GMT [ERROR] [Mjolnir@startup] Startup failed due to error - see console                                    
Sat, 27 Aug 2022 04:12:27 GMT [ERROR] [Mjolnir] Failed to report startup error to the management room: Error: Error during MatrixClie
nt request GET /_matrix/client/r0/directory/room/%23handrub_m2322ty_blacklist%3Aglowers.club: 404 Not Found -- {"errcode":"M_NOT_FOUN
D","error":"Room alias #handrub_m2322ty_blacklist:glowers.club not found"}                                                           
Mjolnir failed to start: Error: Error during MatrixClient request GET /_matrix/client/r0/directory/room/%23handrub_m2322ty_blacklist%
3Aglowers.club: 404 Not Found -- {"errcode":"M_NOT_FOUND","error":"Room alias #handrub_m2322ty_blacklist:glowers.club not found"}    
node:internal/process/promises:279                                                                                                   
            triggerUncaughtException(err, true /* fromPromise */);                                                                   
            ^                                                                                                                        
Yoric commented 2 years ago

Could this be related to https://github.com/matrix-org/mjolnir/issues/365 ?

turt2live commented 1 month ago

I am assuming this is fixed. If not, please open a new issue with fresh logs.