Running Web Service in Ubuntu under Docker: gives "localhost didn’t send any data."

511 views
Skip to first unread message

Greg Soulsby

unread,
Sep 27, 2022, 10:46:44 PM9/27/22
to Arelle-users
I am trying to run simple Arelle Web Service in Ubuntu under Docker but getting " localhost didn’t send any data. " from the browse for http://localhost:8080/help

Steps 
1) Start a docker container using 
     docker-compose up -d 
where the docker-compose file is 

version: '3.8'
services:
  arelle:
    image: ubuntu
    tty: true # dont know why but getting exit with code 0 without this https://stackoverflow.com/questions/44884719/exited-with-code-0-docker
    restart: unless-stopped
    ports:
     - 8080:8080
 
2) Copy down the latest linux version of Arelle into /opt/arelle and unzip it

3) Start the server using 

./startWebServer.sh

This gives 

Bottle v0.13-dev server starting up (using WSGIRefServer())...
Listening on http://localhost:8080/
Hit Ctrl-C to quit.  

which I presume is expected.

4) http://localhost:8080/help from the host gives "localhost didn’t send any data."

Things I have tried

* ping localhost gives 
Pinging LAPTOP-XXXXXXXX [::1] with 32 bytes of data:
Reply from ::1: time<1ms

which I take to mean the service is running

* docker logs for the container are empty




Austin Matherne

unread,
Oct 4, 2022, 9:30:38 PM10/4/22
to Arelle-users
Hi Greg.

I don't see anything obviously wrong with your docker compose file, but I haven't tried to run the Arelle web server in docker.

We're planning on publishing a docker image for Arelle (no timeline for this at the moment, but not far off). If you make progress on this before we start working on it please share anything that you find in the linked GitHub issue.

Thanks!

Steven Bronson

unread,
Oct 5, 2022, 2:08:59 PM10/5/22
to arelle...@googlegroups.com
It's only listening for connections to localhost, but the container
isn't running on your network. Try `./arelleCmdLine --webServer
0.0.0.0:8080`.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "Arelle-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to arelle-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/arelle-users/47ace685-dad8-43c9-855c-f987980845c4n%40googlegroups.com.

Greg Soulsby

unread,
Oct 6, 2022, 7:40:25 PM10/6/22
to arelle...@googlegroups.com
yes, Steve, thats obvious when you understand Docker better than me. Thanks

Austin, lessons learned added to Github @  planning 

You received this message because you are subscribed to a topic in the Google Groups "Arelle-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/arelle-users/fc8mORtItMk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to arelle-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arelle-users/CAG6TKcx%3DjA2Nbo1CQhVFSL5%3DE_mAXqZRb3jJkz-ZqiNRrRFs9w%40mail.gmail.com.


--
Reply all
Reply to author
Forward
0 new messages