gthole / gedgo

A Gedcom viewer web app.
MIT License
46 stars 12 forks source link

Application unavailable at Localhost #11

Closed NickRance closed 6 years ago

NickRance commented 6 years ago

Thanks for all the help thus far! All the tests pass but I still can't access the localhost portal. The webserver seems to be catching my HTTP Request (as seen in the logs below) but doesn't return an application. Instead, it returns the screenshot below.

Localhost Screenshot

Thanks, Nick

docker-compose up
Starting db    ... done
Starting redis ... done
Starting avahi ... done
Recreating gedgo_app ... done
Recreating gedgo_web_1  ... done
Recreating gedgo_worker ... done
Attaching to avahi, db, redis, gedgo_app, gedgo_worker, gedgo_web_1
avahi     | WARNING: no logs are available with the 'none' log driver
db        | WARNING: no logs are available with the 'none' log driver
redis     | WARNING: no logs are available with the 'none' log driver
avahi exited with code 255
app_1     | Performing system checks...
app_1     | 
worker_1  | /usr/local/lib/python2.7/site-packages/celery/platforms.py:795: RuntimeWarning: You're running the worker with superuser privileges: this is
worker_1  | absolutely not recommended!
worker_1  | 
worker_1  | Please specify a different user using the -u option.
worker_1  | 
worker_1  | User information: uid=0 euid=0 gid=0 egid=0
worker_1  | 
worker_1  |   uid=uid, euid=euid, gid=gid, egid=egid,
worker_1  | 
worker_1  | [2018-07-23 17:24:45,765: DEBUG/MainProcess] | Worker: Preparing bootsteps.
worker_1  | [2018-07-23 17:24:45,766: DEBUG/MainProcess] | Worker: Building graph...
worker_1  | [2018-07-23 17:24:45,767: DEBUG/MainProcess] | Worker: New boot order: {StateDB, Timer, Hub, Pool, Autoscaler, Beat, Consumer}
worker_1  | [2018-07-23 17:24:45,780: DEBUG/MainProcess] | Consumer: Preparing bootsteps.
worker_1  | [2018-07-23 17:24:45,780: DEBUG/MainProcess] | Consumer: Building graph...
worker_1  | [2018-07-23 17:24:45,793: DEBUG/MainProcess] | Consumer: New boot order: {Connection, Agent, Events, Mingle, Tasks, Control, Gossip, Heart, event loop}
worker_1  |  
worker_1  |  -------------- celery@41e1ebeb8a30 v4.1.0 (latentcall)
worker_1  | ---- **** ----- 
worker_1  | --- * ***  * -- Linux-4.15.0-23-generic-x86_64-with 2018-07-23 17:24:45
worker_1  | -- * - **** --- 
worker_1  | - ** ---------- [config]
worker_1  | - ** ---------- .> app:         gedgo:0x7f9ddd1d5dd0
worker_1  | - ** ---------- .> transport:   redis://redis:6379/0
worker_1  | - ** ---------- .> results:     redis://redis:6379/0
worker_1  | - *** --- * --- .> concurrency: 4 (prefork)
worker_1  | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
worker_1  | --- ***** ----- 
worker_1  |  -------------- [queues]
worker_1  |                 .> celery           exchange=celery(direct) key=celery
worker_1  |                 
worker_1  | 
worker_1  | [tasks]
worker_1  |   . celery.accumulate
worker_1  |   . celery.backend_cleanup
worker_1  |   . celery.chain
worker_1  |   . celery.chord
worker_1  |   . celery.chord_unlock
worker_1  |   . celery.chunks
worker_1  |   . celery.group
worker_1  |   . celery.map
worker_1  |   . celery.starmap
worker_1  |   . gedgo.tasks.async_update
worker_1  |   . gedgo.tasks.geo_resolve_ip
worker_1  | [2018-07-23 17:24:45,803: DEBUG/MainProcess] | Worker: Starting Hub
worker_1  | [2018-07-23 17:24:45,803: DEBUG/MainProcess] ^-- substep ok
worker_1  | [2018-07-23 17:24:45,804: DEBUG/MainProcess] | Worker: Starting Pool
worker_1  | [2018-07-23 17:24:46,011: DEBUG/MainProcess] ^-- substep ok
worker_1  | [2018-07-23 17:24:46,012: DEBUG/MainProcess] | Worker: Starting Consumer
worker_1  | [2018-07-23 17:24:46,012: DEBUG/MainProcess] | Consumer: Starting Connection
worker_1  | [2018-07-23 17:24:46,021: INFO/MainProcess] Connected to redis://redis:6379/0
worker_1  | [2018-07-23 17:24:46,021: DEBUG/MainProcess] ^-- substep ok
worker_1  | [2018-07-23 17:24:46,021: DEBUG/MainProcess] | Consumer: Starting Events
worker_1  | [2018-07-23 17:24:46,026: DEBUG/MainProcess] ^-- substep ok
worker_1  | [2018-07-23 17:24:46,026: DEBUG/MainProcess] | Consumer: Starting Mingle
worker_1  | [2018-07-23 17:24:46,026: INFO/MainProcess] mingle: searching for neighbors
worker_1  | [2018-07-23 17:24:47,043: INFO/MainProcess] mingle: all alone
worker_1  | [2018-07-23 17:24:47,044: DEBUG/MainProcess] ^-- substep ok
worker_1  | [2018-07-23 17:24:47,044: DEBUG/MainProcess] | Consumer: Starting Tasks
worker_1  | [2018-07-23 17:24:47,061: DEBUG/MainProcess] ^-- substep ok
worker_1  | [2018-07-23 17:24:47,062: DEBUG/MainProcess] | Consumer: Starting Control
worker_1  | [2018-07-23 17:24:47,074: DEBUG/MainProcess] ^-- substep ok
worker_1  | [2018-07-23 17:24:47,074: DEBUG/MainProcess] | Consumer: Starting Gossip
worker_1  | [2018-07-23 17:24:47,087: DEBUG/MainProcess] ^-- substep ok
worker_1  | [2018-07-23 17:24:47,087: DEBUG/MainProcess] | Consumer: Starting Heart
worker_1  | [2018-07-23 17:24:47,090: DEBUG/MainProcess] ^-- substep ok
worker_1  | [2018-07-23 17:24:47,091: DEBUG/MainProcess] | Consumer: Starting event loop
worker_1  | [2018-07-23 17:24:47,091: DEBUG/MainProcess] | Worker: Hub.register Pool...
worker_1  | /usr/local/lib/python2.7/site-packages/celery/fixups/django.py:202: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!
worker_1  |   warnings.warn('Using settings.DEBUG leads to a memory leak, never '
worker_1  | 
worker_1  | [2018-07-23 17:24:47,093: WARNING/MainProcess] /usr/local/lib/python2.7/site-packages/celery/fixups/django.py:202: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!
worker_1  |   warnings.warn('Using settings.DEBUG leads to a memory leak, never '
worker_1  | 
worker_1  | [2018-07-23 17:24:47,094: INFO/MainProcess] celery@41e1ebeb8a30 ready.
worker_1  | [2018-07-23 17:24:47,094: DEBUG/MainProcess] basic.qos: prefetch_count->16
web_1     | 172.19.0.1 - - [23/Jul/2018:17:25:12 +0000] "GET / HTTP/1.1" 200 612 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" "-"
web_1     | 2018/07/23 17:25:12 [error] 8#8: *1 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 172.19.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost", referrer: "http://localhost/"
web_1     | 172.19.0.1 - - [23/Jul/2018:17:25:12 +0000] "GET /favicon.ico HTTP/1.1" 404 571 "http://localhost/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" "-"
gthole commented 6 years ago

Hi Nick! Thanks for your patience in spinning up the application. We'll get you going.

As a first step, you should be able to get to the application directly, bypassing the nginx server by going to localhost:8000. However, the nginx proxy will still be necessary for serving media.

I've pushed a change to locate the nginx conf to a better location - give this another try and feel free to re-open if it doesn't work.

Thanks!

NickRance commented 6 years ago

Hi @gthole,

No problem, I'm really looking for a good . localhost now redirects me the Gedgo site and I'm able to login but where can I see how to visualize the gedcom file I uploaded. I also get the below error when I click on the research tab.

The test gedcom file I uploaded is detected in the Admin > Gedgo > Gedcoms Dashboard, so the system has knowledge of it.

Thanks again, Nick


Request Method: | GET
-- | --
http://localhost/gedgo/research/
1.9.2
OSError
[Errno 2] No such file or directory: '/app/files/gedcom'
/usr/local/lib/python2.7/site-packages/django/core/files/storage.py in listdir, line 299
/usr/local/bin/python
2.7.15
['/app',  '/usr/local/lib/python27.zip',  '/usr/local/lib/python2.7',  '/usr/local/lib/python2.7/plat-linux2',  '/usr/local/lib/python2.7/lib-tk',  '/usr/local/lib/python2.7/lib-old',  '/usr/local/lib/python2.7/lib-dynload',  '/usr/local/lib/python2.7/site-packages',  '/app']
Thu, 2 Aug 2018 00:43:19 -0400