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

Permission error in image generation #2477

Open
masuriii opened this issue Dec 11, 2024 · 3 comments
Open

Permission error in image generation #2477

masuriii opened this issue Dec 11, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@masuriii
Copy link

masuriii commented Dec 11, 2024

when i try to generate image i get en error
image

i use docker container

@masuriii masuriii added the bug Something isn't working label Dec 11, 2024
@hlohaus
Copy link
Collaborator

hlohaus commented Dec 12, 2024

Do you use Linux, Mac or Windows?
If you use Linux or Mac:
Be sure your UserID is 1000.
Else you have the change it on docker build:
Env: G4F_USER_ID=your user ID

Or disable the copy_images by setting a response_format="url"

@masuriii

@masuriii
Copy link
Author

@hlohaus i try to run docker from root with id 0
i need to create another user?

@hlohaus
Copy link
Collaborator

hlohaus commented Dec 15, 2024

Hey @masuriii, that Dockerfile uses user ID 1000, so you should run it as that user too. Otherwise, don't mount the images and cookies directories in your docker-compose file or your docker run command.

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

No branches or pull requests

3 participants