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] Docker Compose Installation issues on macOS #4602

Open
mrshu opened this issue Nov 4, 2024 · 2 comments
Open

[Bug] Docker Compose Installation issues on macOS #4602

mrshu opened this issue Nov 4, 2024 · 2 comments
Labels
๐Ÿ› Bug Something isn't working | ็ผบ้™ท Inactive No response in 30 days | ่ถ…่ฟ‡ 30 ๅคฉๆœชๆดป่ทƒ

Comments

@mrshu
Copy link

mrshu commented Nov 4, 2024

๐Ÿ“ฆ Environment

Docker, Other

๐Ÿ“Œ Version

v1.26.20

๐Ÿ’ป Operating System

macOS

๐ŸŒ Browser

Chrome

๐Ÿ› Bug Description

When going through Docker Compose tutorial, I ran into this:

Error response from daemon: unable to find user nextjs: no matching entries in passwd file

๐Ÿ“ท Recurrence Steps

No response

๐Ÿšฆ Expected Behavior

No response

๐Ÿ“ Additional Information

No response

@mrshu mrshu added the ๐Ÿ› Bug Something isn't working | ็ผบ้™ท label Nov 4, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Nov 4, 2024
@lobehubbot
Copy link
Member

๐Ÿ‘€ @mrshu

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
้žๅธธๆ„Ÿ่ฐขๆ‚จๆไบค issueใ€‚ๆˆ‘ไปฌไผšๅฐฝๅฟซ่ฐƒๆŸฅๆญคไบ‹๏ผŒๅนถๅฐฝๅฟซๅ›žๅคๆ‚จใ€‚ ่ฏท็กฎไฟๆ‚จๅทฒ็ปๆไพ›ไบ†ๅฐฝๅฏ่ƒฝๅคš็š„่ƒŒๆ™ฏไฟกๆฏใ€‚

@mrshu mrshu changed the title [Bug] [Bug] Docker Compose Installation issues on macOS Nov 4, 2024
Copy link

dosubot bot commented Nov 4, 2024

Hey @mrshu! ๐Ÿ‘‹ I'm here to help you with any bugs, questions, or contributions you have while waiting for a human maintainer. Let's squash those bugs together!

The error "unable to find user nextjs: no matching entries in passwd file" suggests that the 'nextjs' user is not being created or recognized in the Docker environment. This user is supposed to be created in the Dockerfile for Lobe Chat to run the application with a non-root user for security reasons.

To troubleshoot this issue, ensure that the Dockerfile includes the necessary steps to create the 'nextjs' user. The relevant section should look like this:

RUN \
    # Add nextjs:nodejs to run the app
    addgroup -S -g 1001 nodejs \
    && adduser -D -G nodejs -H -S -h /app -u 1001 nextjs \
    # Set permission for nextjs:nodejs
    && chown -R nextjs:nodejs /app /etc/proxychains4.conf

Additionally, verify that the Docker Compose file includes the instruction USER nextjs to specify that the container should run as the 'nextjs' user [1].

If these steps are already in place, try rebuilding the Docker image to ensure that all changes are applied correctly.

To continue talking to Dosu, mention @dosu.

@lobehubbot lobehubbot added the Inactive No response in 30 days | ่ถ…่ฟ‡ 30 ๅคฉๆœชๆดป่ทƒ label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐Ÿ› Bug Something isn't working | ็ผบ้™ท Inactive No response in 30 days | ่ถ…่ฟ‡ 30 ๅคฉๆœชๆดป่ทƒ
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

2 participants