Skip to content

Troubleshooting

FlyingT edited this page Sep 11, 2019 · 7 revisions

pew pew

I cannot connect to my Pi via PuTTY with SSH

First, check in your router under connected devices if the Pi shows up or attach an HDMI monitor, it will display the IP address on screen. Try to use the IP address in PuTTY instead octopi.local to connect.

If it doens't, connect the PI via LAN cable and use PuTTY to connect.
Run sudo raspi-config > Network Options and set your WiFi again.


I cannot connect to OctoPrint with my browser

Try to use the IP address instead of octopi.local
Make sure your computer and Pi are connected to the same network / IP range.


cp: cannot create regular file ‘/usr/share/X11/xorg.conf.d/99-fbturbo.conf’

Run sudo apt-get update && sudo apt-get install xserver-xorg-video-fbturbo and try step 4 for installing LCD drivers again.


TouchUI Installing Dependencies -failed

Based on: OLD - Boot to Browser (OctoPi or Jessie Light)

If you get this error
Installing dependencies (xinit xinput xserver-xorg xserver-xorg-video-fbdev x11-xserver-utils matchbox unclutter chromium-browser): - failed
then execute the following commands one by one:

  1. sudo apt-get update
  2. sudo apt-get install --no-install-recommends xinit xinput xserver-xorg xserver-xorg-video-fbdev x11-xserver-utils matchbox unclutter chromium-browser

If it follows with this error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
3. sudo apt --fix-broken install
4. sudo apt-get install --no-install-recommends xinit xinput xserver-xorg xserver-xorg-video-fbdev x11-xserver-utils matchbox unclutter chromium-browser

Next, register your touchscreen to X11 by creating a new config:

  1. sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf

If your touchscreen is connected with HDMI, paste the following code:
Use this if you're using the Official Pi Touchscreen

Section "Device"
  Identifier "touchscreen"
  Driver "fbdev"
  Option "fbdev" "/dev/fb0"
EndSection

Otherwise, paste the following code:

Section "Device"
  Identifier "touchscreen"
  Driver "fbdev"
  Option "fbdev" "/dev/fb1"
EndSection

Save and exit (Ctrl-O, ENTER and Ctrl-X)

  1. Allow X11 to run as anybody by running the following command:
    Ignore this step if it fails

sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config

  1. Get the TouchUI boot files:
    git clone https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart.git ~/TouchUI-autostart/

  2. Copy service file and register it as auto boot, execute these line by line:
    sudo cp ~/TouchUI-autostart/touchui.init /etc/init.d/touchui
    sudo chmod +x /etc/init.d/touchui
    sudo cp ~/TouchUI-autostart/touchui.default /etc/default/touchui
    sudo update-rc.d touchui defaults

  3. Test if your kernel can run Chromium by running the following command:
    chromium-browser

If you get one of these errors, its fine and working:

/usr/bin/chromium-browser: line 138: lsb_release: command not found 
/usr/bin/chromium-browser: line 139: lsb_release: command not found
bootstrap_helper: /usr/lib/chromium-browser/nacl_helper: Cannot open ELF file!  errno=2
[1:1:0605/122948.230046:ERROR:nacl_fork_delegate_linux.cc(315)] Bad NaCl helper startup ack (0 bytes)
[3904:3904:0605/122948.236249:ERROR:browser_main_loop.cc(495)] Failed to put Xlib into threaded mode.
[3904:3904:0605/122948.244840:ERROR:browser_main_loop.cc(272)] Gtk: cannot open display:

If you get the following error, you need to upgrade your kernel to the latest version, follow these extra steps..

/usr/lib/chromium-browser/chromium-browser: symbol lookup error: /usr/lib/chromium-browser/chromium-browser: undefined symbol: mmal_vc_init_fd`
  1. Reboot the Pi using sudo reboot