The 'Raspberry Pi' thread

Discussion in 'Other CPUs and chipsets' started by HyRax1, May 8, 2011.

  1. Blinky

    Blinky Member

    Joined:
    Jul 4, 2001
    Messages:
    2,583
    Location:
    Brisbane CBD
    Hi all, are the Pi4 model B,4GB ones still hard to get?
    I have a new one here with a genuine screen attached. What do you think I should ask for them?
    Thanks
     
    Last edited: Oct 5, 2019
  2. MUTMAN

    MUTMAN Member

    Joined:
    Jun 27, 2001
    Messages:
    7,184
    Location:
    4109
    Second hand/box opened/used ?
    $35 for the pi
    $55 for the lcd
     
    Last edited: Oct 5, 2019
  3. Blinky

    Blinky Member

    Joined:
    Jul 4, 2001
    Messages:
    2,583
    Location:
    Brisbane CBD
    Yes opened to have a play with them, but that’s about it
     
  4. CQGLHyperion

    CQGLHyperion Member

    Joined:
    Feb 3, 2003
    Messages:
    1,545
    Location:
    North Rockhampton
    Has anyone got unifi controller to work on a Pi 3B?

    I followed all the instruction and guides on the net but the bloody thing won't let me connect on the 8443 port.

    Pulling my hair out here.
     
  5. Symon

    Symon Castigat ridendo mores

    Joined:
    Apr 17, 2002
    Messages:
    4,668
    Location:
    Brisbane QLD
    I've been running it on a Pi B v1 for years, recently I upgraded it to a Pi v3 B+

    Most of the guides out there for UniFi on pi are way out of date, there is an automated installer for it now.

    Update everything, and then run -

    sudo apt-get install unifi
     
  6. CQGLHyperion

    CQGLHyperion Member

    Joined:
    Feb 3, 2003
    Messages:
    1,545
    Location:
    North Rockhampton
    Cheers but I ran that and it is currently running the latest version.
     
  7. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    40,402
    Location:
    Brisbane
    Time for some Linux 101. :)

    Run "sudo ss -plutn", and it will list all listening ports. Do you see java listening on 8443? If not, your service isn't running.

    And if your service isn't running, check the logs and find out why.

    There are no mysteries with Linux. If something isn't working, it'll tell you verbosely why. Read the logs, go from there.
     
    CQGLHyperion likes this.
  8. CQGLHyperion

    CQGLHyperion Member

    Joined:
    Feb 3, 2003
    Messages:
    1,545
    Location:
    North Rockhampton
    Only the VNC server running on 5900

    [2019-10-07T17:08:55,049] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -XX:+ExitOnOut$

    [2019-10-07T15:39:08,018] <main> WARN system - reload system.properties failed: file not found
    [2019-10-07T15:39:08,051] <main> WARN system - reload system.properties.bk failed: file not found

    All the resolutions talk about limiting the memory using the above file but it doesn't exist or I can't see it.
     
  9. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    40,402
    Location:
    Brisbane
    I don't see any errors relating to memory.

    What version of mongo DB are you running?

    sudo dpkg -l | grep -i mongo
     
  10. Symon

    Symon Castigat ridendo mores

    Joined:
    Apr 17, 2002
    Messages:
    4,668
    Location:
    Brisbane QLD
    For comparison here is mine -

    Code:
    pi@unifi:~ $ sudo ss -plutn
    Netid State   Recv-Q  Send-Q            Local Address:Port    Peer Address:Port                                                                  
    udp   UNCONN  0       0                       0.0.0.0:39315        0.0.0.0:*                                                                        users:(("avahi-daemon",pid=268,fd=14))
    udp   UNCONN  0       0                       0.0.0.0:68           0.0.0.0:*                                                                        users:(("dhcpcd",pid=315,fd=10))
    udp   UNCONN  0       0                       0.0.0.0:161          0.0.0.0:*                                                                        users:(("snmpd",pid=332,fd=10))
    udp   UNCONN  0       0                       0.0.0.0:60633        0.0.0.0:*                                                                        users:(("snmpd",pid=332,fd=11))
    udp   UNCONN  0       0                       0.0.0.0:5353         0.0.0.0:*                                                                        users:(("avahi-daemon",pid=268,fd=12))
    udp   UNCONN  0       0                             *:3478               *:*                                                                        users:(("java",pid=613,fd=168))
    udp   UNCONN  0       0                             *:52330              *:*                                                                        users:(("avahi-daemon",pid=268,fd=15))
    udp   UNCONN  0       0                             *:5353               *:*                                                                        users:(("avahi-daemon",pid=268,fd=13))
    udp   UNCONN  0       0                             *:10001              *:*                                                                        users:(("java",pid=613,fd=158))
    udp   UNCONN  0       0        [::ffff:192.168.2.212]:38233              *:*                                                                        users:(("java",pid=613,fd=157))
    tcp   LISTEN  0       128                     0.0.0.0:22           0.0.0.0:*                                                                        users:(("sshd",pid=351,fd=3))
    tcp   LISTEN  0       5                       0.0.0.0:5900         0.0.0.0:*                                                                        users:(("vncserver-x11-c",pid=333,fd=10))
    tcp   LISTEN  0       128                   127.0.0.1:27117        0.0.0.0:*                                                                        users:(("mongod",pid=691,fd=7))
    tcp   LISTEN  0       100                           *:8880               *:*                                                                        users:(("java",pid=613,fd=143))
    tcp   LISTEN  0       100                           *:8080               *:*                                                                        users:(("java",pid=613,fd=139))
    tcp   LISTEN  0       128                        [::]:22              [::]:*                                                                        users:(("sshd",pid=351,fd=4))
    tcp   LISTEN  0       100                           *:8443               *:*                                                                        users:(("java",pid=613,fd=178))
    tcp   LISTEN  0       50                            *:6789               *:*                                                                        users:(("java",pid=613,fd=169))
    tcp   LISTEN  0       100                           *:8843               *:*                                                                        users:(("java",pid=613,fd=195))
    tcp   LISTEN  0       5                          [::]:5900            [::]:*                                                                        users:(("vncserver-x11-c",pid=333,fd=9))
    
    
    pi@unifi:~ $ sudo dpkg -l | grep -i mongo
    ii  mongodb-clients                       1:2.4.14-4                            armhf        object/document-oriented database (client apps)
    ii  mongodb-server                        1:2.4.14-4                            armhf        object/document-oriented database (server package)
     
  11. CQGLHyperion

    CQGLHyperion Member

    Joined:
    Feb 3, 2003
    Messages:
    1,545
    Location:
    North Rockhampton
    Most of the install site say to disable mongo?

     
  12. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    40,402
    Location:
    Brisbane
    UniFi controller needs mongo installed. The default startup scripts should be disabled, but it still needs to be installed (UniFi starts it internally).

    The latest version of UniFi needs a slightly newer version of mongo installed.

    Run

    dpkg -l | grep -i mongo

    To find the version installed.
     
  13. CQGLHyperion

    CQGLHyperion Member

    Joined:
    Feb 3, 2003
    Messages:
    1,545
    Location:
    North Rockhampton
    pi@Hyper-Pi:~ $ dpkg -l | grep -i mongo
    ii mongodb-clients 1:2.4.14-4 armhf object/document-oriented database (client apps)
    ii mongodb-server 1:2.4.14-4 armhf object/document-oriented database (server package)
    pi@Hyper-Pi:~ $
     
  14. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    40,402
    Location:
    Brisbane
    I'm fairly certain the latest UniFi controller needs MongoDB 3.4 minimum (you've got 2.4 installed).

    repo.mongodb.org appears to only have x86/x86_64 builds. No armhf version I can see on there.

    Let me Google about and see what other people are doing.
     
    CQGLHyperion likes this.
  15. CQGLHyperion

    CQGLHyperion Member

    Joined:
    Feb 3, 2003
    Messages:
    1,545
    Location:
    North Rockhampton
    Cheer elvis

    Looks like Symon is running the same version though...
    Maybe need to run an older version of unifi perhaps?
     
  16. Symon

    Symon Castigat ridendo mores

    Joined:
    Apr 17, 2002
    Messages:
    4,668
    Location:
    Brisbane QLD
    Could be something wrong with java - I recall having to do something with that. Was a while ago so can't remember what it was.
     
  17. elvis

    elvis Old school old fool

    Joined:
    Jun 27, 2001
    Messages:
    40,402
    Location:
    Brisbane
    I think that could work. I'm running 5.11.X on x86_64 hardware, and I'm trying to remember when the requirement to jump to a newer MongoDB came in.

    See how far back you can go with the UniFi controller downloads. You can still upgrade your AP firmware for security even on an older controller version.
     
  18. CQGLHyperion

    CQGLHyperion Member

    Joined:
    Feb 3, 2003
    Messages:
    1,545
    Location:
    North Rockhampton
    pi@Hyper-Pi:~ $ dpkg -l | grep -i unifi
    ii unifi 5.11.46-12723-1 all Ubiquiti UniFi server
    pi@Hyper-Pi:~ $
     
  19. CQGLHyperion

    CQGLHyperion Member

    Joined:
    Feb 3, 2003
    Messages:
    1,545
    Location:
    North Rockhampton
    Can't seem to find a copy of V5.5 to use anywhere. Another blow is my NAS is only a A15 chip so only 32bit which isn't supported by Mongo any more. Might have to bite the bullet and either get a PiV4 or cloudkey.

    Really appreciate all the help but don't worry about putting any more effort into it.
     
    elvis likes this.
  20. 303-Acid

    303-Acid Member

    Joined:
    Jun 29, 2001
    Messages:
    2,638
    Location:
    Beaumaris, Vic

Share This Page

Advertisement: