Jump to content

Please help installing Polyglot


Recommended Posts

Posted

Copy / Paste the console output of your install command with all output/information.  Hopefully there's some error or message there.  Otherwise it's a guessing game.

Posted

I wanted to see the full complete output of the install.  I want to see everything in your term window including the full install command you enter.  

Posted
4 minutes ago, simplextech said:

I wanted to see the full complete output of the install.  I want to see everything in your term window including the full install command you enter.  

OK.  Another stupid question.  How do I send that to you?  I can't copy/paste from the pi to my Mac?  Take a picture and attach it?

Posted
Just now, smarthome_newbie said:

OK.  Another stupid question.  How do I send that to you?  I can't copy/paste from the pi to my Mac?  Take a picture and attach it?

Wait.  How are you interacting with the Pi?  Do you not have a terminal window open and an SSH connection to the rPi?

Posted
4 minutes ago, simplextech said:

Wait.  How are you interacting with the Pi?  Do you not have a terminal window open and an SSH connection to the rPi?

I'm at the "pi@raspberrypi: prompt."  Not sure about terminal windows open and SSH.  Is that my problem?  Ugh. I feel so dumb.

Posted
2 minutes ago, smarthome_newbie said:

I'm at the "pi@raspberrypi: prompt."  Not sure about terminal windows open and SSH.  Is that my problem?  Ugh. I feel so dumb.

How are you at that prompt?  Do you have a keyboard and monitor connected to the rPi or are you using a remote connection from your Mac?

Posted
1 minute ago, simplextech said:

How are you at that prompt?  Do you have a keyboard and monitor connected to the rPi or are you using a remote connection from your Mac?

Keyboard any monitor connected to rPi.

Posted

Ok.  I'm not sure I can help much without more details and screen output.  You will need to use the terminal app from your Mac and ssh to the rpi to be able to copy paste the output.  Depending on how you installed the rpi and which distribution (lite/desktop) openssh-server may not be installed or running.  Unfortunately it's late for me so I can't continue this tonight.  

The basis of the problem seems to be an issue with the install.  Unless I or anyone else can see the output of the install command there's no way to troubleshoot this.

Posted
2 minutes ago, simplextech said:

Ok.  I'm not sure I can help much without more details and screen output.  You will need to use the terminal app from your Mac and ssh to the rpi to be able to copy paste the output.  Depending on how you installed the rpi and which distribution (lite/desktop) openssh-server may not be installed or running.  Unfortunately it's late for me so I can't continue this tonight.  

The basis of the problem seems to be an issue with the install.  Unless I or anyone else can see the output of the install command there's no way to troubleshoot this.

I appreciate your help.  Tomorrow, please let me know if I can send a screenshot from the rPi (take photo of monitor).  I'm not sure how to use terminal app from Mac and ssh.

Posted
1 hour ago, simplextech said:

Ok.  I'm not sure I can help much without more details and screen output.  You will need to use the terminal app from your Mac and ssh to the rpi to be able to copy paste the output.  Depending on how you installed the rpi and which distribution (lite/desktop) openssh-server may not be installed or running.  Unfortunately it's late for me so I can't continue this tonight.  

The basis of the problem seems to be an issue with the install.  Unless I or anyone else can see the output of the install command there's no way to troubleshoot this.

I had the lite version installed.  Reformatted and installed the full version to see if that would help.  Still having the same problem. Below is from rPi.  I tried logging in to https://192.168.1.138:3000 from my browser on Mac but says failed to open page.  Any help is appreciated!

 

pi@raspberrypi:~ $ wget -qO - https://raw.githubusercontent.com/UniversalDevicesInc/polyglot-v2/master/scripts/install.sh | bash -e

