linuxserver / docker-foldingathome

GNU General Public License v3.0
41 stars 8 forks source link

Web Client not Loading at Defined Port 7396 #2

Closed tonydm closed 4 years ago

tonydm commented 4 years ago

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.


Expected Behavior

Folding@Home UI to load at http://server_ip:7396

Current Behavior

Folding@Home Client UI not loading.

Steps to Reproduce

  1. Copy/paste docker-compose.yml
  2. docker-compose up -d
  3. Container successfully starts
  4. Cat ./config/log.txt shows running with job assigned
  5. Type 172.20.0.9:7396 into my local browser's address bar
  6. "This page isn't working 172.20.0.9 didn't send any data ERR_EMPTY_RESPONSE

Environment

Host: Ubuntu 18.04.2 LTS x86_64

How docker service was installed:
apt-get remove docker docker-engine docker.io -yqq apt-get install -yqq apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" apt-get update -qq apt-get install -yqq docker-ce

Command used to create docker container (run/create/compose/screenshot)

copy/paste docker-compose.yml from this github repo docker-compose up -d

Docker logs

services-admin@datastore:(172.20.0.9)~/DockerServices/folding_athome$ docker-compose logs Attaching to foldingathome foldingathome | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. foldingathome | [s6-init] ensuring user provided files have correct perms...exited 0. foldingathome | [fix-attrs.d] applying ownership & permissions fixes... foldingathome | [fix-attrs.d] done. foldingathome | [cont-init.d] executing container initialization scripts... foldingathome | [cont-init.d] 01-envfile: executing... foldingathome | [cont-init.d] 01-envfile: exited 0. foldingathome | [cont-init.d] 10-adduser: executing... foldingathome | foldingathome | ------------------------------------- foldingathome | () foldingathome | | | foldingathome | | | / | | | / \ foldingathome | | | _ \ | | | () | foldingathome | || |__/ || \/ foldingathome | foldingathome | foldingathome | Brought to you by linuxserver.io foldingathome | We gratefully accept donations at: foldingathome | https://www.linuxserver.io/donate/ foldingathome | ------------------------------------- foldingathome | GID/UID foldingathome | ------------------------------------- foldingathome | foldingathome | User uid: 1001 foldingathome | User gid: 1001 foldingathome | ------------------------------------- foldingathome | foldingathome | [cont-init.d] 10-adduser: exited 0. foldingathome | [cont-init.d] 50-config: executing... foldingathome | [cont-init.d] 50-config: exited 0. foldingathome | [cont-init.d] 60-gid-video: executing... foldingathome | [cont-init.d] 60-gid-video: exited 0. foldingathome | [cont-init.d] 99-custom-scripts: executing... foldingathome | [custom-init] no custom files found exiting... foldingathome | [cont-init.d] 99-custom-scripts: exited 0. foldingathome | [cont-init.d] done. foldingathome | [services.d] starting services foldingathome | [services.d] done. foldingathome | 15:25:45: Folding@home Client foldingathome | 15:25:45: Website: https://foldingathome.org/ foldingathome | 15:25:45: Copyright: (c) 2009-2018 foldingathome.org foldingathome | 15:25:45: Author: Joseph Coffland joseph@cauldrondevelopment.com foldingathome | 15:25:45: Args: --http-addresses 0.0.0.0:7396 --allow 0/0 --web-allow 0/0 foldingathome | 15:25:45: --command-allow-no-pass 0/0 foldingathome | 15:25:45: Config: foldingathome | 15:25:45:**** Build **** foldingathome | 15:25:45: Version: 7.5.1 foldingathome | 15:25:45: Date: May 11 2018 foldingathome | 15:25:45: Time: 19:59:04 foldingathome | 15:25:45: Repository: Git foldingathome | 15:25:45: Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0 foldingathome | 15:25:45: Branch: master foldingathome | 15:25:45: Compiler: GNU 6.3.0 20170516 foldingathome | 15:25:45: Options: -std=gnu++98 -O3 -funroll-loops foldingathome | 15:25:45: Platform: linux2 4.14.0-3-amd64 foldingathome | 15:25:45: Bits: 64 foldingathome | 15:25:45: Mode: Release foldingathome | 15:25:45:* System **** foldingathome | 15:25:45: CPU: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz foldingathome | 15:25:45: CPU ID: GenuineIntel Family 6 Model 30 Stepping 5 foldingathome | 15:25:45: CPUs: 4 foldingathome | 15:25:45: Memory: 5.81GiB foldingathome | 15:25:45:Free Memory: 533.86MiB foldingathome | 15:25:45: Threads: POSIX_THREADS foldingathome | 15:25:45: OS Version: 4.15 foldingathome | 15:25:45:Has Battery: false foldingathome | 15:25:45: On Battery: false foldingathome | 15:25:45: UTC Offset: -7 foldingathome | 15:25:45: PID: 258 foldingathome | 15:25:45: CWD: /config foldingathome | 15:25:45: OS: Linux 4.15.0-88-generic x86_64 foldingathome | 15:25:45: OS Arch: AMD64 foldingathome | 15:25:45: GPUs: 0 foldingathome | 15:25:45: CUDA: Not detected: cuInit() returned 100 foldingathome | 15:25:45: OpenCL: Not detected: clGetPlatformIDs() returned -1001 foldingathome | 15:25:45:***** foldingathome | 15:25:45: foldingathome | 15:25:45: foldingathome | 15:25:45: foldingathome | 15:25:45:Connecting to assign1.foldingathome.org:8080 foldingathome | 15:25:46:Updated GPUs.txt foldingathome | 15:25:46:Read GPUs.txt foldingathome | 15:25:46:Trying to access database... foldingathome | 15:25:46:Successfully acquired database lock foldingathome | 15:25:46:Enabled folding slot 00: PAUSED cpu:3 (not configured) foldingathome | 15:26:47:Saving configuration to config.xml foldingathome | 15:26:47: foldingathome | 15:26:47: foldingathome | 15:26:47: foldingathome | 15:26:47: foldingathome | 15:26:47:Set client configured foldingathome | 15:26:47:WU00:FS00:Connecting to 65.254.110.245:8080 foldingathome | 15:26:47:WU00:FS00:Connecting to 65.254.110.245:8080 foldingathome | 15:26:48:WARNING:WU00:FS00:Failed to get assignment from '65.254.110.245:8080': No WUs available for this configuration foldingathome | 15:26:48:WU00:FS00:Connecting to 18.218.241.186:80 foldingathome | 15:26:48:WARNING:WU00:FS00:Failed to get assignment from '18.218.241.186:80': No WUs available for this configuration foldingathome | 15:26:48:ERROR:WU00:FS00:Exception: Could not get an assignment foldingathome | 15:26:48:WU00:FS00:Connecting to 65.254.110.245:8080 foldingathome | 15:26:48:WARNING:WU00:FS00:Failed to get assignment from '65.254.110.245:8080': No WUs available for this configuration foldingathome | 15:26:48:WU00:FS00:Connecting to 18.218.241.186:80 foldingathome | 15:26:49:WARNING:WU00:FS00:Failed to get assignment from '18.218.241.186:80': No WUs available for this configuration foldingathome | 15:26:49:ERROR:WU00:FS00:Exception: Could not get an assignment foldingathome | 15:27:48:WU00:FS00:Connecting to 65.254.110.245:8080 foldingathome | 15:27:48:WU00:FS00:Assigned to work server 128.252.203.9 foldingathome | 15:27:48:WU00:FS00:Requesting new work unit for slot 00: READY cpu:3 from 128.252.203.9 foldingathome | 15:27:48:WU00:FS00:Connecting to 128.252.203.9:8080 foldingathome | 15:31:56:WU00:FS00:Downloading 8.14MiB foldingathome | 15:32:02:WU00:FS00:Download 29.17% foldingathome | 15:32:09:WU00:FS00:Download 43.76% foldingathome | 15:32:17:WU00:FS00:Download 70.63% foldingathome | 15:32:23:WU00:FS00:Download 76.01% foldingathome | 15:32:33:WU00:FS00:Download 81.38% foldingathome | 15:32:35:WU00:FS00:Download complete foldingathome | 15:32:36:WU00:FS00:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:13830 run:501 clone:0 gen:116 core:0xa7 unit:0x0000008580fccb095d693d441c9d82e7 foldingathome | 15:32:36:WU00:FS00:Downloading core from http://cores.foldingathome.org/v7/lin/64bit/Core_a7.fah foldingathome | 15:32:36:WU00:FS00:Connecting to cores.foldingathome.org:80 foldingathome | 15:32:36:WU00:FS00:FahCore a7: Downloading 7.85MiB foldingathome | 15:32:37:WU00:FS00:FahCore a7: Download complete foldingathome | 15:32:38:WU00:FS00:Valid core signature foldingathome | 15:32:38:WU00:FS00:Unpacked 18.96MiB to cores/cores.foldingathome.org/v7/lin/64bit/Core_a7.fah/FahCore_a7 foldingathome | 15:32:38:WU00:FS00:Starting foldingathome | 15:32:38:WU00:FS00:Running FahCore: /app/usr/bin/FAHCoreWrapper /config/cores/cores.foldingathome.org/v7/lin/64bit/Core_a7.fah/FahCore_a7 -dir 00 -suffix 01 -version 705 -lifeline 258 -checkpoint 15 -np 3 foldingathome | 15:32:38:WU00:FS00:Started FahCore on PID 506 foldingathome | 15:32:38:WU00:FS00:Core PID:510 foldingathome | 15:32:38:WU00:FS00:FahCore 0xa7 started foldingathome | 15:32:38:WU00:FS00:0xa7: Log Started 2020-03-25T15:32:38Z foldingathome | 15:32:38:WU00:FS00:0xa7:** Gromacs Folding@home Core * foldingathome | 15:32:38:WU00:FS00:0xa7: Type: 0xa7 foldingathome | 15:32:38:WU00:FS00:0xa7: Core: Gromacs foldingathome | 15:32:38:WU00:FS00:0xa7: Args: -dir 00 -suffix 01 -version 705 -lifeline 506 -checkpoint 15 -np 3 foldingathome | 15:32:38:WU00:FS00:0xa7:**** CBang *** foldingathome | 15:32:38:WU00:FS00:0xa7: Date: Nov 5 2019 foldingathome | 15:32:38:WU00:FS00:0xa7: Time: 05:57:01 foldingathome | 15:32:38:WU00:FS00:0xa7: Revision: 46c96f1aa8419571d83f3e63f9c99a0d602f6da9 foldingathome | 15:32:38:WU00:FS00:0xa7: Branch: master foldingathome | 15:32:38:WU00:FS00:0xa7: Compiler: GNU 8.3.0 foldingathome | 15:32:38:WU00:FS00:0xa7: Options: -std=c++11 -O3 -funroll-loops -fno-pie -fPIC foldingathome | 15:32:38:WU00:FS00:0xa7: Platform: linux2 4.19.0-5-amd64 foldingathome | 15:32:38:WU00:FS00:0xa7: Bits: 64 foldingathome | 15:32:38:WU00:FS00:0xa7: Mode: Release foldingathome | 15:32:38:WU00:FS00:0xa7:**** System **** foldingathome | 15:32:38:WU00:FS00:0xa7: CPU: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz foldingathome | 15:32:38:WU00:FS00:0xa7: CPU ID: GenuineIntel Family 6 Model 30 Stepping 5 foldingathome | 15:32:38:WU00:FS00:0xa7: CPUs: 4 foldingathome | 15:32:38:WU00:FS00:0xa7: Memory: 5.81GiB foldingathome | 15:32:38:WU00:FS00:0xa7:Free Memory: 483.43MiB foldingathome | 15:32:38:WU00:FS00:0xa7: Threads: POSIX_THREADS foldingathome | 15:32:38:WU00:FS00:0xa7: OS Version: 4.15 foldingathome | 15:32:38:WU00:FS00:0xa7:Has Battery: false foldingathome | 15:32:38:WU00:FS00:0xa7: On Battery: false foldingathome | 15:32:38:WU00:FS00:0xa7: UTC Offset: -7 foldingathome | 15:32:38:WU00:FS00:0xa7: PID: 510 foldingathome | 15:32:38:WU00:FS00:0xa7: CWD: /config/work foldingathome | 15:32:38:WU00:FS00:0xa7:**** Build - libFAH **** foldingathome | 15:32:38:WU00:FS00:0xa7: Version: 0.0.18 foldingathome | 15:32:38:WU00:FS00:0xa7: Author: Joseph Coffland joseph@cauldrondevelopment.com foldingathome | 15:32:38:WU00:FS00:0xa7: Copyright: 2019 foldingathome.org foldingathome | 15:32:38:WU00:FS00:0xa7: Homepage: https://foldingathome.org/ foldingathome | 15:32:38:WU00:FS00:0xa7: Date: Nov 5 2019 foldingathome | 15:32:38:WU00:FS00:0xa7: Time: 06:13:26 foldingathome | 15:32:38:WU00:FS00:0xa7: Revision: 490c9aa2957b725af319379424d5c5cb36efb656 foldingathome | 15:32:38:WU00:FS00:0xa7: Branch: master foldingathome | 15:32:38:WU00:FS00:0xa7: Compiler: GNU 8.3.0 foldingathome | 15:32:38:WU00:FS00:0xa7: Options: -std=c++11 -O3 -funroll-loops -fno-pie foldingathome | 15:32:38:WU00:FS00:0xa7: Platform: linux2 4.19.0-5-amd64 foldingathome | 15:32:38:WU00:FS00:0xa7: Bits: 64 foldingathome | 15:32:38:WU00:FS00:0xa7: Mode: Release foldingathome | 15:32:38:WU00:FS00:0xa7:**** Build ***** foldingathome | 15:32:38:WU00:FS00:0xa7: SIMD: sse2 foldingathome | 15:32:38:WU00:FS00:0xa7:**** foldingathome | 15:32:38:WU00:FS00:0xa7:Project: 13830 (Run 501, Clone 0, Gen 116) foldingathome | 15:32:38:WU00:FS00:0xa7:Unit: 0x0000008580fccb095d693d441c9d82e7 foldingathome | 15:32:38:WU00:FS00:0xa7:Reading tar file core.xml foldingathome | 15:32:38:WU00:FS00:0xa7:Reading tar file frame116.tpr foldingathome | 15:32:38:WU00:FS00:0xa7:Digital signatures verified foldingathome | 15:32:38:WU00:FS00:0xa7:Calling: mdrun -s frame116.tpr -o frame116.trr -x frame116.xtc -cpt 15 -nt 3 foldingathome | 15:32:38:WU00:FS00:0xa7:Steps: first=14500000 total=125000 foldingathome | 15:32:44:WU00:FS00:0xa7:Completed 1 out of 125000 steps (0%) foldingathome | 15:38:17:WU00:FS00:0xa7:Completed 1250 out of 125000 steps (1%)

