Code Monkey home page Code Monkey logo

Comments (7)

gcurtis avatar gcurtis commented on August 11, 2024

@peterzandbergen thanks for adding this to an issue. As you mentioned in Discord, this is most likely due to Devbox being compiled with cgo disabled. From the os/user docs:

For most Unix systems, this package has two internal implementations of resolving user and group ids to names, and listing supplementary group IDs. One is written in pure Go and parses /etc/passwd and /etc/group. The other is cgo-based and relies on the standard C library (libc) routines such as getpwuid_r, getgrnam_r, and getgrouplist.

When cgo is available, and the required routines are implemented in libc for a particular platform, cgo-based (libc-backed) code is used. This can be overridden by using osusergo build tag, which enforces the pure Go implementation.

I'd rather not enable cgo, so we should track down why we need the current user and see if there's a way to degrade gracefully.

from devbox.

gcurtis avatar gcurtis commented on August 11, 2024

I double checked, and I can't find anywhere that devbox or its dependencies prints this error. All of our calls to the os/user package have annotated errors. I also don't see "cannot find name for group ID" in the Go stdlib source.

This might be from some other program that's running as part of an init hook, plugin, or shell rcfile.

@peterzandbergen I saw your comment about adding more info. I'll wait until we have the devbox.json and DEVBOX_DEBUG=1 logs before digging further.

from devbox.

peterzandbergen avatar peterzandbergen commented on August 11, 2024

Here are devbox.json and the output of devbox shell with DEVBOX_DEBUG=1

report.tar.gz

from devbox.

peterzandbergen avatar peterzandbergen commented on August 11, 2024

Taken from the terminal

devbox.debug.terminal.log

from devbox.

peterzandbergen avatar peterzandbergen commented on August 11, 2024

Looking at the last log I thought that this file might be useful. It is the file that is mentioned at line 36 in the previous log file I sent.

bashrc.zip

from devbox.

peterzandbergen avatar peterzandbergen commented on August 11, 2024

I ran the bash with -x and the rc file and this is the begin of the output where the error messages are written

bash-x.log.tar.gz

from devbox.

peterzandbergen avatar peterzandbergen commented on August 11, 2024

It looks like groups is the culprit

See the difference between the nix and non nix version.

groups-innix.log
groups.log

from devbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.