########################################################################################
Staring Polyglot Install ......
Updating System and installing MongoDB, git, python3, curl and relevant dependencies
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists...
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
########################################################################################
Staring Polyglot Install ......
Updating System and installing MongoDB, git, python3, curl and relevant dependencies
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists...
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libboost-system1.58.0:armhf.
(Reading database ... 154570 files and directories currently installed.)
Preparing to unpack .../0-libboost-system1.58.0_1.58.0+dfsg-5.1+rpi1+b4_armhf.deb ...
Unpacking libboost-system1.58.0:armhf (1.58.0+dfsg-5.1+rpi1+b4) ...
Selecting previously unselected package libboost-filesystem1.58.0:armhf.
Preparing to unpack .../1-libboost-filesystem1.58.0_1.58.0+dfsg-5.1+rpi1+b4_armhf.deb ...
Unpacking libboost-filesystem1.58.0:armhf (1.58.0+dfsg-5.1+rpi1+b4) ...
Selecting previously unselected package libboost-program-options1.58.0:armhf.
Preparing to unpack .../2-libboost-program-options1.58.0_1.58.0+dfsg-5.1+rpi1+b4_armhf.deb ...
Unpacking libboost-program-options1.58.0:armhf (1.58.0+dfsg-5.1+rpi1+b4) ...
Selecting previously unselected package libboost-thread1.58.0:armhf.
Preparing to unpack .../3-libboost-thread1.58.0_1.58.0+dfsg-5.1+rpi1+b4_armhf.deb ...
Unpacking libboost-thread1.58.0:armhf (1.58.0+dfsg-5.1+rpi1+b4) ...
Selecting previously unselected package libpcap0.8:armhf.
Preparing to unpack .../4-libpcap0.8_1.8.1-6_armhf.deb ...
Unpacking libpcap0.8:armhf (1.8.1-6) ...
Selecting previously unselected package libpcrecpp0v5:armhf.
Preparing to unpack .../5-libpcrecpp0v5_2%3a8.39-12_armhf.deb ...
Unpacking libpcrecpp0v5:armhf (2:8.39-12) ...
Selecting previously unselected package libv8-3.14.5.
Preparing to unpack .../6-libv8-3.14.5_3.14.5.8-11_armhf.deb ...
Unpacking libv8-3.14.5 (3.14.5.8-11) ...
Selecting previously unselected package mongodb-clients.
Preparing to unpack .../7-mongodb-clients_1%3a2.4.14-4_armhf.deb ...
Unpacking mongodb-clients (1:2.4.14-4) ...
Selecting previously unselected package mongodb-server.
Preparing to unpack .../8-mongodb-server_1%3a2.4.14-4_armhf.deb ...
Unpacking mongodb-server (1:2.4.14-4) ...
Setting up libpcrecpp0v5:armhf (2:8.39-12) ...
Setting up libboost-system1.58.0:armhf (1.58.0+dfsg-5.1+rpi1+b4) ...
Setting up libboost-program-options1.58.0:armhf (1.58.0+dfsg-5.1+rpi1+b4) ...
Setting up libboost-thread1.58.0:armhf (1.58.0+dfsg-5.1+rpi1+b4) ...
Setting up libpcap0.8:armhf (1.8.1-6) ...
Setting up libboost-filesystem1.58.0:armhf (1.58.0+dfsg-5.1+rpi1+b4) ...
Setting up libv8-3.14.5 (3.14.5.8-11) ...
Setting up mongodb-clients (1:2.4.14-4) ...
Setting up mongodb-server (1:2.4.14-4) ...
Adding system user `mongodb' (UID 110) ...
Adding new user `mongodb' (UID 110) with group `nogroup' ...
Not creating home directory `/var/lib/mongodb'.
Adding group `mongodb' (GID 115) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
Created symlink /etc/systemd/system/multi-user.target.wants/mongodb.service ��� /lib/systemd/system/mongodb.service.
Processing triggers for systemd (241-5+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
########################################################################################
Moving to polyglot directory ......
CPU Type is armv7l
Removing existing version of polyglot if it exists.
Getting polyglot-v2-linux-armv7 from S3
Extracting polyglot-v2-linux-armv7.tar.gz...
Complete...
Retrieving Systemd startup scripts from GitHub
Created symlink /etc/systemd/system/multi-user.target.wants/polyglot-v2.service ��� /lib/systemd/system/polyglot-v2.service.
###################################################################################
DONE! Login to Polyglot v2 at https://192.168.1.138:3000
Username: admin
Password: admin
Be patient. It may take up to three minutes for the interface to be available while
MongoDB and Polyglot start up for the first time.
###################################################################################
pi@raspberrypi:~ $ 
Posted

It is possible that the current version of Polyglot is not tested on Buster and there is a coflict? Depending on which version of Raspberry Pi you are using, maybe you should install Stretch.

Posted

There's been no basic network connectivity testing, actually -- so that'd be where to start.  We can see that the Rpi has internet connectivity, and presumably the Mac does as well -- but one needs to check that the Rpi's IP address can be pinged from the Mac.  Since I'm not a mac user, I can't help with how to open a terrminal window on that machine to run the "ping" command - but that's the next logical step.

 

Posted
On 8/1/2019 at 8:13 PM, smarthome_newbie said:

I bought one of the Canakits with noobs preinstalled.  I successfly installed raspbian.  It looks like a windows desktop and I'm not sure where to go to do the install script for polyglot.  Please help. I don't have my ISY yet.  Supposed to be delivered Monday.  Thanks!

Get rid of the NOOBS! I had nothing but trouble with many different sources of it.NOOBS was always missing basic install utilities on my three RPis.  Find a clean lone Raspian O/S install where most of the packages are not trimmed out for size.

Posted
2 hours ago, mwester said:

There's been no basic network connectivity testing, actually -- so that'd be where to start.  We can see that the Rpi has internet connectivity, and presumably the Mac does as well -- but one needs to check that the Rpi's IP address can be pinged from the Mac.  Since I'm not a mac user, I can't help with how to open a terrminal window on that machine to run the "ping" command - but that's the next logical step.

 

I know how to open terminal.  What would the ping command be?

Posted
9 minutes ago, larryllix said:

Get rid of the NOOBS! I had nothing but trouble with many different sources of it.NOOBS was always missing basic install utilities on my three RPis.  Find a clean lone Raspian O/S install where most of the packages are not trimmed out for size.

I got rid of it.  Still having issues with the full version.  

Posted
3 hours ago, DennisC said:

It is possible that the current version of Polyglot is not tested on Buster and there is a coflict? Depending on which version of Raspberry Pi you are using, maybe you should install Stretch.

Perhaps.  Where can I get Stretch since it has been replaced by Buster?

Posted
42 minutes ago, smarthome_newbie said:

Only buster at that link. I’m at a loss as to what to do. 

Hmmmmmm. I guess the webpage is a bit out of date as are we.

I would try the Buster image without the NOOBs then. You may need to repartition your microSD card as the RPi installations fragment the SD card. This may not be necessary as the install may straighten it all out and just do it again? 

Posted
1 minute ago, larryllix said:

Hmmmmmm. I guess the webpage is a bit out of date as are we.

I would try the Buster image without the NOOBs then. You may need to repartition your microSD card as the RPi installations fragment the SD card. This may not be necessary as the install may straighten it all out and just do it again? 

I actually tried Buster without Noobs.  I'm still having the same issue.  I can't figure out what's wrong.  This is so strange.  Any other ideas?

Posted

Can you ping the pi from your Mac?  Open a terminal and run 'ping <ip>' and see if you get a response or if it errors.  If that is good then you have network communications.  I'm going to download buster and flash to a pi and see if I can replicate the problem.

Posted

I just went through a full clean install and had no problems.  Everything installs fine and comes online.

Raspbian Buster Lite Image:  https://downloads.raspberrypi.org/raspbian_lite_latest

I used Balena Etcher to flash the SD Card:  https://www.balena.io/etcher/

After flashing the image I then "touch" a file aka create a blank/empty file in the boot partition on the SD card.  The file name is "ssh" with no extension.  This will enable the SSH server on first boot.  Not sure on a Mac but after the image is burned you can then remove the sd card and put it back and the Mac should mount the "/boot" partition automatically.  Just create a blank file with no extension named "ssh" in the boot directory and then unmount the sd card and put it in your raspberry pi and boot it.

I SSH into the raspberry pi at my IP address.  Using a Mac Terminal or Putty on windows either way.  On Mac you open a terminal and type "ssh pi@<ip_address>" of your pi and then enter the password.  Default on raspbian install is "raspberry".  If you're using a keyboard and monitor the boot screen will show you the IP address of the rPi if you don't know it or have it reserved in your DHCP server already.  Otherwise you can just login at the terminal from the keyboard.

I then copy/pasted the install command from the polyglot-v2 install instructions:

  • wget -qO - https://raw.githubusercontent.com/UniversalDevicesInc/polyglot-v2/master/scripts/install.sh | bash -e
    

The install stakes 5+ minutes and when done give it another minute or so for things to start up and load.  I use Chrome and FireFox.  Not sure how Safari handles the security warning.  I get the normal security warning from the self-signed certificate.  Click accept or continue anyways and Polyglot is loaded and running.  Make sure in your browser you enter "https://" and then the IP Address and Port of your raspberry pi install.  Example "https://192.168.1.100:3000"

Posted
3 hours ago, simplextech said:

I just went through a full clean install and had no problems.  Everything installs fine and comes online.

Raspbian Buster Lite Image:  https://downloads.raspberrypi.org/raspbian_lite_latest

I used Balena Etcher to flash the SD Card:  https://www.balena.io/etcher/

After flashing the image I then "touch" a file aka create a blank/empty file in the boot partition on the SD card.  The file name is "ssh" with no extension.  This will enable the SSH server on first boot.  Not sure on a Mac but after the image is burned you can then remove the sd card and put it back and the Mac should mount the "/boot" partition automatically.  Just create a blank file with no extension named "ssh" in the boot directory and then unmount the sd card and put it in your raspberry pi and boot it.

I SSH into the raspberry pi at my IP address.  Using a Mac Terminal or Putty on windows either way.  On Mac you open a terminal and type "ssh pi@<ip_address>" of your pi and then enter the password.  Default on raspbian install is "raspberry".  If you're using a keyboard and monitor the boot screen will show you the IP address of the rPi if you don't know it or have it reserved in your DHCP server already.  Otherwise you can just login at the terminal from the keyboard.

I then copy/pasted the install command from the polyglot-v2 install instructions:

  • 
    wget -qO - https://raw.githubusercontent.com/UniversalDevicesInc/polyglot-v2/master/scripts/install.sh | bash -e
    

The install stakes 5+ minutes and when done give it another minute or so for things to start up and load.  I use Chrome and FireFox.  Not sure how Safari handles the security warning.  I get the normal security warning from the self-signed certificate.  Click accept or continue anyways and Polyglot is loaded and running.  Make sure in your browser you enter "https://" and then the IP Address and Port of your raspberry pi install.  Example "https://192.168.1.100:3000"

Thanks for testing it!  I am in terminal on my Mac and it says "permission denied" after entering "raspberry" as the password.  I've tried multiple times.  Any ideas?

Posted

Did you preface the command with pi@

ssh pi@<ip>

on Mac it may be different for the user so try

ssh -l pi <ip>

otherwise if the username is not the default then I wouldn't know.  It will be the same as what you used logging in with a keyboard and monitor attached.  The only other possibility is back to SSH not actually running which is why you can't get remote access.  Even without the remote access if everything else ran correctly during your install then you shouldn't really need it that much.  

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...