TCPDUMP

Confirm container is being reached by web request on port 7396

root@00a866f6e31e:/# tcpdump -i eth0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes 08:40:39.393347 IP 172.20.0.5.59664 > 00a866f6e31e.7396: Flags [S], seq 1199657401, win 64240, options [mss 1460,sackOK,TS val 1101631686 ecr 0,nop,wscale 7], length 0 08:40:39.393383 IP 00a866f6e31e.7396 > 172.20.0.5.59664: Flags [S.], seq 893671240, ack 1199657402, win 65160, options [mss 1460,sackOK,TS val 2851105734 ecr 1101631686,nop,wscale 7], length 0 08:40:39.393409 IP 172.20.0.5.59666 > 00a866f6e31e.7396: Flags [S], seq 129377775, win 64240, options [mss 1460,sackOK,TS val 1101631686 ecr 0,nop,wscale 7], length 0 08:40:39.393419 IP 00a866f6e31e.7396 > 172.20.0.5.59666: Flags [S.], seq 3993049811, ack 129377776, win 65160, options [mss 1460,sackOK,TS val 2851105734 ecr 1101631686,nop,wscale 7], length 0 08:40:39.393463 IP 172.20.0.5.59664 > 00a866f6e31e.7396: Flags [.], ack 1, win 502, options [nop,nop,TS val 1101631686 ecr 2851105734], length 0 08:40:39.393467 IP 172.20.0.5.59666 > 00a866f6e31e.7396: Flags [.], ack 1, win 502, options [nop,nop,TS val 1101631686 ecr 2851105734], length 0 08:40:39.394340 IP 00a866f6e31e.40949 > pihole.53: 37227+ PTR? 5.0.20.172.in-addr.arpa. (41) 08:40:39.403065 IP 00a866f6e31e.48676 > pihole.53: 20142+ PTR? 12.0.20.172.in-addr.arpa. (42) 08:40:39.403864 IP pihole.53 > 00a866f6e31e.48676: 20142* 1/0/0 PTR pihole. (62) 08:40:39.607078 IP 00a866f6e31e.7396 > 172.20.0.5.59664: Flags [F.], seq 1, ack 1796, win 501, options [nop,nop,TS val 2851105948 ecr 1101631688], length 0 08:40:39.607250 IP 172.20.0.5.59664 > 00a866f6e31e.7396: Flags [F.], seq 1796, ack 2, win 502, options [nop,nop,TS val 1101631900 ecr 2851105948], length 0 08:40:39.607270 IP 00a866f6e31e.7396 > 172.20.0.5.59664: Flags [.], ack 1797, win 501, options [nop,nop,TS val 2851105948 ecr 1101631900], length 0 08:40:39.607561 IP 172.20.0.5.59666 > 00a866f6e31e.7396: Flags [P.], seq 1:1796, ack 1, win 502, options [nop,nop,TS val 1101631900 ecr 2851105734], length 1795 08:40:39.607571 IP 00a866f6e31e.7396 > 172.20.0.5.59666: Flags [.], ack 1796, win 496, options [nop,nop,TS val 2851105948 ecr 1101631900], length 0 08:40:39.857157 IP 00a866f6e31e.7396 > 172.20.0.5.59666: Flags [F.], seq 1, ack 1796, win 501, options [nop,nop,TS val 2851106198 ecr 1101631900], length 0 08:40:39.857323 IP 172.20.0.5.59666 > 00a866f6e31e.7396: Flags [F.], seq 1796, ack 2, win 502, options [nop,nop,TS val 1101632150 ecr 2851106198], length 0 08:40:39.857342 IP 00a866f6e31e.7396 > 172.20.0.5.59666: Flags [.], ack 1797, win 501, options [nop,nop,TS val 2851106198 ecr 1101632150], length 0 08:40:39.857532 IP 172.20.0.5.59674 > 00a866f6e31e.7396: Flags [S], seq 1006334749, win 64240, options [mss 1460,sackOK,TS val 1101632150 ecr 0,nop,wscale 7], length 0 08:40:39.857554 IP 00a866f6e31e.7396 > 172.20.0.5.59674: Flags [S.], seq 2988820135, ack 1006334750, win 65160, options [mss 1460,sackOK,TS val 2851106198 ecr 1101632150,nop,wscale 7], length 0 08:40:39.857630 IP 172.20.0.5.59674 > 00a866f6e31e.7396: Flags [.], ack 1, win 502, options [nop,nop,TS val 1101632150 ecr 2851106198], length 0 08:40:39.857841 IP 172.20.0.5.59674 > 00a866f6e31e.7396: Flags [P.], seq 1:1796, ack 1, win 502, options [nop,nop,TS val 1101632150 ecr 2851106198], length 1795 08:40:39.857855 IP 00a866f6e31e.7396 > 172.20.0.5.59674: Flags [.], ack 1796, win 496, options [nop,nop,TS val 2851106199 ecr 1101632150], length 0 08:40:40.357361 IP 00a866f6e31e.7396 > 172.20.0.5.59674: Flags [F.], seq 1, ack 1796, win 501, options [nop,nop,TS val 2851106698 ecr 1101632150], length 0 08:40:40.357674 IP 172.20.0.5.59674 > 00a866f6e31e.7396: Flags [F.], seq 1796, ack 2, win 502, options [nop,nop,TS val 1101632650 ecr 2851106698], length 0 08:40:40.357697 IP 00a866f6e31e.7396 > 172.20.0.5.59674: Flags [.], ack 1797, win 501, options [nop,nop,TS val 2851106698 ecr 1101632650], length 0

