Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Authentication doesn't work when running locally #8

Open
cpretzer opened this issue Mar 8, 2018 · 1 comment
Open

Authentication doesn't work when running locally #8

cpretzer opened this issue Mar 8, 2018 · 1 comment
Assignees
Labels

Comments

@cpretzer
Copy link
Contributor

cpretzer commented Mar 8, 2018

Step 3 of the Quick Start instructions is to run the docker-compose up command, which defaults to using the docker-compose.yaml file to run Ingenious locally in Docker containers.

Once the application is running, any attempt to log in by specifying email address and password on the Log In page, results in an error.

The issue is that the docker-compose.yaml file includes a volume mount for the app directory of the album-manager service in order to allow for modification of the application code while the container is running.

    volumes:
      - ./mra-album-manager/app:/usr/src/app

This represents a conflict with the configuration of the unicorn application which runs in the container. The unicorn.rb file defines its log file paths within the app directory, and since there is no logs directory in the mounted volume, the directory is determined to be unwritable and the application fails to run properly.

# Set log file paths
stderr_path "#{@dir}log/unicorn.stderr.log"
stdout_path "#{@dir}log/unicorn.stdout.log"

The long term fix is to update the album-manager service to write its logs to the standard /var/log directory.

Until the long term fix is put in to place, there are two workarounds for addressing this:

  1. Comment out the volumes section of the album-manager service in docker-compose.yaml
  2. Add a logs directory to the mra-album-manager/app directory
@cpretzer cpretzer added the bug label Mar 8, 2018
@cpretzer cpretzer self-assigned this Mar 8, 2018
@19931010maibinhthuong
Copy link

.

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

No branches or pull requests

2 participants