Octoeverywhere not completing install on a fresh Raspbian 11 Image #313

Closed
opened 2023-03-14 17:16:08 +01:00 by Endracion · 10 comments
Endracion commented 2023-03-14 17:16:08 +01:00 (Migrated from github.com)

Linux Distribution

Raspbian 11 Bullseye 32 Bit

What happened

Tried starting the install for OctoEverywhere, ended in a loop and this error:

Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
Found existing OctoEverywhere service config.
Server section not found in OE config.
The service is taking a while to start, there might be something wrong.
Do you want to keep waiting? [y/n] n

We didn't get a response from the OctoEverywhere service when waiting for the printer id.
You can find service logs which might indicate the error in: /home/pi/printer_data/logs

Attempting to print the service logs:
-- Journal begins at Tue 2023-02-21 01:23:30 GMT, ends at Tue 2023-03-14 16:03:33 GMT. --
Mar 14 16:02:53 raspberrypi systemd[1]: Started OctoEverywhere For Moonraker.
Mar 14 16:02:54 raspberrypi python3[8316]: Loading Service Config: {"KlipperConfigFolder": "/home/pi/printer _data/config", "MoonrakerConfigFile": "/home/pi/printer_data/config/moonraker.conf", "KlipperLogFolder": "/h ome/pi/printer_data/logs", "LocalFileStoragePath": "/home/pi/printer_data/octoeverywhere-store", "ServiceNam e": "octoeverywhere", "VirtualEnvPath": "/home/pi/octoeverywhere-env", "RepoRootFolder": "/home/pi/octoevery where"}
Mar 14 16:02:54 raspberrypi python3[8316]: Config file doesn't exist. Creating a new file now!
Mar 14 16:02:54 raspberrypi python3[8316]: 2023-03-14 16:02:54,974 - INFO - ################################ ##
Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,976 - INFO - #### OctoEverywhere Starting ### ##
Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,977 - INFO - ################################ ##
Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,978 - INFO - Plugin Version: 2.3.13
Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,979 - INFO - Our update config include was no t found in the moonraker config, so we added it.
Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,980 - INFO - No update config found or it was out of date, writing a new file.
Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,980 - INFO - No config file was found on disk , so we are going to attempt to restart moonraker.
Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:55,974 - INFO - No printer id was found, generat ing one now!
Mar 14 16:02:56 raspberrypi python3[8316]: 2023-03-14 16:02:56,199 - INFO - New printer id created: 1D9OYPVK H1SJ2G50DWH0HXPAIC42BVGA33BG1GPEOS9EANZ39OLAJPEPAB01
Mar 14 16:02:56 raspberrypi python3[8316]: 2023-03-14 16:02:56,654 - INFO - No private key was found, genera ting one now!
Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,542 - INFO - New private key created.
Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,544 - INFO - We found our name existing in th e moonraker allowed service file, so there's nothing to do.
Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,545 - INFO - MDns cache file reset
Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,780 - INFO - Setting up relay with frontend p ort 80
Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,781 - INFO - OctoPingPong stats reset
Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,783 - INFO - PingPong has detected a first ti me run. Updating latency stats now.
Mar 14 16:03:33 raspberrypi python3[8316]: 2023-03-14 16:03:33,507 - INFO - Attempting to talk to OctoEveryw here, server con wss://starport-v1.octoeverywhere.com/octoclientws[1] wsId:1975291160

Installer failed. Failed to wait for printer id; Traceback (most recent call last):
File "/home/pi/octoeverywhere/moonraker-install-completer.py", line 138, in Run
self.CheckIfPrinterIsConnectedToAccountAndSetupIfNot(existingPrinterId)
File "/home/pi/octoeverywhere/moonraker-install-completer.py", line 534, in CheckIfPrinterIsConnectedToAcc ountAndSetupIfNot
raise Exception("Failed to wait for printer id")
Exception: Failed to wait for printer id

What did you expect to happen

For the installer to complete without errors.

How to reproduce

Start the OctoEverywhere installer from a fresh Raspbian Image through Kiauh

Additional information

No response

### Linux Distribution Raspbian 11 Bullseye 32 Bit ### What happened Tried starting the install for OctoEverywhere, ended in a loop and this error: Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. Found existing OctoEverywhere service config. Server section not found in OE config. The service is taking a while to start, there might be something wrong. Do you want to keep waiting? [y/n] n We didn't get a response from the OctoEverywhere service when waiting for the printer id. You can find service logs which might indicate the error in: /home/pi/printer_data/logs Attempting to print the service logs: -- Journal begins at Tue 2023-02-21 01:23:30 GMT, ends at Tue 2023-03-14 16:03:33 GMT. -- Mar 14 16:02:53 raspberrypi systemd[1]: Started OctoEverywhere For Moonraker. Mar 14 16:02:54 raspberrypi python3[8316]: Loading Service Config: {"KlipperConfigFolder": "/home/pi/printer _data/config", "MoonrakerConfigFile": "/home/pi/printer_data/config/moonraker.conf", "KlipperLogFolder": "/h ome/pi/printer_data/logs", "LocalFileStoragePath": "/home/pi/printer_data/octoeverywhere-store", "ServiceNam e": "octoeverywhere", "VirtualEnvPath": "/home/pi/octoeverywhere-env", "RepoRootFolder": "/home/pi/octoevery where"} Mar 14 16:02:54 raspberrypi python3[8316]: Config file doesn't exist. Creating a new file now! Mar 14 16:02:54 raspberrypi python3[8316]: 2023-03-14 16:02:54,974 - INFO - ################################ ## Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,976 - INFO - #### OctoEverywhere Starting ### ## Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,977 - INFO - ################################ ## Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,978 - INFO - Plugin Version: 2.3.13 Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,979 - INFO - Our update config include was no t found in the moonraker config, so we added it. Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,980 - INFO - No update config found or it was out of date, writing a new file. Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:54,980 - INFO - No config file was found on disk , so we are going to attempt to restart moonraker. Mar 14 16:02:55 raspberrypi python3[8316]: 2023-03-14 16:02:55,974 - INFO - No printer id was found, generat ing one now! Mar 14 16:02:56 raspberrypi python3[8316]: 2023-03-14 16:02:56,199 - INFO - New printer id created: 1D9OYPVK H1SJ2G50DWH0HXPAIC42BVGA33BG1GPEOS9EANZ39OLAJPEPAB01 Mar 14 16:02:56 raspberrypi python3[8316]: 2023-03-14 16:02:56,654 - INFO - No private key was found, genera ting one now! Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,542 - INFO - New private key created. Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,544 - INFO - We found our name existing in th e moonraker allowed service file, so there's nothing to do. Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,545 - INFO - MDns cache file reset Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,780 - INFO - Setting up relay with frontend p ort 80 Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,781 - INFO - OctoPingPong stats reset Mar 14 16:03:05 raspberrypi python3[8316]: 2023-03-14 16:03:05,783 - INFO - PingPong has detected a first ti me run. Updating latency stats now. Mar 14 16:03:33 raspberrypi python3[8316]: 2023-03-14 16:03:33,507 - INFO - Attempting to talk to OctoEveryw here, server con wss://starport-v1.octoeverywhere.com/octoclientws[1] wsId:1975291160 Installer failed. Failed to wait for printer id; Traceback (most recent call last): File "/home/pi/octoeverywhere/moonraker-install-completer.py", line 138, in Run self.CheckIfPrinterIsConnectedToAccountAndSetupIfNot(existingPrinterId) File "/home/pi/octoeverywhere/moonraker-install-completer.py", line 534, in CheckIfPrinterIsConnectedToAcc ountAndSetupIfNot raise Exception("Failed to wait for printer id") Exception: Failed to wait for printer id ### What did you expect to happen For the installer to complete without errors. ### How to reproduce Start the OctoEverywhere installer from a fresh Raspbian Image through Kiauh ### Additional information _No response_
dw-0 commented 2023-03-14 17:24:13 +01:00 (Migrated from github.com)

@QuinnDamerell Any idea on this one? Did something in the OE installer changed recently?

@QuinnDamerell Any idea on this one? Did something in the OE installer changed recently?
QuinnDamerell commented 2023-03-14 19:24:50 +01:00 (Migrated from github.com)

@Endracion, thanks for reporting this!

Can you tell me what data path the moonraker instance is using? Is it /home/pi/printer_data/logs?

@Endracion, thanks for reporting this! Can you tell me what data path the moonraker instance is using? Is it `/home/pi/printer_data/logs`?
Endracion commented 2023-03-14 19:27:13 +01:00 (Migrated from github.com)

@QuinnDamerell It was all default from kiauh, so yes /home/pi/printer_data/logs I just confirmed.

@QuinnDamerell It was all default from kiauh, so yes `/home/pi/printer_data/logs` I just confirmed.
QuinnDamerell commented 2023-03-15 02:12:11 +01:00 (Migrated from github.com)

@Endracion thanks for that info!

Can you edit the file moonraker-install-completer.py in ~/octoeverywhere/ and change DebugLogging the True? Then run the install from kiauh again and send me the output please!

@Endracion thanks for that info! Can you edit the file moonraker-install-completer.py in ~/octoeverywhere/ and change DebugLogging the True? Then run the install from kiauh again and send me the output please!
Endracion commented 2023-03-15 19:32:42 +01:00 (Migrated from github.com)

@QuinnDamerell the directory doesn't exist since I uninstalled it after it partially failed, kiauh still reported it as still installed somehow and it messed up the moonraker config which I had to manually clean out. So I'm redoing the install now to recreate the directory, but the loop only lasted a second and the installed completed with the printer link.

Could it have just been the server was too busy when I tried installing the first time? Or something changed since then.

I am obviously no longer on a fresh install since I continued working on other parts of the setup, so I cannot recreate it exactly as the first time.

@QuinnDamerell the directory doesn't exist since I uninstalled it after it partially failed, kiauh still reported it as still installed somehow and it messed up the moonraker config which I had to manually clean out. So I'm redoing the install now to recreate the directory, but the loop only lasted a second and the installed completed with the printer link. Could it have just been the server was too busy when I tried installing the first time? Or something changed since then. I am obviously no longer on a fresh install since I continued working on other parts of the setup, so I cannot recreate it exactly as the first time.
QuinnDamerell commented 2023-03-15 20:25:16 +01:00 (Migrated from github.com)

@Endracion, that's really interesting. Do you know what messed up about the moonraker config?

It shouldn't have been a server issue, that ID it's looking for is just in the local config file after the service starts. It does require the service to start to get it, so I wonder if the service was failing for some reason. But if it was, it would be in the logs, and the logs look fine.

That's really weird... I wish I could figure this out. Thanks for your help, I will keep an ear out for other users who hit anything similar.

@Endracion, that's really interesting. Do you know what messed up about the moonraker config? It shouldn't have been a server issue, that ID it's looking for is just in the local config file after the service starts. It does require the service to start to get it, so I wonder if the service was failing for some reason. But if it was, it would be in the logs, and the logs look fine. That's really weird... I wish I could figure this out. Thanks for your help, I will keep an ear out for other users who hit anything similar.
Endracion commented 2023-03-15 20:28:27 +01:00 (Migrated from github.com)

@QuinnDamerell It had written some OctoEverywhere references in the moonraker.conf, but the service wasn't actually starting properly, and even after uninstalling, the OctoEverywhere references remained in moonraker.conf and were throwing warnings in the UI, so I went into both moonraker and the bkp conf and removed all mentions of OctoEverywhere, which did away with the warnings.

@QuinnDamerell It had written some OctoEverywhere references in the moonraker.conf, but the service wasn't actually starting properly, and even after uninstalling, the OctoEverywhere references remained in moonraker.conf and were throwing warnings in the UI, so I went into both moonraker and the bkp conf and removed all mentions of OctoEverywhere, which did away with the warnings.
QuinnDamerell commented 2023-03-15 20:30:35 +01:00 (Migrated from github.com)

@Endracion do you happen to the broken config file around or the error messages you were seeing in the UI?

@Endracion do you happen to the broken config file around or the error messages you were seeing in the UI?
Endracion commented 2023-03-15 21:02:26 +01:00 (Migrated from github.com)

@QuinnDamerell Sorry, I do not, I only recall it mentioning warnings regarding OctoEverywhere and that it was also looking in the bkp file.

@QuinnDamerell Sorry, I do not, I only recall it mentioning warnings regarding OctoEverywhere and that it was also looking in the bkp file.
QuinnDamerell commented 2023-03-15 21:35:17 +01:00 (Migrated from github.com)

No problem, I was just wondering what the issue was so I could look into it.

Thanks for all of the info and discussion, if you have any other issues please reach out!

No problem, I was just wondering what the issue was so I could look into it. Thanks for all of the info and discussion, if you have any other issues please reach out!
Sign in to join this conversation.