aptalca commented 4 years ago

Try an incognito window

tonydm commented 4 years ago

Thanks, that worked! Curious... I've never loaded that URL so it wasn't in my cache. Why the difference pulling it up in Incognito Mode? No mention of trying Incognito on the Github repo.

On Wed, Mar 25, 2020 at 8:59 AM aptalca notifications@github.com wrote:

Try an incognito window

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linuxserver/docker-foldingathome/issues/2#issuecomment-603924196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUAJOWIM2K3DUMII4GD4DRJIS4TANCNFSM4LTRSZ5Q .

aptalca commented 4 years ago

Did you connect via ip address? My guess is it clashes with some existing cookie for that address? I run a lot of docker containers (test and production) on that same server IP. I get it on two of my machines where it receives an empty response. On two other machines it works just fine. All accessing the same IP. It seems to work fine when reverse proxied at a subdomain (no existing cookies or cache for that address).

Their webgui is very finicky overall. You'll also notice issues with forever loading, which may require a force refresh (shift+F5).

They are all upstream issues.

tonydm commented 4 years ago

I did connect with the server IP addr. Never on that port though, that's what I found weird. I too have run many docker containers and other self written servers and never encountered that one.

I do appreciate the super fast followup!

Thanks again

On Wed, Mar 25, 2020 at 7:40 PM aptalca notifications@github.com wrote:

Did you connect via ip address? My guess is it clashes with some existing cookie for that address? I run a lot of docker containers (test and production) on that same server IP. I get it on two of my machines where it receives an empty response. On two other machines it works just fine. All accessing the same IP. It seems to work fine when reverse proxied at a subdomain (no existing cookies or cache for that address).

Their webgui is very finicky overall. You'll also notice issues with forever loading, which may require a force refresh (shift+F5).

They are all upstream issues.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linuxserver/docker-foldingathome/issues/2#issuecomment-604195160, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUAJJ33SOKILBWX6WSCG3RJK6BDANCNFSM4LTRSZ5Q .

aptalca commented 4 years ago

I don't think cookies and cache are port specific. I believe they are all tied to the url. That's likely why accessing it with a reverse proxy on a new subdomain didn't exhibit the same issue for me

tonydm commented 4 years ago

Got it, Thanks again :)