Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get response from https://host:8443 #51

Closed
triphoppingman opened this issue Aug 28, 2019 · 8 comments
Closed

Unable to get response from https://host:8443 #51

triphoppingman opened this issue Aug 28, 2019 · 8 comments

Comments

@triphoppingman
Copy link

I am unable to get unifi responding on its 8443 port.

Expected behavior

Expect to be able to connect at the 8443 port with the self signed cert

Actual behavior

No connection

Steps to reproduce

New HASSIO (97.2) / UNIFI addon installation

log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------

 Hass.io Add-on: UniFi Controller
 Manage your UniFi network using a web browser
-----------------------------------------------------------
 Add-on version: 0.12.0
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 10 (buster)  (armv7 / odroid-xu)
 Home Assistant version: 0.97.2
 Supervisor version: 184
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] unifi.sh: executing... 
[cont-init.d] unifi.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[16:13:49] INFO: Starting the UniFi Controller...

configuration:

{ "ssl": false, "certfile": "fullchain.pem", "keyfile": "privkey.pem" }

Command line test:

curl -k https://localhost:8443 curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:8443

Using NETSTAT

After installing netstat into the container and then running it, I don't see the port 8443:

docker exec -it addon_a0d7b954_unifi netstat -at
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:8880            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.11:43101        0.0.0.0:*               LISTEN     
tcp        0      0 a0d7b954-unifi.lo:56882 astomi.canonical.com:80 TIME_WAIT  

MongoDB logs

THe mongo db logs is repeating this:

2019-08-27T21:17:27.145-0400 ***** SERVER RESTARTED *****
2019-08-27T21:17:27.146-0400 SEVERE: Invalid access at address: 0x48a731a
2019-08-27T21:17:27.151-0400 SEVERE: Got signal: 7 (Bus error).
Backtrace:0x7639be 0x762f6e 0x76300a 0xf6f52760 0x75ece4 0x75cd7e 0x75cdf4 0x1f0300 0x1fc81a 0x1fcb7e 0x1fcdc8 0x1c4e64 0xf6f43fe6 
 bin/mongod(_ZN5mongo15printStackTraceERSo+0x25) [0x7639be]
 bin/mongod() [0x762f6e]
 bin/mongod() [0x76300a]
 /lib/arm-linux-gnueabihf/libc.so.6(+0x25760) [0xf6f52760]
 bin/mongod(_ZN5mongo11ProcessInfo10SystemInfo17collectSystemInfoEv+0x87f) [0x75ece4]
 bin/mongod(_ZN5mongo11ProcessInfo20initializeSystemInfoEv+0x7d) [0x75cd7e]
 bin/mongod(_ZN5mongo36_mongoInitializerFunction_SystemInfoEPNS_18InitializerContextE+0x7) [0x75cdf4]
 bin/mongod(_ZN5boost6detail8function17function_invoker1IPFN5mongo6StatusEPNS3_18InitializerContextEES4_S6_E6invokeERNS1_15function_bufferES6_+0x17) [0x1f0300]
 bin/mongod(_ZNK5mongo11Initializer7executeERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EERKSt3mapIS7_S7_St4lessIS7_ESaISt4pairIKS7_S7_EEE+0x15d) [0x1fc81a]
 bin/mongod(_ZN5mongo21runGlobalInitializersERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EERKSt3mapIS6_S6_St4lessIS6_ESaISt4pairIKS6_S6_EEE+0x29) [0x1fcb7e]
 bin/mongod(_ZN5mongo21runGlobalInitializersEiPKPKcS3_+0x22b) [0x1fcdc8]
 bin/mongod(main+0x6f) [0x1c4e64]
 /lib/arm-linux-gnueabihf/libc.so.6(__libc_start_main+0x99) [0xf6f43fe6]
root@a0d7b954-unifi:/usr/lib/unifi/bin# mongod --version
db version v2.6.10
2019-08-27T21:20:23.961-0400 git version: nogitversion
2019-08-27T21:20:23.962-0400 OpenSSL version: OpenSSL 1.0.2n  7 Dec 2017

Tried to start unifi:

root@a0d7b954-unifi:/usr/lib/unifi/bin# ./unifi.init status
 * unifi is not running
root@a0d7b954-unifi:/usr/lib/unifi/bin# ./unifi.init start
 * Starting Ubiquiti UniFi Controller unifi                                                                                                                                                                [fail] 
root@a0d7b954-unifi:/usr/lib/unifi/bin# ./unifi.init status
 * unifi is not running
root@a0d7b954-unifi:/usr/lib/unifi/bin# ./unifi.init status
 * unifi is not running
root@a0d7b954-unifi:/usr/lib/unifi/bin# ./unifi.init status
 * unifi is not running
root@a0d7b954-unifi:/usr/lib/unifi/bin#
@addons-assistant
Copy link

👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.

@triphoppingman
Copy link
Author

triphoppingman commented Aug 28, 2019

More information:

root@a0d7b954-unifi:/usr/lib/unifi# uname -a
Linux a0d7b954-unifi 4.9.185-odroidn2 #41 SMP PREEMPT Sat Jul 20 14:09:25 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux

Memory info:

root@a0d7b954-unifi:/usr/lib/unifi# cat /proc/meminfo 
MemTotal:        3799096 kB
MemFree:         1613548 kB
MemAvailable:    2629492 kB
Buffers:           78436 kB
Cached:           868384 kB
SwapCached:            0 kB
Active:          1283588 kB
Inactive:         539036 kB
Active(anon):     845996 kB
Inactive(anon):    50984 kB
Active(file):     437592 kB
Inactive(file):   488052 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       1048572 kB
SwapFree:        1048572 kB
Dirty:                32 kB
Writeback:             0 kB
AnonPages:        875796 kB
Mapped:           326152 kB
Shmem:             21180 kB
Slab:             218744 kB
SReclaimable:     125124 kB
SUnreclaim:        93620 kB
KernelStack:       14032 kB
PageTables:         8900 kB
NFS_Unstable:          4 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2948120 kB
Committed_AS:    6967208 kB
VmallocTotal:   263061440 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
CmaTotal:         507904 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

@LukasQ
Copy link

LukasQ commented Sep 18, 2019

Still an issue?
What happens if you try Port 8080?
Plus: which Installation of hassio do you run? RasPi or any other custom build?

@triphoppingman
Copy link
Author

triphoppingman commented Sep 18, 2019 via email

@sinclairpaul
Copy link
Member

The issue is MongoDB crashes on startup, as can be seen in the logs. I would guess its a hardware specific issue or we would see more of it logged. Unfortunately not able to duplicate and likely not addon specific.

@triphoppingman
Copy link
Author

triphoppingman commented Sep 19, 2019 via email

@addons-assistant
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@addons-assistant
Copy link

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@addons-assistant addons-assistant bot locked as resolved and limited conversation to collaborators Dec 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants