machinebox / issues

Machine Box issues, bugs and feature requests
2 stars 0 forks source link

use of closed network connection when trying to start facebox #32

Closed eifinger closed 5 years ago

eifinger commented 6 years ago

Hi, when trying to start facebox I get the following error:

2018/07/05 20:44:44 Number of MB_WORKERS is set to 4
[INFO]     starting...

        Welcome to Facebox by Machine Box
        (facebox development)

        Visit the console to see what this box can do:
        http://localhost:8080

        If you have any questions or feedback, get in touch:
        https://machinebox.io/contact

        Please consider buying a subscription:
        https://machinebox.io/#pricing

        Report bugs and issues:
        https://github.com/machinebox/issues

        Tell us what you build on Twitter @machineboxio

[ERROR]    post shutdown: accept tcp [::]:8080: use of closed network connection
[CRITICAL]    Get http://0.0.0.0:10001/info: dial tcp 0.0.0.0:10001: connect: connection refused
2018/07/05 21:03:53 Get http://0.0.0.0:10001/info: dial tcp 0.0.0.0:10001: connect: connection refused

For the roughly 15 minutes my CPU was running at 100% and the console under http://: was accessible and showed "starting...".

This is the docker-compose.yaml I use(btw, exact the same behaviour without docker-compose):

facebox:
    image: machinebox/facebox:latest
    container_name: facebox
    restart: unless-stopped
    environment:
      - MB_KEY=mykey
    ports:
      - "9921:8080"
dahernan commented 6 years ago

Does your CPU support AVX instructions? the current build only supports modern CPUs if you are run it in an old one, maybe that is the problem

eifinger commented 6 years ago

I'm running on a "AMD Opteron™ X3000 Series". Never heard of AVX before, but here is the result of grep avx /proc/cpuinfo:

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm perfctr_core perfctr_nb bpext mwaitx cpb hw_pstate ssbd vmmcall fsgsbase bmi1 avx2 smep bmi2 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm perfctr_core perfctr_nb bpext mwaitx cpb hw_pstate ssbd vmmcall fsgsbase bmi1 avx2 smep bmi2 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic
dahernan commented 6 years ago

Try this image machinebox/facebox_noavx if it works is that

eifinger commented 6 years ago

Same behavior. Just takes a few minutes longer and the port it's trying to reach changed from 10001 to 10002:

2018/07/05 21:27:07 Number of MB_WORKERS is set to 4
[INFO]     starting...

        Welcome to Facebox by Machine Box
        (facebox development)

        Visit the console to see what this box can do:
        http://localhost:8080

        If you have any questions or feedback, get in touch:
        https://machinebox.io/contact

        Please consider buying a subscription:
        https://machinebox.io/#pricing

        Report bugs and issues:
        https://github.com/machinebox/issues

        Tell us what you build on Twitter @machineboxio

[ERROR]    post shutdown: accept tcp [::]:8080: use of closed network connection
[CRITICAL]    Get http://0.0.0.0:10002/info: dial tcp 0.0.0.0:10002: connect: connection refused
2018/07/05 21:46:17 Get http://0.0.0.0:10002/info: dial tcp 0.0.0.0:10002: connect: connection refused
eifinger commented 6 years ago

A few more infos: OS: Ubuntu Server 16.04 LTS Kernel: 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Docker version: Docker version 18.03.1-ce, build 9ee9f40

dahernan commented 6 years ago

Really strange, do you have an Intel machine to try it? that image works in any mayor cloud providers, but the compilation is done on a Intel with AVX and other optimization instructions, my only thinking is that AMD is not compatible for some reason

eifinger commented 6 years ago

Started up in a few seconds on my Win10 laptop with an i7. Sad thing is I gave my old gaming pc away, so I have nothing lying around which has an Intel CPU and could be used as a server :/

dahernan commented 6 years ago

ok, I'll try to review the compilation flags, but is going to take me a while, unless you are interested in more than the FREE license, I can not schedule much time in the next couple of weeks

eifinger commented 6 years ago

For now I am only evaluating it for private use in my homeassistant system. Thank you for looking into it, I am happy to provide more information/testing,... to help you out!

matryer commented 5 years ago

@eifinger Please try updating and pulling again, and let me know how you get on with the latest builds.

eifinger commented 5 years ago

Works perfectly now!