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

Initialization failed #343

Open
bakaneko718 opened this issue May 20, 2022 · 13 comments
Open

Initialization failed #343

bakaneko718 opened this issue May 20, 2022 · 13 comments

Comments

@bakaneko718
Copy link

bakaneko718 commented May 20, 2022

I did a clean install a few times and the touch screen says:

initialization failed: readConfig() failed, see log for errors

I have a raspberry pi 4 and a hyper pixel 4 that I am trying to set up.

 sudo dpkg -i octoscreen_2.7.4_armhf.deb
(Reading database ... 56000 files and directories currently installed.)
Preparing to unpack octoscreen_2.7.4_armhf.deb ...
Unpacking octoscreen (2.7.4-1) over (2.7.4-1) ...
Setting up octoscreen (2.7.4-1) ...
Job for octoscreen.service failed because a timeout was exceeded.
See "systemctl status octoscreen.service" and "journalctl -xe" for details.

This has been what I have been getting. in putty. After rebooting I get the same error as before

@bakaneko718
Copy link
Author

I have retried a clean install and followed Chris' basement video step by step. i attempted to do a docker install, but got nothing from that. I saw there was another issue posted and that pointed me to a 3.5 screen, but that didn't help either.

@DiogoBasto13
Copy link

I have se same problem, been trying many stuff, not working... And getting this screen.
282171115_1011397246155344_470675394082102148_n

@JeffB42
Copy link
Collaborator

JeffB42 commented May 23, 2022

Well, what does the log file report?

@bakaneko718
Copy link
Author

I can't find the file. I go to where it should be and it isn't there. Unless I'm looking in the wrong place.

@DiogoBasto13
Copy link

I can't find the file. I go to where it should be and it isn't there. Unless I'm looking in the wrong place.

Same thing with mine

@bakaneko718
Copy link
Author

When I look through the config I see there is a thing asking where I want the file to be, but changing that didn't work either.

@DiogoBasto13
Copy link

I think it might be related with the new raspbian, even Touch_UI wont work either.

@tjwitman
Copy link

tjwitman commented Jun 2, 2022

I believe DiogoBasto is right! I tried to upgrade one of my pi's that I use on my printers and used the new Raspi imager. Got the Octoprint to work on my laptop but nothing I try can get Octoscreen to work. I use the deb files on the Octoscreen page with and without the initial sequence above the deb file. There is a /esc/octoscreen/config folder but nothing in it to configure the program to accept my Pi original 7" screen. I just go back to the pi showing pi login:

Something is screwed up.

@Darthyson
Copy link

Darthyson commented Jun 30, 2022

I had the same issue initialization failed: readConfig() failed... under OctoScreen 2.7.4.
For me it worked to set the correct path of the OctoPrint config file in /etc/octoscreen/config
OCTOPRINT_CONFIG_FILE=/home/USERNAME/.octoprint/config.yaml
Make sure that USERNAME is the username Octoprint is running. There is no user pi on newer Raspberry Pi OS.
Attached are two debug-level logs. log_failed.txt is without OCTOPRINT_CONFIG_FILE set and log_success.txt is with correct path to OctoPrint config file.

log_failed.txt
log_success.txt

@tjwitman
Copy link

tjwitman commented Jul 1, 2022 via email

@JohnnyPrimus
Copy link

@Darthyson Thanks a ton, this worked for me.

@peterrlc
Copy link

I had to make certain that these variables had values in them as follows

OCTOPRINT_CONFIG_FILE=/home/USERNAME/.octoprint/config.yaml
OCTOSCREEN_LOG_FILE_PATH=/home/USERNAME/logs/logfile.txt
OCTOSCREEN_LOG_LEVEL=Debug
OCTOSCREEN_RESOLUTION=800x480
DISPLAY_CURSOR=True

where USERNAME is the login name for your RPi

logfile.txt did not exist on my installation. Once I set that up it worked.

@RehderChef
Copy link

hey guys, I have the same error. But unfortunately I'm completely new to the topic. So unfortunately I don't understand how you solved the problem. However, I understand that you have solved it, which gives me great hope. Would someone be kind enough to give me step by step instructions or help me with Disord?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants