username field cannot be blank
Answeredhi,
I have a question about getting a gurobi licence. After I get an academic key and type grbgetkey (key) in Linux environment. An error pops up and shows username field cannot be blank. The version of gurobi is the newest 10.0.0. When I type code "whoami",it can show the user name correctly. When I run grbprobe, the USERNAME is Blank. However, When I run grbprobe under version 950, the USERNAME is NOT blank. How should I solve this problem?
-
We have seen this issue before when installing Gurobi from conda, this makes Gurobi not able to retrieve your username. Leading
grbgetkey
andgrbprobe
to fail.Could you please try installing the full version of Gurobi? You may also use the package that only contains the licensing tools: How do I set up a license without installing the full Gurobi package? – Gurobi Support Portal
-1 -
I got this version from https://www.gurobi.com/downloads/gurobi-software/ .
I think it is the full version, and I also try to run grbprobe download from the package that only contains the licensing tools. The user name is still blank.
1 -
Can you please confirm whether you use an Anaconda environment?
If so could you please runconda list
and check whether there is an entry calledkrb5
?
You may need to install this if it's not there.-1 -
Hello,
I am having the same issue when trying to upgrade my token server from v9.5.2 to v10.0.0. I am not using conda. I tried downloading both the full version and the license tools only, but in either case I get the following message when I try to obtain the license file with grbgetkey
Are there any other solutions you would recommend?
Thanks.1 -
I also have the same issue, and haven't solved it working on it for several hours.
I use Linux Open Suse Tumbleweed, using the default recommended installation path /opt/.
Running the command:grbprobe
returns
info : grbprobe version 10.0.1, build v10.0.1rc0
HOSTNAME=localhost.localdomain
HOSTID=64829653
PLATFORM=linux64
USERNAME=
CORES=4
CPU=Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
CONTAINERID=host:DPB00BID
TAG=1679922454582221864960Although running the command:
whoami
Returns my usual username.
I am trying to do a full install, not conda.1 -
I have the same issue here:
grbgetkey xxxx leads to:
info : grbgetkey version 10.0.1, build v10.0.1rc0
info : Contacting Gurobi license server...
error : ERROR 101: Username field cannot be blankand grdprobe works but the username field is empty: "USERNAME=".
How can I change that? What would be the right USERNAME?
2 -
I had the same issue on my machine, which was solved by changing my locale setting (i.e., LANG and LC_* environment variables); in particular, `export LC_ALL=C` fixed the issue and gurobi detected my username.
1 -
Hi,
I had the same issue. I am running Gurobi 10.01 on a CentOS 8.5 machine with an academic license. It was also solved setting `export LC_ALL=C` in my .bashrc file. (Thanks Martin Heistermann)
1
Please sign in to leave a comment.
Comments
8 comments