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

No files are created in the temp caching folder #75

Open
MichielvanBeers opened this issue Sep 28, 2023 · 3 comments
Open

No files are created in the temp caching folder #75

MichielvanBeers opened this issue Sep 28, 2023 · 3 comments

Comments

@MichielvanBeers
Copy link

Hi,

I'm currently running the project using the (default) docker configuration. When I don't change anything and run sudo docker-compose up everything runs as expected. However, when I make changes to my dir2cast.ini file and rerun the container, the changes are not reflected (specifically increase the value of ITEM_COUNT from 10 to 99). Also adding the FORCE_PASSWORD and trying to force a cache refresh doesn't work. When I open the /tmp folder, it is also empty, giving me the idea that something is going wrong there. Is there a way to run a debugger to see where it breaks? Thanks in advance!

@MichielvanBeers
Copy link
Author

Ah, I think I got it! The dir2cast.ini is not mapped to the Docker container. Adding it as a volume like ./dir2cast.ini:/dir2cast.ini fixes it. I can do a PR for that if you want.

However, I still don't see the data generated in the tmp folder. Do you know what might be causing that?

@ben-xo
Copy link
Owner

ben-xo commented Oct 25, 2023

The tmp folder will be inside the container unless you map that too.

@MichielvanBeers
Copy link
Author

Hi @ben-xo,

Thanks for your reply. I thought the same, but I can't see the content in the container as well. See below for some details. Any ideas?

Docker-compose yaml

version: "2.3"

# after "docker-compose up" try the following URLs as examples:
# http://localhost:8080/
# http://localhost:8080/test/fixtures/

services:
    web:
        image: nginx:alpine
        restart: unless-stopped
        ports:
            - "5001:80"
        volumes:
            - .:/var/www/html
            - ./docker-compose/nginx/default.conf:/etc/nginx/conf.d/default.conf
        links:
            - php-fpm

    php-fpm:
        image: php:7-fpm-alpine
        restart: unless-stopped
        volumes:
            - .:/var/www/html

            # You could also create a Dockerfile FROM php:7-fpm-alpine which includes these next two
            - ./dir2cast.php:/dir2cast.php
            - ./dir2cast.ini:/dir2cast.ini
            - ./getID3:/getID3

            # You should map a temp folder in otherwise you'll see errors about permission denied mkdir()
            - /tmp:/temp

Output of terminal after connecting with the php-fpm container

/var/www/html # ls
CHANGELOG.txt       LICENSE             README.md           books               dir2cast.ini        dir2cast.php        docker-compose      docker-compose.yml  getID3              temp                test                tmp
/var/www/html # cd temp/
/var/www/html/temp # ls -a
.   ..
/var/www/html/temp # cd ..
/var/www/html # cd tmp
/var/www/html/tmp # ls -a
.   ..
/var/www/html/tmp # 

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