linuxserver / docker-booksonic-air

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

404 error when accessing the application #3

Closed ntodorov closed 4 years ago

ntodorov commented 4 years ago

Expected Behavior

I should be able to see the login screen of the freshly deployed booksonic-air.

Current Behavior

I'm getting TomCat's 404 when accessing it with http://localhost:4040/

The container is running the latest tag. The error page:


HTTP Status 404 – Not Found Type Status Report

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/9.0.37


Steps to Reproduce

  1. Run Ubuntu 20.04 VM under Parallels
  2. create folder booksonic under your home folder
  3. create config, audiobooks, podcasts folders inside it
  4. in the booksonic folder create docker-compose.yml file and past my config bellow
  5. run docker-compose up 6 in browser hit HTTP://localhost:4040

Environment

OS: Main host MacOs Catalina, Parallels VM, Ubuntu 20.04
CPU architecture: x86_64
How docker service was installed:

Inside of the Ubuntu VM I was following the steps from https://docs.docker.com/engine/install/ubuntu/ section "Install using the repository"

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

docker-compose up

My docker-compose.yml:

version: "2.1"
services:
  booksonic-air:
    image: linuxserver/booksonic-air
    container_name: booksonic-air
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - CONTEXT_PATH=url-base
    volumes:
      - /home/parallels/projects/booksonic/config:/config
      - /home/parallels/projects/booksonic/audiobooks:/audiobooks
      - /home/parallels/projects/booksonic/podcasts:/podcasts
    ports:
      - 4040:4040
    restart: unless-stopped

Docker logs

See the attached logs.txt logs.txt

Additional info

I have tried the same steps directly on my MacOS with docker for Mac - same 404 error.

github-actions[bot] commented 4 years ago

Thanks for opening your first issue here! Be sure to follow the issue template!

aptalca commented 4 years ago

you set the url base to url-base. So you need to use that when you connect

ntodorov commented 4 years ago

Hi @aptalca, Can you clarify with example? I’m not sure what do you mean. The docker-compose yml is from the documentation of booksonik-air I did not change that option. I only changed the paths to fit my system.

aptalca commented 4 years ago

Remove the context-path line and recreate the container

ntodorov commented 4 years ago

Thanks! I will try that now.

BTW the yml came from this repository: https://github.com/linuxserver/docker-booksonic-air#docker-compose

aptalca commented 4 years ago

I know, but it's just a sample. It doesn't mean you should use it as is. You need to customize it to your needs. The context_path variable allows you to set a base url if you want to reverse proxy it as a subfolder, in which case it would be accessible at http://serverip:port/base-url

ntodorov commented 4 years ago

Thank you very much!

It is working now - I will close the issue.