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

how to install ? #4

Open
thenamelessthing opened this issue May 17, 2024 · 16 comments
Open

how to install ? #4

thenamelessthing opened this issue May 17, 2024 · 16 comments
Assignees

Comments

@thenamelessthing
Copy link

Hi, I try to install the docker image but I got this error:

image

Here is a screenshot of my docker-compose file:

image

Any idea?

Thank you for your help!

@TechBuckler
Copy link
Owner

Was adding $$ instead of $ a solution that worked? Or are you still facing issues?

@TechBuckler TechBuckler self-assigned this May 24, 2024
@thenamelessthing
Copy link
Author

I will try this evening. Thank for the follow up.

@thenamelessthing
Copy link
Author

Just tried and doesn't work.

@TechBuckler
Copy link
Owner

TechBuckler commented May 24, 2024

Try removing the entire line (FFREPORT). Does that throw an error as well?

@thenamelessthing
Copy link
Author

with the additional $

Now I got the same error that if I comment the whole line.

Initially I had taken the content of your docker-compose.yml and integrated it into my own. But to debug, I created a separate file .

image

and now I have this as an error:

image

@TechBuckler
Copy link
Owner

Try: Add version: "3" to the start of your docker-compose.yml. (https://stackoverflow.com/questions/36724948/docker-compose-unsupported-config-option-for-services-service-web)

@thenamelessthing
Copy link
Author

thenamelessthing commented May 24, 2024

a new error, at last some progress!

I asked to chatgpt to help me and here his docker-compose suggestion:

image

Now it seem to work, but I got this:

image

I have enough free space..

image

@TechBuckler
Copy link
Owner

So I would think you would want to keep "context: ." (tells the code that the file's are in the current folder - unless you've moved that around). And the external: true tells docker that this folder already exists outside of docker. (https://docs.docker.com/compose/compose-file/07-volumes/#external) Probably less of a big deal to not have that - but could also cause issues I suppose.
Tried to do a little research on the disk space issue, and these two SO answers seem most relevant: https://stackoverflow.com/questions/53457004/python-oserror-errno-28-no-space-left-on-device https://stackoverflow.com/questions/6998083/python-causing-ioerror-errno-28-no-space-left-on-device-results-32766-h
Trying to think why docker build would be using python, but it looks like docker does use some python for it's internals and cli.
Looks like trying to clear tmp and cache files might be the solution moving forward. Let me know if you want to hop on a discord chat or something later today. Otherwise - happy to keep assisting here as much as I'm able.

@crispybegs
Copy link

Im also really struggling to get this working.

my compose is:

version: '3'
services:
  plexgifmaker:
    build:
      context: /home/pi1/docker  # This should be the root directory containing the 'PlexGifMaker' folder
      dockerfile: PlexGifMaker/Dockerfile
    image: plexgifmaker:latest
    ports:
    -  "9999:9000"
    volumes:
      - /home/pi1/docker/PlexGifMaker/plexgifmaker_keys:/usr/shared/plexgifmaker_keys
      
    restart: unless-stopped
    environment:
      - ASPNETCORE_URLS=http://+;http://+:9000
      - FFREPORT=file=/app/logs/ffmpeg-$(date +%Y%m%s).log 

  ngrok:
    image: ngrok/ngrok:latest
    restart: unless-stopped
    command:
      - "start"
      - "localhost"
      - "--config"
      - "/home/ngrok/.config/ngrok/ngrok.yml"
    volumes:
      - ./ngrok.yml:/home/ngrok/.config/ngrok/ngrok.yml
    depends_on:
      - plexgifmaker

volumes:
  plexgifmaker_keys:
    name: plexgifmaker_keys
    external: true

but all i ever get is

**Deployment error**
failed to deploy a stack: plexgifmaker Pulling plexgifmaker Warning unable to prepare context: path "/home/pi1/docker" not found

@TechBuckler
Copy link
Owner

Guessing a permissions issue? What does "ls -ld /home/pi1/docker" return?

@crispybegs
Copy link

ls -ld /home/pi1/docker

drwxr-xr-x 18 pi1 pi1 4096 May 25 15:21 /home/pi1/docker

@TechBuckler
Copy link
Owner

Try giving it the old "chmod -R 777 /home/pi1/docker" and then re-run the command and see if it works then. Let me know if it's still the same error. Good luck!

@thenamelessthing
Copy link
Author

@TechBuckler , you can reach me on discord. My username is thenamelessthing i'm on UTC-4. Thank you!

@motoridersd
Copy link

motoridersd commented Nov 1, 2024

I'm unable to install this either. I tried building it, but it seems to be trying to update the internal debian components using http and I'm getting a lot of connection time outs when trying to pull images:

=> => # Connection timed out [IP: 151.101.130.132 80]

Trying to run docker compose up without building results in an error because the docker image doesn't exist.

! plexgifmaker Warning pull access denied for plexgifmaker, repository does not exist or may require 'docker login': denied:... 0.8s

edit: I got it to run by running 'docker build --network=host'. Had to edit the Dockerfile to change the folder structure.

@TechBuckler
Copy link
Owner

@motoridersd I'm glad you got it working! Any other changes needed to get it to that state? What OS are you running on? @thenamelessthing Sorry I didn't get back to you sooner. Try the latest build and see if you have more success.

@motoridersd
Copy link

motoridersd commented Nov 9, 2024

I commented out the ngrok part of the docker-compose file because it was just filling the logs with ngrok errors. Was this implemented fully?

I edited the Dockerfile and replaced the two COPY lines:

COPY ["PlexGifMaker/PlexGifMaker.csproj", "./"]
COPY ["PlexGifMaker/", "./"]

with

COPY ["PlexGifMaker.csproj", "./"]
COPY ["/", "./"]

And then built by running

cd PlexGifMaker/PlexGifMaker
docker build --network host -t plexgifmaker .
docker compose up

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

4 participants