-
Notifications
You must be signed in to change notification settings - Fork 215
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
devbox does not work properly with locales (ubuntu 24.04) #2427
Comments
Additional information - If I make "devbox shell" AND install "glibc" and "glibcLocales" inside - then error disappeared.
Meanwhile global devbox does not work still
My
|
How to install devbox WITHOUT glibc - by using pre-installed global one? |
Guys, I am terribly sorry for pointing you, but I am stuck with this problem and devbox on my machine impossible to use (in case of golang build the entire console in errors like "setlocale: not found" and it wipe out any useful output) Before it was fine in case if I install "build-essential" first, and only after that install devbox - but this workaround does not work anymore. Could you please, at least, point me out on how to debug problem? Thank you so much for your help |
Hey @excavador Thanks for reporting this issue. We had done some work to patch glibc referencing to make mostly python libraries work.
If you had a workaround with a previous version of devbox, there is an env variable you can set that it will force devbox to use an older version, which is For the time being while I bring up this issue with the team, could you test older version of devbox and see what was the latest version that the build-essential workaround was still working? It will help a lot in figuring out the root cause for us. |
Thank you for answer! I am on it to test with listed version |
@mohsenari the current state I cleaned everything
I have added I have rebooted machine to be sure that everything is fine.
Now I install devbox by command
Now I install
Now I try to launch it
Double-check the version
As you could see, issue still exists. -
I do not understand why :( Before it was Ubuntu 24.04, I install just I installed |
What could I do, different from "reinstall Ubuntu from scratch"? :( |
@mohsenari why this is the huge problem to me. We integrated devbox everywhere in organization. Right now to make any work I need workable devbox. |
@mohsenari I have found, that "normal devbox" (not global) works fine with Nobody in organization need it and we never install Install In my home directory
Now I do not have issue in home directory! The problem is the following - when I use some devbox in some git repository - this "home" devbox is ignored entirely. My "global" devbox.json is the following
|
@excavador sorry that this is blocking your work. Seems like installing To clarify, are you trying to setup a "global" devbox in your home directory? and then in git subdirectories under home, the same environment is not present? |
It does not fix the issue. I just show the example, that "setup devbox inside home directory" works differently from "install global devbox" Somehow global devbox and regular "directory devbox" are different. If I install glibcLocalesUtf8 to "directory devbox" - I do not see issue Why it is the problem
The long story short - issue still exists and blocking me - I just showed the difference between global devbox and devbox in the directory - and this is not a solution
Normally (the first commend from today) I installed devbox GLOBALLY. I make set up "devbox to home directory" just to ilusstrate the difference! I understand, why "devbox in subdirectory" does NOT see "devbox from outer directory" - it's reasonable @mohsenari hope for your help |
@excavador Ok, thanks for clarifying. I'm gonna try recreating this issue on my end and report back once I find a workaround. |
@mohsenari thank you! I know how to reproduce issue 100%
If you install This is what we found the several months ago. It worked to everybody inside organization. Recently I reinstalled ubuntu on my laptop - install build-essential first - and devbox after that - but this solution is stop working I hope it is helping @mohsenari |
@mohsenari I think I finally figure out the issue! Seems like, Nix or devbox recently updated to the fresh version of glibc - 2.40.x, while ubuntu 24.04 is using 2.39.x As the result, before the version of glibc on my ubuntu 24.04 and nix were the same, and they shared the locales from host glibc. I have managed to fix the global devbox in the following way
|
@mohsenari I think devbox need somehow reflect this part inside documentation... |
@excavador that's very helpful, thank you for looking into this. I haven't been able to reproduce this issue yet, I think it's because my Kubuntu image didn't have nl_NL locale. |
You could do the different! If you have en_US.UTF-8 during install, just switch global locale AFTER install to something like en_GB.UTF-8 and try to install devbox/nix I am pretty sure, the issue appears if you change locales after install Ubuntu and locales are different from the default ones |
@mohsenari hello! We just confirmed workability of my workaround (LOCAL_ARCHIVE env) on other linux ubuntu machine. Do you have any updates? Do you need any help? |
@excavador sorry for delay, I still am unable to reproduce this issue. It would be very helpful if you provide a step by step instruction after a fresh ubuntu install, more specifically expand your "step 3: see the issue", that makes the error show up, I would appreciate it. |
Got it. I will try to prepare Dockerfike with reproduction tomorrow Thank you so much for your participation! |
@mohsenari I have reproduction case for you! Dockerfile
Command to run
Inside docker container (run it in terminal command-by-command, you need tty)
result
P.S. awscli inside docker is broken (I do not know why), but this problem exists |
@mohsenari actually, you could observe the several problems from the previous snippet.
There are multiple problems, and maybe they have the same root cause. I hope I am helping. Could you please confirm, that you able to reproduce original problem and additional ones? Thank you! |
What happened?
I have installed devbox to my machine and now I could see the following
The same error message I see when I try to build golang program.
Installation of "glibcLocales" inside global devbox does NOT help me.
How to debug and fix this issue?
Steps to reproduce
Command
No response
devbox.json
No response
Devbox version
0.13.6
Nix version
2.24.7
What system does this bug occur on?
Linux (x86-64)
Debug logs
The text was updated successfully, but these errors were encountered: