Pi 3 Model B+ Octoprint Build


#9

So far using the very latest nightly, I have not been successful communicating through wifi. The device is powered up approx. 15 minutes now, running Angry IP Scanner I am not seeing ant new devices on my list. I have double checked the edits and everything is ok. Now sure why it will not work.


#10

So I decided to LAN into the PI and of course that allowed a Putty connection. I did a few items, expanded to storage, re-config the Wifi settings, country locale, hostname etc..after rebooting I no longer had a red power light only a green activity light. I did have access still with the LAN to Octoprint itself thru its IP. Upon disconnecting the LAN cable the red power light came back on, still no wifi. I looked at the WPA supplicant itself, and no changes, same as I configured. Now I assume the 'VAR' directory is hidden as its referenced in the WPA supplicant but not visible in the directory. Having a LAN cable isn't really desirable but at least I know the system itself is indeed running. Not sure what to do next at this point regarding the wifi.


#11

@DM_Cam - what are you using for a power supply for your Pi?

Can you cut and paste the block of octopi-wpa-supplicant.txt that you edited (including lines just before and just after what you edited)? You can block out the actual SSID and password.

I do not own a 3B+, so I'm hoping others on here with more knowledge will chime in.


#12

Hi John, thanks for helping. I am actually running a DROK 24V to 5V stepdown transformer and it puts out a 4.99v on the output. I have the DROK input coming off my 24v power converter. I don't have the PI to reference cause I am at work but I know exactly what the lines of code look like in my head.

" ## WPA/WPA2 secured ( had to add the " at the beginning for this comment to show the hash tags, its not like that in the code itself)

network={
ssid="MYSSID"
psk="MYSSIDPASSWORD"
}

"## Open/unsecured

And then at the bottom, the country is defaulted to the United Kingdon so I put back the hash symbol and uncommented my country. I did order a 5V, 3A power adapter today just to be sure because the transformer only supplies 2A.

country=CA # Canada

Unlike the previous file, this new wpa-supplicant file doesn't reference the SSID or passcode as "wpa-ssid" or "wpa-psk". I tried putting that in but same issue, no wifi.

Thanks


#13

Help Mr Wizard!
First, I canot inckude code blocks since they can't be imported from the RPI that I am truying to run the Octopi on dueto no desk top or edit/capture capabilities that I am aware of. ((HELP!))
I have a new (tested) RPI3B+ running the nightly (2018-04-15_2018-03-13-octopi-stretch-lite-0.15.0.zip)
I edited the correct file with my SSID and psk after uncommenting the lines.
RPI boots and I have green light activity
When I try to run http:octopi.local I get "Unable to load page"
When I run sudo ifconfig under wlan0 I get only the ethernet address but no IPA.
eth0 and wlan0 show RX packets 0 and TX packets 0
with no IPA
lo: flags+73<UP, LOOPBACK, RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (local loopback)
RX packets 6 bytes 600 (600.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 600 (600.0B)
TX errors 0 dropped 0 overruns 0 carrier 0 collissions 0
wlan0: flags=4099<UP, BROADCAST, MULTICAST> mtu 1500
ether b8:27:eb:28:80:a1 txqueneblen 1000 (Ethernet)
RX Packets 0, etc
TX Packets 0, etc

I had to type manually pardon the obvious typos but it will not connect.
PLEASE advise.
Jeff KG7TXI
Drizzle, Drazzel, Drossle, Drone, time for zis vone to come home...


#14

I'm not much of a Wizard with the 3B+, since I don't have one (not that I'm much of a wizard at anything). Your problem doe snot sound 3B+ related to me.

My first question: what are you using to access OctoPrint with octopi.local? You know it does not work from Windows, unless you've set up Bonjour for Windows on your PC. You need to use your Pi's IP address to access it.

From your output, it appears you are not connected to your Wifi network. I suggest you start with this thread on Getting your WiFi connection working

There is one change you should note form the thread linked above: Since you are using the nightly build, you need to edit the octopi-wpa-supplicant.txt (rather than octopi-network.txt). There are 4 lines in there that need the # comment removed. The edited section should look something like this:

## WPA/WPA2 secured
network={
  ssid="MYSSID"
  psk="MYPASSWORD"
}

#15

Thanks for the reply John.
I tried from Windows 10 PC as well as from another RPI3B+, same failed to load page.
I did edit the WPA/WPA2 with the correct SSID and PSK.
There was a tantalising comment in the forum where someone said they went into the /etc/network and changed a setting either from or too manual. EEEKK he didn't spell out what he did exactly. That is like saying that all you have to do to pull the engine is loosen a few bolts and wires and badabing, badabang, she's out.
I looked on my router and the only devices that show up are the Roku's I have and the computer I was searching from so I know that the RPI didn't get as far as the router.
Dude, I will gladly send you a RPI3B+. That is the current issue machine and what almost every noob (like me) will be running on. My email is jhansx@gmail.com. Send me your address in a private email and you will have one winging its way to you by tomorrow AM. I assume you have an SD card and a machine to burn the image with?
I mean it. We need your genius and you need a machine that is what we are all using. It will also help with the snarky camera stuff which always seems to be an issue some how or the other. I have like 6 3B+'s and can't think of a better use for one of them. Just put it in an original box and it's waiting for your address.
Thanks again for your help.
Be safe!
J.S.Holverson, MD KG7TXI


#16

No joke. It's boxed and ready to go. Someone has to solve this, I think you could. At least you have a Pi 3B+ to play with.
Get me an address or send a general delivery address if you are worried I am a terrorist.
Be safe.
Jeff KG7TXI


#17

@Jeff_Holverson - Thanks, but seriously, I'm not the genius here. I've just read a lot from people who really know their stuff.

Instead of sending me a Pi 3B+, might I suggest you donate one to a local school's makerspace, or perhaps volunteer with a classroom teacher who is interested in exposing their kids to 3D printing? I did it for my daughter's 5th & 6th grade class and it was a lot of fun.

BTW - I edited my previous post to show what the lines in your octopi-wpa-supplicant.txt should look like. There are four lines that you have to remove the # from in front of, and the indentation should be preserved (delete JUST the #, not any of the leading spaces).


#18

Already donated to school.
We need a solution for the RPI 3B+.
Who can handle the issue? I did the edit on the file. No joy!
All other places I look the same problem persists. Someone in the high up needs a 3 B+ to work out the patch/fix. Really like the facility of Octopi, can't be that big a deal. I'll send you the B+ then when you are done, give it to your kids school.
Have equipment need solution...
Jeff


#19

Did you work through the WiFi tips in the post I linked?
what do you get when you enter

sudo iwlist wlan0 scan

This should give you a listing of all the WiFi networks your Pi can see (whether it is connected to them or not).


#20

Back at it and it isn't a power issue. Installed the latest build, edited the WPA-Supplicant file, same as before. Device does not connect to wifi with these nightly builds. When I run iwlist I do see all the broadcasts including mine. My setup runs AES not TKIP.

When I go into raspi-config through a LAN adapter and go to the wifi section I get a message saying "Could not communicate with wpa-supplicant" and when i hit ok the next message is "There was an error running option N2 Wifi".


#21

Yes, worked through all the tips. It is a simple internal configuration error but massively frustrating. Imagine, buying a Koenigsegg, getting it home, then being told that it won't run on the gas in your country.

This is the lengthy output from the interrogative:
wlan0 Scan completed :
Cell 01 - Address: A0:04:60:B6:DB:78
Channel:3
Frequency:2.422 GHz (Channel 3)
Quality=70/70 Signal level=-28 dBm
Encryption key:on
ESSID:"NETGEAR16"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 80ms ago
IE: Unknown: 00094E4554474541523136
IE: Unknown: 010882848B961224486C
IE: Unknown: 030103
IE: Unknown: 2A0104
IE: Unknown: 32040C183060
IE: Unknown: 2D1AEC1117FFFF000001000000000000000000000000000000000000
IE: Unknown: 3D1603000600000000000000000000000000000000000000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 7F080100000000000000
IE: Unknown: 0B05060003127A
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F080100000000000000
IE: Unknown: 0706555320010B10
IE: Unknown: DDA60050F204104A0001101044000102103B0001031047001038833092309218838FA5A00460B6DB781021000D4E4554474541522C20496E632E1023001D4E45544745415220576972656C6573732041636365737320506F696E741024000552363232301042000831323334353637381054000800060050F20400011011001352363232302028576972656C6573732041502910080002210C103C0001011049000600372A000120
IE: Unknown: DD07000C4303000000
Cell 02 - Address: B8:3E:59:47:4C:DB
Channel:3
Frequency:2.422 GHz (Channel 3)
Quality=70/70 Signal level=-32 dBm
Encryption key:on
ESSID:"DIRECT-roku-694-2BB274"
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 2410ms ago
IE: Unknown: 00164449524543542D726F6B752D3639342D324242323734
IE: Unknown: 01088C129824B048606C
IE: Unknown: 030103
IE: Unknown: 0706555320010B1E
IE: Unknown: 200100
IE: Unknown: 23021200
IE: Unknown: 2A0104
IE: Unknown: 2F0104
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 2D1ABC1916FFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1603001300000000000000000000000000000000000000
IE: Unknown: 7F080400000000000040
IE: Unknown: DD090010180201004C0000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD050050F20500
IE: Unknown: DDA00050F204104A0001101044000102103B0001031047001022210203040506070809B83E59474CDB10210004526F6B7510230006526F6B7520331024001834323030582076657220382E30206275696C6420343138341042000C31472A2A2A2A2A2A2A3639341054000800060050F2040001101100164449524543542D726F6B752D3639342D324242323734100800020000103C0001011049000600372A000120
IE: Unknown: DD30506F9A09020200372B0D2100BA3E59474CD9008000080050F2040005001011000C526F6B752033202D203639340E0000
IE: Unknown: DD16506F9A0A00000601111C4400960A0006BA3E59474CD9
Cell 03 - Address: B8:3E:59:47:4C:DB
Channel:3
Frequency:2.422 GHz (Channel 3)
Quality=70/70 Signal level=-38 dBm
Encryption key:on
ESSID:"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 80ms ago
IE: Unknown: 001600000000000000000000000000000000000000000000
IE: Unknown: 01088C129824B048606C
IE: Unknown: 030103
IE: Unknown: 050400030000
IE: Unknown: 0706555320010B1E
IE: Unknown: 200100
IE: Unknown: 23021200
IE: Unknown: 2A0104
IE: Unknown: 2F0104
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 2D1ABC1916FFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1603001300000000000000000000000000000000000000
IE: Unknown: 7F080400000000000040
IE: Unknown: DD090010180201004C0000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD050050F20500
IE: Unknown: DD520050F204104A00011010440001021047001022210203040506070809B83E59474CDB1049000600372A0001201054000800060050F2040001101100164449524543542D726F6B752D3639342D324242323734
IE: Unknown: DD12506F9A09020200372B030600BA3E59474CD9
IE: Unknown: DD0D506F9A0A00000601111C440096
Cell 04 - Address: 58:8B:F3:16:20:86
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=28/70 Signal level=-82 dBm
Encryption key:on
ESSID:"CenturyLink2672"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 80ms ago
IE: Unknown: 000F43656E747572794C696E6B32363732
IE: Unknown: 010882848B962430486C
IE: Unknown: 03010B
IE: Unknown: 2A0104
IE: Unknown: 2F0104
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: 2D1AAC181BFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D160B081500000000000000000000000000000000000000
IE: Unknown: 7F080000000000000040
IE: Unknown: DD7B0050F204104A0001101044000102103B00010310470010C863F372B3EE5BED5F9D173D3FE70C21102100055A7958454C1023000643313130305A1024000643313130305A1042000839363332363847571054000800060050F20400011011000643313130305A10080002200C103C0001011049000600372A000120
IE: Unknown: DD090010180203000C0000
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00

Also tried compiling it denovo from the Github instructions, that ended in this at the build prompt:pi@raspberrypi:~/OctoPi/src $ sudo bash -x ./build_dist
+++ dirname ./build_dist
++ cd .
++ pwd

  • DIR=/home/pi/OctoPi/src
  • export DIST_PATH=/home/pi/OctoPi/src
  • DIST_PATH=/home/pi/OctoPi/src
  • export CUSTOM_PI_OS_PATH=/home/pi/CustomPiOS/src
  • CUSTOM_PI_OS_PATH=/home/pi/CustomPiOS/src
  • export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/pi/CustomPiOS/src
  • PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/pi/CustomPiOS/src
  • echo /home/pi/CustomPiOS/src
    /home/pi/CustomPiOS/src
  • /home/pi/CustomPiOS/src/build_custom_os
  • echo 'Distro path: /home/pi/OctoPi/src'
    Distro path: /home/pi/OctoPi/src
  • echo 'CustomPiOS path: /home/pi/CustomPiOS/src'
    CustomPiOS path: /home/pi/CustomPiOS/src
  • echo ================================================================
    ================================================================
    +++ dirname /home/pi/CustomPiOS/src/build_custom_os
    ++ cd /home/pi/CustomPiOS/src
    ++ pwd
  • DIR=/home/pi/CustomPiOS/src
  • /home/pi/CustomPiOS/src/build
  • '[' -n '' ']'
  • LOG=build.log
  • define SCRIPT
  • IFS='\n'
  • read -r -d '' SCRIPT
  • true
  • '[' build.log '!=' no ']'
  • touch build.log
  • chmod 666 build.log
  • eval 'BUILD_SCRIPT_PATH=(dirname (realpath -s BASH_SOURCE)) source {BUILD_SCRIPT_PATH}/common.sh
    install_cleanup_trap

CUSTOM_OS_PATH=(dirname (realpath -s $0))
pushd $CUSTOM_OS_PATH
export OCTOPI_COMMIT=git rev-parse HEAD
popd

source {CUSTOM_PI_OS_PATH}/config {@}
${CUSTOM_PI_OS_PATH}/config_sanity

[ "CONFIG_ONLY" == "yes" ] || source {CUSTOM_OS_PATH}/custompios

  • tee build.log
    '
    ++++ realpath -s /home/pi/CustomPiOS/src/build
    +++ dirname /home/pi/CustomPiOS/src/build
    ++ BUILD_SCRIPT_PATH=/home/pi/CustomPiOS/src
    ++ source /home/pi/CustomPiOS/src/common.sh
    ++ install_cleanup_trap
    ++ set -e
    ++ trap cleanup SIGINT SIGTERM
    ++++ realpath -s /home/pi/CustomPiOS/src/build
    +++ dirname /home/pi/CustomPiOS/src/build
    ++ CUSTOM_OS_PATH=/home/pi/CustomPiOS/src
    ++ pushd /home/pi/CustomPiOS/src
    /home/pi/CustomPiOS/src /home/pi/OctoPi/src
    +++ git rev-parse HEAD
    ++ export OCTOPI_COMMIT=6b44439433b19e12901a2387eb8a9e87ceaabc91
    ++ OCTOPI_COMMIT=6b44439433b19e12901a2387eb8a9e87ceaabc91
    ++ popd
    /home/pi/OctoPi/src
    ++ source /home/pi/CustomPiOS/src/config
    +++++ realpath -s /home/pi/CustomPiOS/src/config
    ++++ dirname /home/pi/CustomPiOS/src/config
    +++ CONFIG_DIR=/home/pi/CustomPiOS/src
    +++ BUILD_VARIANT=default
    +++ BUILD_FLAVOR=default
    +++ WORKSPACE_POSTFIX=
    +++ '[' 0 -gt 0 ']'
    +++ '[' 0 -gt 1 ']'
    +++ '[' default '!=' default ']'
    +++ echo -e '--> Building VARIANT default, FLAVOR default'
    --> Building VARIANT default, FLAVOR default
    +++ '[' -n '' ']'
    +++ '[' -n '' ']'
    +++ '[' -f /home/pi/CustomPiOS/src/config.local ']'
    +++ source /home/pi/OctoPi/src/config
    ++++ export DIST_NAME=OctoPi
    ++++ DIST_NAME=OctoPi
    ++++ export DIST_VERSION=0.15.0
    ++++ DIST_VERSION=0.15.0
    ++++ export 'MODULES=base(raspicam, network, disable-services(octopi), password-for-sudo)'
    ++++ MODULES='base(raspicam, network, disable-services(octopi), password-for-sudo)'
    +++ '[' -f /home/pi/OctoPi/src/config.local ']'
    +++ TMP='base,raspicam, network, disable-services,octopi), password-for-sudo)'
    +++ TMP='base,raspicam,network,disable-services,octopi),password-for-sudo)'
    +++ MODULES_LIST=base,raspicam,network,disable-services,octopi,,password-for-sudo,
    ++++ echo base,raspicam,network,disable-services,octopi,,password-for-sudo,
    ++++ tr , '\n'
    +++ for module in (echo "{MODULES_LIST}" | tr "," "\n")
    +++ '[' -d /home/pi/OctoPi/src/modules/base ']'
    +++ '[' -d /home/pi/CustomPiOS/src/modules/base ']'
    +++ export MODULE_PATH=/home/pi/CustomPiOS/src/modules/base
    +++ MODULE_PATH=/home/pi/CustomPiOS/src/modules/base
    +++ echo loading base config at /home/pi/CustomPiOS/src/modules/base/config
    loading base config at /home/pi/CustomPiOS/src/modules/base/config
    +++ '[' -f /home/pi/CustomPiOS/src/modules/base/config ']'
    +++ source /home/pi/CustomPiOS/src/modules/base/config
    ++++ '[' -n '' ']'
    ++++ BASE_PRESCRIPT=
    ++++ '[' -n '' ']'
    ++++ BASE_POSTSCRIPT=
    ++++ '[' -n '' ']'
    ++++ BASE_IMAGE_PATH=/home/pi/OctoPi/src/image
    ++++ '[' -n '' ']'
    ++++ BASE_IMAGE_RASPBIAN=yes
    ++++ '[' -n '' ']'
    +++++ head -n 1
    +++++ ls -t /home/pi/OctoPi/src/image/2018-04-18-raspbian-stretch-lite.zip
    ++++ BASE_ZIP_IMG=/home/pi/OctoPi/src/image/2018-04-18-raspbian-stretch-lite.zip
    ++++ '[' -n '' ']'
    ++++ BASE_WORKSPACE=/home/pi/OctoPi/src/workspace
    ++++ '[' -n '' ']'
    ++++ BASE_MOUNT_PATH=/home/pi/OctoPi/src/workspace/mount
    ++++ '[' -n '' ']'
    ++++ BASE_ROOT_PARTITION=2
    ++++ '[' -n '' ']'
    ++++ BASE_IMAGE_ENLARGEROOT=400
    ++++ '[' -n '' ']'
    ++++ BASE_IMAGE_RESIZEROOT=200
    ++++ '[' -n '' ']'
    ++++ BASE_APT_CACHE=/home/pi/OctoPi/src/workspace/aptcache
    ++++ '[' -n '' ']'
    ++++ BASE_APT_PROXY=
    ++++ '[' -n '' ']'
    ++++ BASE_PYPI_INDEX=
    ++++ '[' -n '' ']'
    ++++ BASE_OVERRIDE_HOSTNAME=octopi
    ++++ '[' -n '' ']'
    ++++ BASE_BUILD_REPO_MIRROR=
    ++++ '[' -n '' ']'
    ++++ BASE_SSH_ENABLE=yes
    ++++ '[' -n '' ']'
    +++++ pushd /home/pi/CustomPiOS/src
    +++++ git rev-parse HEAD
    +++++ popd
    ++++ BASE_COMMIT=6b44439433b19e12901a2387eb8a9e87ceaabc91
    +++ echo ================================================================
    ================================================================
    +++ echo 'Using the following config:'
    Using the following config:
    +++ module_up=BASE
    +++ module_up=BASE_
    +++ IFS=
    +++ read -r var
    ++++ compgen -A variable BASE_
    +++ export BASE_APT_CACHE
    +++ echo BASE_APT_CACHE
    BASE_APT_CACHE
    +++ IFS=
    +++ read -r var
    +++ export BASE_APT_PROXY
    +++ echo BASE_APT_PROXY
    BASE_APT_PROXY
    +++ IFS=
    +++ read -r var
    +++ export BASE_BUILD_REPO_MIRROR
    +++ echo BASE_BUILD_REPO_MIRROR
    BASE_BUILD_REPO_MIRROR
    +++ IFS=
    +++ read -r var
    +++ export BASE_COMMIT
    +++ echo BASE_COMMIT
    BASE_COMMIT
    +++ IFS=
    +++ read -r var
    +++ export BASE_IMAGE_ENLARGEROOT
    +++ echo BASE_IMAGE_ENLARGEROOT
    BASE_IMAGE_ENLARGEROOT
    +++ IFS=
    +++ read -r var
    +++ export BASE_IMAGE_PATH
    +++ echo BASE_IMAGE_PATH
    BASE_IMAGE_PATH
    +++ IFS=
    +++ read -r var
    +++ export BASE_IMAGE_RASPBIAN
    +++ echo BASE_IMAGE_RASPBIAN
    BASE_IMAGE_RASPBIAN
    +++ IFS=
    +++ read -r var
    +++ export BASE_IMAGE_RESIZEROOT
    +++ echo BASE_IMAGE_RESIZEROOT
    BASE_IMAGE_RESIZEROOT
    +++ IFS=
    +++ read -r var
    +++ export BASE_MOUNT_PATH
    +++ echo BASE_MOUNT_PATH
    BASE_MOUNT_PATH
    +++ IFS=
    +++ read -r var
    +++ export BASE_OVERRIDE_HOSTNAME
    +++ echo BASE_OVERRIDE_HOSTNAME
    BASE_OVERRIDE_HOSTNAME
    +++ IFS=
    +++ read -r var
    +++ export BASE_POSTSCRIPT
    +++ echo BASE_POSTSCRIPT
    BASE_POSTSCRIPT
    +++ IFS=
    +++ read -r var
    +++ export BASE_PRESCRIPT
    +++ echo BASE_PRESCRIPT
    BASE_PRESCRIPT
    +++ IFS=
    +++ read -r var
    +++ export BASE_PYPI_INDEX
    +++ echo BASE_PYPI_INDEX
    BASE_PYPI_INDEX
    +++ IFS=
    +++ read -r var
    +++ export BASE_ROOT_PARTITION
    +++ echo BASE_ROOT_PARTITION
    BASE_ROOT_PARTITION
    +++ IFS=
    +++ read -r var
    +++ export BASE_SSH_ENABLE
    +++ echo BASE_SSH_ENABLE
    BASE_SSH_ENABLE
    +++ IFS=
    +++ read -r var
    +++ export BASE_WORKSPACE
    +++ echo BASE_WORKSPACE
    BASE_WORKSPACE
    +++ IFS=
    +++ read -r var
    +++ export BASE_ZIP_IMG
    +++ echo BASE_ZIP_IMG
    BASE_ZIP_IMG
    +++ IFS=
    +++ read -r var
    +++ echo ================================================================
    ================================================================
    +++ for module in (echo "{MODULES_LIST}" | tr "," "\n")
    +++ '[' -d /home/pi/OctoPi/src/modules/raspicam ']'
    +++ '[' -d /home/pi/CustomPiOS/src/modules/raspicam ']'
    +++ export MODULE_PATH=/home/pi/CustomPiOS/src/modules/raspicam
    +++ MODULE_PATH=/home/pi/CustomPiOS/src/modules/raspicam
    +++ echo loading raspicam config at /home/pi/CustomPiOS/src/modules/raspicam/config
    loading raspicam config at /home/pi/CustomPiOS/src/modules/raspicam/config
    +++ '[' -f /home/pi/CustomPiOS/src/modules/raspicam/config ']'
    +++ source /home/pi/CustomPiOS/src/modules/raspicam/config
    +++ echo ================================================================
    ================================================================
    +++ echo 'Using the following config:'
    Using the following config:
    +++ module_up=RASPICAM
    +++ module_up=RASPICAM_
    +++ IFS=
    +++ read -r var
    ++++ compgen -A variable RASPICAM_
    +++ echo ================================================================
    ================================================================
    +++ for module in (echo "{MODULES_LIST}" | tr "," "\n")
    +++ '[' -d /home/pi/OctoPi/src/modules/network ']'
    +++ '[' -d /home/pi/CustomPiOS/src/modules/network ']'
    +++ export MODULE_PATH=/home/pi/CustomPiOS/src/modules/network
    +++ MODULE_PATH=/home/pi/CustomPiOS/src/modules/network
    +++ echo loading network config at /home/pi/CustomPiOS/src/modules/network/config
    loading network config at /home/pi/CustomPiOS/src/modules/network/config
    +++ '[' -f /home/pi/CustomPiOS/src/modules/network/config ']'
    +++ source /home/pi/CustomPiOS/src/modules/network/config
    +++ echo ================================================================
    ================================================================
    +++ echo 'Using the following config:'
    Using the following config:
    +++ module_up=NETWORK
    +++ module_up=NETWORK_
    +++ IFS=
    +++ read -r var
    ++++ compgen -A variable NETWORK_
    +++ echo ================================================================
    ================================================================
    +++ for module in (echo "{MODULES_LIST}" | tr "," "\n")
    +++ '[' -d /home/pi/OctoPi/src/modules/disable-services ']'
    +++ '[' -d /home/pi/CustomPiOS/src/modules/disable-services ']'
    +++ export MODULE_PATH=/home/pi/CustomPiOS/src/modules/disable-services
    +++ MODULE_PATH=/home/pi/CustomPiOS/src/modules/disable-services
    +++ echo loading disable-services config at /home/pi/CustomPiOS/src/modules/disable-services/config
    loading disable-services config at /home/pi/CustomPiOS/src/modules/disable-services/config
    +++ '[' -f /home/pi/CustomPiOS/src/modules/disable-services/config ']'
    +++ echo 'WARNING: module disable-services has no config file'
    WARNING: module disable-services has no config file
    +++ echo ================================================================
    ================================================================
    +++ echo 'Using the following config:'
    Using the following config:
    +++ module_up=DISABLE-SERVICES
    +++ module_up=DISABLE_SERVICES_
    +++ IFS=
    +++ read -r var
    ++++ compgen -A variable DISABLE_SERVICES_
    +++ echo ================================================================
    ================================================================
    +++ for module in (echo "{MODULES_LIST}" | tr "," "\n")
    +++ '[' -d /home/pi/OctoPi/src/modules/octopi ']'
    +++ export MODULE_PATH=/home/pi/OctoPi/src/modules/octopi
    +++ MODULE_PATH=/home/pi/OctoPi/src/modules/octopi
    +++ echo loading octopi config at /home/pi/OctoPi/src/modules/octopi/config
    loading octopi config at /home/pi/OctoPi/src/modules/octopi/config
    +++ '[' -f /home/pi/OctoPi/src/modules/octopi/config ']'
    +++ source /home/pi/OctoPi/src/modules/octopi/config
    ++++ '[' -n '' ']'
    +++++ wget -q -O - https://api.github.com/repos/foosel/OctoPrint/releases/latest
    +++++ grep zipball_url
    +++++ cut -d : -f 2,3
    +++++ tr -d ,
    +++++ tr -d '"'
    ++++ OCTOPI_OCTOPRINT_ARCHIVE=' https://api.github.com/repos/foosel/OctoPrint/zipball/1.3.8'
    ++++ '[' -n '' ']'
    ++++ OCTOPI_OCTOPRINT_REPO_SHIP=https://github.com/foosel/OctoPrint.git
    ++++ '[' -n '' ']'
    ++++ OCTOPI_INCLUDE_OCTOPRINT=yes
    ++++ '[' -n '' ']'
    ++++ OCTOPI_PYBONJOUR_ARCHIVE=https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pybonjour/pybonjour-1.1.1.tar.gz
    ++++ '[' -n '' ']'
    ++++ OCTOPI_CURAENGINE_VERSION=15.04.6
    ++++ '[' -n '' ']'
    ++++ OCTOPI_CURAENGINE_ARCHIVE=https://github.com/Ultimaker/CuraEngine/archive/15.04.6.zip
    ++++ '[' -n '' ']'
    ++++ OCTOPI_INCLUDE_CURAENGINE=yes
    ++++ '[' -n '' ']'
    ++++ OCTOPI_MJPGSTREAMER_REPO_SHIP=https://github.com/jacksonliam/mjpg-streamer.git
    ++++ '[' -n '' ']'
    ++++ OCTOPI_MJPGSTREAMER_REPO_BUILD=
    ++++ '[' -n '' ']'
    ++++ OCTOPI_MJPGSTREAMER_REPO_BRANCH=master
    ++++ '[' -n '' ']'
    ++++ OCTOPI_MJPGSTREAMER_REPO_DEPTH=1
    ++++ '[' -n '' ']'
    ++++ OCTOPI_INCLUDE_MJPGSTREAMER=yes
    ++++ '[' -n '' ']'
    ++++ OCTOPI_INCLUDE_HAPROXY=yes
    ++++ '[' -n '' ']'
    ++++ OCTOPI_INCLUDE_WIRINGPI=yes
    ++++ '[' -n '' ']'
    +++++ wget -q -O - https://api.github.com/repos/mikefarah/yq/releases/latest
    +++++ grep browser_download_url
    +++++ grep yq_linux_arm
    +++++ tr -d ,
    +++++ tr -d '"'
    +++++ cut -d : -f 2,3
    ++++ OCTOPI_YQ_DOWNLOAD=' https://github.com/mikefarah/yq/releases/download/1.14.1/yq_linux_arm'
    ++++ '[' -n 6b44439433b19e12901a2387eb8a9e87ceaabc91 ']'
    +++ echo ================================================================
    ================================================================
    +++ echo 'Using the following config:'
    Using the following config:
    +++ module_up=OCTOPI
    +++ module_up=OCTOPI_
    +++ IFS=
    +++ read -r var
    ++++ compgen -A variable OCTOPI_
    +++ export OCTOPI_COMMIT
    +++ echo OCTOPI_COMMIT
    OCTOPI_COMMIT
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_CURAENGINE_ARCHIVE
    +++ echo OCTOPI_CURAENGINE_ARCHIVE
    OCTOPI_CURAENGINE_ARCHIVE
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_CURAENGINE_VERSION
    +++ echo OCTOPI_CURAENGINE_VERSION
    OCTOPI_CURAENGINE_VERSION
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_INCLUDE_CURAENGINE
    +++ echo OCTOPI_INCLUDE_CURAENGINE
    OCTOPI_INCLUDE_CURAENGINE
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_INCLUDE_HAPROXY
    +++ echo OCTOPI_INCLUDE_HAPROXY
    OCTOPI_INCLUDE_HAPROXY
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_INCLUDE_MJPGSTREAMER
    +++ echo OCTOPI_INCLUDE_MJPGSTREAMER
    OCTOPI_INCLUDE_MJPGSTREAMER
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_INCLUDE_OCTOPRINT
    +++ echo OCTOPI_INCLUDE_OCTOPRINT
    OCTOPI_INCLUDE_OCTOPRINT
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_INCLUDE_WIRINGPI
    +++ echo OCTOPI_INCLUDE_WIRINGPI
    OCTOPI_INCLUDE_WIRINGPI
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_MJPGSTREAMER_REPO_BRANCH
    +++ echo OCTOPI_MJPGSTREAMER_REPO_BRANCH
    OCTOPI_MJPGSTREAMER_REPO_BRANCH
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_MJPGSTREAMER_REPO_BUILD
    +++ echo OCTOPI_MJPGSTREAMER_REPO_BUILD
    OCTOPI_MJPGSTREAMER_REPO_BUILD
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_MJPGSTREAMER_REPO_DEPTH
    +++ echo OCTOPI_MJPGSTREAMER_REPO_DEPTH
    OCTOPI_MJPGSTREAMER_REPO_DEPTH
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_MJPGSTREAMER_REPO_SHIP
    +++ echo OCTOPI_MJPGSTREAMER_REPO_SHIP
    OCTOPI_MJPGSTREAMER_REPO_SHIP
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_OCTOPRINT_ARCHIVE
    +++ echo OCTOPI_OCTOPRINT_ARCHIVE
    OCTOPI_OCTOPRINT_ARCHIVE
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_OCTOPRINT_REPO_SHIP
    +++ echo OCTOPI_OCTOPRINT_REPO_SHIP
    OCTOPI_OCTOPRINT_REPO_SHIP
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_PYBONJOUR_ARCHIVE
    +++ echo OCTOPI_PYBONJOUR_ARCHIVE
    OCTOPI_PYBONJOUR_ARCHIVE
    +++ IFS=
    +++ read -r var
    +++ export OCTOPI_YQ_DOWNLOAD
    +++ echo OCTOPI_YQ_DOWNLOAD
    OCTOPI_YQ_DOWNLOAD
    +++ IFS=
    +++ read -r var
    +++ echo ================================================================
    ================================================================
    +++ for module in (echo "{MODULES_LIST}" | tr "," "\n")
    +++ '[' -d /home/pi/OctoPi/src/modules/password-for-sudo ']'
    +++ '[' -d /home/pi/CustomPiOS/src/modules/password-for-sudo ']'
    +++ export MODULE_PATH=/home/pi/CustomPiOS/src/modules/password-for-sudo
    +++ MODULE_PATH=/home/pi/CustomPiOS/src/modules/password-for-sudo
    +++ echo loading password-for-sudo config at /home/pi/CustomPiOS/src/modules/password-for-sudo/config
    loading password-for-sudo config at /home/pi/CustomPiOS/src/modules/password-for-sudo/config
    +++ '[' -f /home/pi/CustomPiOS/src/modules/password-for-sudo/config ']'
    +++ echo 'WARNING: module password-for-sudo has no config file'
    WARNING: module password-for-sudo has no config file
    +++ echo ================================================================
    ================================================================
    +++ echo 'Using the following config:'
    Using the following config:
    +++ module_up=PASSWORD-FOR-SUDO
    +++ module_up=PASSWORD_FOR_SUDO_
    +++ IFS=
    +++ read -r var
    ++++ compgen -A variable PASSWORD_FOR_SUDO_
    +++ echo ================================================================
    ================================================================
    ++ /home/pi/CustomPiOS/src/config_sanity
    ++ '[' '' == yes ']'
    ++ source /home/pi/CustomPiOS/src/custompios
    +++ set -e
    +++ export LC_ALL=C
    +++ LC_ALL=C
    +++ source /home/pi/CustomPiOS/src/common.sh
    +++ mkdir -p /home/pi/OctoPi/src/workspace
    +++ mkdir -p /home/pi/OctoPi/src/workspace/mount
    +++ install_cleanup_trap
    +++ set -e
    +++ trap cleanup SIGINT SIGTERM
    +++ install_fail_on_error_trap
    +++ set -e
    +++ trap 'echo_red "build failed, unmounting image..." && cd $DIST_PATH && ( unmount_image $BASE_MOUNT_PATH force || true ) && echo_red -e "\nBUILD FAILED!\n"' ERR
    +++ unmount_image /home/pi/OctoPi/src/workspace/mount force
    +++ mount_path=/home/pi/OctoPi/src/workspace/mount
    +++ force=
    +++ '[' 2 -gt 1 ']'
    +++ force=force
    +++ '[' -n force ']'
    ++++ sudo lsof /home/pi/OctoPi/src/workspace/mount
    ++++ awk '{print $2}'
    sudo: lsof: command not found
    ++++ sudo mount
    ++++ grep /home/pi/OctoPi/src/workspace/mount
    ++++ awk -F on '{print $2}'
    ++++ awk '{print $1}'
    ++++ sort -r
    +++ pushd /home/pi/OctoPi/src/workspace
    /home/pi/OctoPi/src/workspace /home/pi/OctoPi/src
    +++ '[' -e '*.img' ']'
    +++ '[' '!' -f /home/pi/OctoPi/src/image/2018-04-18-raspbian-stretch-lite.zip ']'
    +++ '[' /home/pi/OctoPi/src/image/2018-04-18-raspbian-stretch-lite.zip == '' ']'
    +++ 7za x -aoa /home/pi/OctoPi/src/image/2018-04-18-raspbian-stretch-lite.zip
    /home/pi/CustomPiOS/src/custompios: line 46: 7za: command not found
    ++++ echo_red 'build failed, unmounting image...'
    ++++ echo -e -n '\e[91m'
    ++++ echo build failed, unmounting image...
    build failed, unmounting image...
    ++++ echo -e -n '\e[0m'
    ++++ cd /home/pi/OctoPi/src
    ++++ unmount_image /home/pi/OctoPi/src/workspace/mount force
    ++++ mount_path=/home/pi/OctoPi/src/workspace/mount
    ++++ force=
    ++++ '[' 2 -gt 1 ']'
    ++++ force=force
    ++++ '[' -n force ']'
    +++++ sudo lsof /home/pi/OctoPi/src/workspace/mount
    +++++ awk '{print $2}'
    sudo: lsof: command not found
    +++++ sudo mount
    +++++ grep /home/pi/OctoPi/src/workspace/mount
    +++++ awk -F on '{print $2}'
    +++++ awk '{print $1}'
    +++++ sort -r
    ++++ echo_red -e '\nBUILD FAILED!\n'
    ++++ echo -e -n '\e[91m'
    ++++ echo -e '\nBUILD' 'FAILED!\n'

BUILD FAILED!

++++ echo -e -n '\e[0m'

  • exit 1

I know that is blowing up the forum but maybe it will mean something to someone who knows.
I am screwed, guess my ignorance ensures I cannot use the Pi as planned for the Anet A8 and have to use the acursed PC.
Thank you for trying.
Jeff


#22

@Jeff_Holverson I think the problem is that your Pi is just not connecting to WiFi. I'd bet that the rest of your OctoPi installation is running fine. Have you tried connecting your Pi to your network with an ethernet cable, rather than via WiFi? Even if this is not a permanent fix for you, it woud confirm that you have everything else set up.

On your output from sudo iwlist wlan0 scan:
The good news is, your Pi's WiFi is turned on and can see activity in your area.

Your pi can see a strong, clear signal for "NETGEAR16". If that's the one you are trying to connect to, it should be possible. There are two other fairly strong cells using the same WiFi channel (one appears to be your Roku, I don't know what the other is). I don't know enough about this to say whether those multiple access points on the same channel are a part of the problem or not. It certainly would not hurt to change your router to some other channel that doesn't have a lot of traffic on it. (If you don't already know how to change the channel, you are going to have to google changing your specific model router's WiFi channel to find out.)

The Pi also sees a very weak signal for WiFi SSID "CenturyLink2672" on WiFi channel 11. If this is what you are trying to connect to, your Pi needs to be a lot closer, or remove obstructions which may be blocking the signal.


#23

@DM_Cam - I seem to remember someone else getting the "Could not communicate with wpa-supplicant" error, and it turned out to be that their editing of the /boot/octopi-wpa-supplicant.txt file was messed up. I think they had failed to uncomment one of the needed lines (left a # in where it should have been removed), or messed up the indenting, or some other minor thing. It should look just like this (with your own SSID and password filled in, indentation preserved, and the quotes left in place):

## WPA/WPA2 secured
network={
  ssid="MYSSID"
  psk="MYPASSWORD"
}

If that doesn't work, and you've already worked through the WiFi tips post I linked earlier, you may be approaching the limit of what I can help with, and we'll need to call in someone with more expertise.

What do you see when you issue the sudo iwlist wlan0 scan command I mentioned earlier?


#24

Thank you again.
I use the Netgear16 router and that is my primary router. The other connected devices are on separate channels and so shouldn't effect the RPI-Octoprint connect.
It is hard to explore any further due to the limited options available while the Octoprint image is running, The SSID is Netgear16 and I triple checked the password for typo's and case issues. I also verified that the supplicant file changes were done correctly, three times. It seems that maybe another level might be able to help. I am no expert at this but I use the Pi as my main computer and am fairly competent with the OS.
Please show the information to anyone that can help and if the program needs a RPI 3B+ to work out the kinks they are welcome to one from me. This is the machine that t he whole world will be using for the foreseeable future and I want your program to work seamlessly and be super easy.
Be safe!
Jeff KG7TXI


#25

For what it's worth, I installed the latest nightly for OctoPi this morning on a Raspberry Pi 3 B+ and it connected to my wi-fi without problems.

Router: Netgear Gateway C3000-100NAS using WPA2-PSK [AES] for wi-fi authentication, (2.4GHz b/g/n)

You might check your router's connection table to see if the Raspi is connected and has been issued an IP address.

Adafruit's Pi Finder is helpful when adding a Pi to the network (assuming it's connected of course).

Sometimes I connect a keyboard/mouse/monitor to a new Raspi setup so that I can log in locally and adjust the network settings as necessary. (Once it's happy, it then goes headless.)


#26

Hey John,

Since having the optional power adapter, I took the PI to work and after revising the WPA config, there were some hash tags I know I removed but were not saved. So one # in the WPA area was still there and I had two countries uncommented. Double checked everything, inserted my work wifi info and immediately connected. Thanks for your support.


#27

Jeff - the first three listed were all showing on channel 3 (2.422 GHz). Perhaps some of these may vary from time to time, since some devices have the ability to seek a clear channel. At the time you ran the command, however, three were on the same channel. No guarantee that changing the channel will fix the problem, but it can't hurt.


#28

@OutsourcedGuru - In Jeff's case, the output of the ifconfig command he sent to his Pi already shows that he is not connected to WiFi so has no IP address form that. The output from sudo iwlist wlan0 scan shows that his Pi can see the nerwork (and has a strong signal from it). So between the two, be know the WiFi chip on his Pi is up and running, but for some reason, he is not logging in to the desired network.

He's apparently got some sort of connection to the Pi, since he is able to access the command line.