Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request failed with status code 400 #43

Closed
gregbert42 opened this issue Nov 8, 2018 · 2 comments
Closed

Request failed with status code 400 #43

gregbert42 opened this issue Nov 8, 2018 · 2 comments

Comments

@gregbert42
Copy link

gregbert42 commented Nov 8, 2018

I've used a docker-compose.yaml to set it up that I found posted here. I get "request failed with status code 400"

version: '3'
services:
    ownphotos:
        image: hooram/ownphotos:master
        links:
        - ownphotos-db
        - ownphotos-redis
        volumes:
        - ownphotos-data:/data
        - ownphotos-metadata:/code/media
        environment:
        - SECRET_KEY=SECRET_KEY
        - ADMIN_EMAIL=ownphotos@varum.dk
        - ADMIN_USERNAME=USER
        - ADMIN_PASSWORD=PASSWORD
        - DEBUG=false
        - DB_BACKEND=postgresql
        - DB_NAME=ownphotos
        - DB_USER=ownphotos
        - DB_PASS=PASSWORD
        - DB_HOST=ownphotos-db
        - DB_PORT=5432
        - REDIS_HOST=ownphotos-redis
        - REDIS_PORT=6379
        - MAPBOX_API_KEY=MAPBOX_API_KEY
        - BACKEND_HOST=192.168.2.24:8000 <THIS IS THE IP OF MY SERVER>
        ports:
        - 8000:80
        - 3000:3000
        - 5000:5000
    ownphotos-db:
        image: postgres:alpine
        container_name: postgres
        restart: always
        volumes:
         - ownphotos-db:/var/lib/postgresql/data
       environment:
        - POSTGRES_DB=ownphotos
        - POSTGRES_USER=ownphotos
        - POSTGRES_PASSWORD=PASSWORD
    ownphotos-redis:
        image: redis:alpine
        container_name: redis
        volumes:
        - ownphotos-redis:/data
    volumes:
        ownphotos-data:
        ownphotos-metadata:
        ownphotos-db:
        ownphotos-redis:

and here is the error message in chrome:

image

@guysoft
Copy link
Collaborator

guysoft commented Dec 16, 2018

Hey, master branch is not stable and you should use the dev branch. As stated by hooram here

If you want a working solution check out my PR, there is an example docker-compose.yml there:
hooram/ownphotos-frontend#31

@gregbert42
Copy link
Author

gregbert42 commented Dec 23, 2018

This worked for me. Thank you guysoft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants