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

[Bug Report] ~ is not expand when using docker-compose #277

Closed
ipfans opened this issue Feb 4, 2022 · 1 comment · Fixed by #271
Closed

[Bug Report] ~ is not expand when using docker-compose #277

ipfans opened this issue Feb 4, 2022 · 1 comment · Fixed by #271
Labels
bug Something isn't working

Comments

@ipfans
Copy link

ipfans commented Feb 4, 2022

Describe the bug

I am using docker-compose to deploy v0.24.0 of mango. When I follow the steps in README and used the configuration file in the README.md file, I found that the config.yml file can be read normally, but the mango data folder is always empty.

When checking the log outputs, I found that the logs show that the ~/mango folder does not exist, then mango created a /~/mango directory instead of using the /root directory.

But when I replace ~ with /root in the config, mango can recognize that the directory exists and write data.

To Reproduce

mkdir config mango
vim config/config.yml
docker-compose up

Expected behavior

mango directory should not be empty

Environment (please complete the following information):

  • OS: Ubuntu 20.04 with docker.io and docker-compose installed.
  • Browser: Firefox
  • Mango Version: v0.24.0

Docker (if you are running Mango in a Docker container)

version: '3'

services:
  mango:
    image: hkalexling/mango
    container_name: mango
    expose:
      - 9000
    ports:
      - 127.0.0.1:9000:9000
    volumes:
      - ./mango:/root/mango
      - ./config:/root/.config/mango

Additional context

host: 0.0.0.0
port: 9000
base_url: /
session_secret: mango-session-secret
library_path: ~/mango/library
db_path: ~/mango/mango.db
scan_interval_minutes: 5
thumbnail_generation_interval_hours: 24
log_level: info
upload_path: ~/mango/uploads
plugin_path: ~/mango/plugins
download_timeout_seconds: 30
library_cache_path: ~/mango/library.yml.gz
cache_enabled: true
cache_size_mbs: 100
cache_log_enabled: false
disable_login: false
default_username: "admin"
auth_proxy_header_name: ""
mangadex:
  base_url: https://mangadex.org
  api_url: https://api.mangadex.org/v2
  download_wait_seconds: 5
  download_retries: 4
  download_queue_db_path: ~/mango/queue.db
  chapter_rename_rule: '[Vol.{volume} ][Ch.{chapter} ]{title|id}'
  manga_rename_rule: '{title}'
@ipfans ipfans added the bug Something isn't working label Feb 4, 2022
hkalexling added a commit that referenced this issue Feb 6, 2022
@hkalexling hkalexling mentioned this issue Feb 11, 2022
@mango-assistant
Copy link

Hi there! The issue has been fixed in v0.25.0. Thanks for the bug report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant