guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.45k stars 368 forks source link

Cannot SSH into a clean install of OctoPi 0.17.0 #694

Open rlgjr562 opened 3 years ago

rlgjr562 commented 3 years ago

This issue has been reported before and marked closed. I just installed a clean copy of 0.17of OctoPi and I cannot connect with SSH.

I see in past comments on this issue to use the command sudo raspi-config which I have done many times with a normal Raspberry PIs (one with a keyboard and Monitor). The issue is many OctoPi are headless. The root issue needs to be found on why SSH is not configured or a way to run the command or enable SSH from within the OctoPrint software. Maybe OctoPi needs a plugin that allows access to the underlying OS.

rlgjr562 commented 3 years ago

I found a way to get ssh installed, by simply putting a file named SSH in the boot director and bounce the Pi, Could OctoPi do this as part of the standard 0.17.0 build?

guysoft commented 3 years ago

It is part of the standard build, this is the line that does it: https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/base/start_chroot_script#L63

I am not sure what you have done with your system, but that is not standard OctoPi

rlgjr562 commented 3 years ago

It was fresh down load and install of the octopi image 0.17.0. It was a standard build but ssh did not seem to installed or running. So I punted and I found the ssh file thing in the pi community boards so I could get it working. At first I did not see the code you shared and it is effectively what I did. I am not sure why the code did not get the job done.

guysoft commented 3 years ago

Does it happen on 0.18.0RC1?

inthroxify commented 3 years ago

Does it happen on 0.18.0RC1?

This is happening to me with 0.17.0 and with 0.18.0RC1.

Wrote 0.17 to the SD card with Rufus on Windows 10. The pi boots, and can connect via ssh with putty, but attempting to log in with pi/raspberry just returns an access denied error.

Did all of the same with 0.18.0RC1, with the exact same result. The ssh file is present in the root of the SD card when "mounted" on Windows.

Edit: I am trying a full erase of the card and a re-rufus and will report back if this helps or not.

Edit 2: Even with a fully-fresh card, same problem.

Edit 3: Tried a different Raspberry Pi unit at a different location, and it worked. I think this might be wifi firmware or wifi access point related.

coaxial commented 3 years ago

This is happening to me as well with a fresh Octopi install and a Pi 4 on the latest firmware. Using octopi.local or the IP shown in the boot console makes no difference.

guysoft commented 3 years ago

Can you write paste/screenshot what kind of error you are getting?

inthroxify commented 3 years ago

Also, what make/model is your WiFi access point, if you don't mind me asking? And does the same problem occur while using hard-wired Ethernet?

coaxial commented 2 years ago

I was not getting any error on the Pi's console, just not able to connect to it from another machine on the same network. My AP is a UniFi AP-AC-Lite.

I don't know what happened, it just wouldn't accept any connection either via SSH or HTTP. I then erased the SD card and wrote the image to it again, and it worked. I was not able to reproduce the issue after that.

inthroxify commented 2 years ago

My AP is a UniFi AP-AC-Lite.

Interestingly, that is the same access point that I have, and we both had this issue. @coaxial keep an eye out to see if your wifi drops after a few days/weeks and then refuses to reconnect until you reboot the Pi; that is the issue I am facing now.

edit: for reference, here is the output from dmesg | grep fmac on my affected pi unit

[ 5.268103] brcmfmac: F1 signature read @0x18000000=0x1541a9a6 [ 5.274364] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 5.274630] usbcore: registered new interface driver brcmfmac [ 5.447318] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 5.447441] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available [ 5.448136] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378 [ 7.108586] brcmfmac: power management disabled

guysoft commented 2 years ago

Interesting that its the same access point. I can see also people complaining about this here: https://community.ui.com/questions/WIFI-Clients-losing-network-connectivity/9de0d0ea-7722-45c6-9709-a7815ffc0298