Installed samba, now Octoprint won't load

What is the problem?
Been using Octoprint for a long time. My printer's firmware supports baby stepping, so I thought I'd update the config.yaml with custom buttons (first time trying). I'm on a Window's PC with Octopi running on a Rpi, so the easiest way to do this (in my head) was to let my PC see the HD of the pi, so I could use my IDE to update the yaml.
I followed the directions here:
https://raspberrypihq.com/how-to-share-a-folder-with-a-windows-computer-from-a-raspberry-pi/
Which worked. I can now open a windows Explorer to my .octoprint folder, modify the config.yaml directly. But now, Octoprint won't boot. I get the 'Octoprint server is currently not running' page.

My guess is this has something to do with samba 'taking over' the rpi now?

What did you already try to solve it?
Use putty to login to the pi:
Tried everything on the 'sever not running page' : If I run
$ sudo service octoprint restart
And then immediately after it run:
$ ps -ef | grep -i octoprint | grep -i python
For a few seconds it'll report the process:
pi 842 1 87 18:31 ? 00:00:03 /home/pi/oprint/bin/python2/home/pi/oprint/bin/octoprint serve --host=127.0.0.1 --port=5000
then it just disappears.

I undid all the work I had done in
/etc/samba/smb.conf
from the above tutorial, rebooted everything, but Octoprint still wont run: I just can't access the rpi any more from my PC either.

If I list all running processes however, octoprint is in there:

pi@octopi:~ $ sudo service --status-all
 [ - ]  alsa-utils
 [ + ]  avahi-daemon
 [ - ]  bluetooth
 [ + ]  change_hostname
 [ + ]  change_password
 [ - ]  console-setup.sh
 [ + ]  cron
 [ + ]  dbus
 [ + ]  dhcpcd
 [ + ]  dphys-swapfile
 [ + ]  fake-hwclock
 [ + ]  haproxy
 [ - ]  hwclock.sh
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ + ]  networking
 [ - ]  nfs-common
 [ + ]  nmbd
 [ + ]  octoprint
 [ - ]  paxctld
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  procps
 [ + ]  raspi-config
 [ - ]  rpcbind
 [ - ]  rsync
 [ + ]  rsyslog
 [ + ]  samba
 [ - ]  samba-ad-dc
 [ - ]  screen-cleanup
 [ + ]  smbd
 [ + ]  ssh
 [ - ]  sudo
 [ + ]  triggerhappy
 [ + ]  udev
 [ + ]  webcamd
 [ - ]  x11-common

Logs
The log from trying to login today:
octoprint.log (90.3 KB)

Additional information about your setup
OctoPrint version : 1.3.12
OctoPi version : 0.15.0
PC is running Window 10
Printer is a custom built C-Bot running RepRapFirmware on RADDS.

Been looking around, found this 'more official' tutorial here:

Which more or less follows what I did, but he did a few more updates steps via apt-get: I re-followed what he did from start to finish with samba.,

My only differences in the smb.conf file : the name of the share, and the path.

[OctoPiShare]
 comment=Octoprint Share
 path=/home/pi
 browseable=Yes
 writeable=Yes
 only guest=no
 create mask=0777
 directory mask=0777
 public=No

But after rebooting, the Octoprint web interface still won't load.

Not sure how to troubleshoot the attempt that you made. If you don't mind starting over, I myself wrote a bit of a tutorial that's here.

1 Like