-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
CLI History Error on ARM #6070
Comments
Hi I have the same problem. |
FWIW: i can reproduce the same symptom on linux/amd64 if I compile the influx binary with CGO_ENABLED=0 set in the environment. In this case, the reason is that user.Current() then fails with the error: 'Current not implemented on linux/amd64.' This causes the branch in this block to be skipped, which then results in the reported symptom after a command is run (since the history path is never initialised properly). So, I suspect the reason this is occurring on ARM systems is either that the ARM build of the influx binary was done with CGO_ENABLED=0 for some reason or go has not implemented user.Current() for ARM systems for some different reason. |
Based on a quick review of the go source, it seems more likely that the ARM influx binary was compiled with CGO_ENABLED=0 or, alternatively, that the |
same problem: influx -version |
Same issue on a beaglebone (arm based). root@beaglebone:
|
Same here :(.
|
Same issue on ubuntu 14.04.
|
same here on a fresh rPi3 |
0.12.2, Banana Pi, same problem: $ uname -a |
I am seeing this on x86_64 running the 0.12.2 static linux binaries (inside an alpine docker container) |
On the latest Windows builds I get this after every command in the the influx.exe terminal: "There was an error writing history file: open : The system cannot find the file specified." |
Same error on CubieTruck:
|
I still see this issue in the latest (Windows) nightly on 8 July 2016. It seems to slow the influx.exe client a little too -- maybe it has some timeout where it tries to right to the file. |
Same error on Windows |
fix influxdata#6070 on windows
This is a high-priority issue for me. I'm glad to see progress. Thanks. |
The original issue this was opened for is actually fixed. The code no longer uses |
On Windows 10, doing |
Adding environment variable |
Adding environment variable HOME with value solved for me in Win7 |
How did anyone come up with the idea to use SET HOME= ? I didn't find "HOME" in the config file or in the Influx docs... |
@rossmcdonald is this still a problem? |
@e-dard It looks like the error still occurs if the |
was there ever a resolution to this? |
I am facing the same issue with freshly installed influxdb on Windows 10 system. Is adding an environment variable HOME to the path a recommended solution for this problem? |
This issue persists on Windows. This batch file wraps influx.exe in the fix given by @JackUkleja. Save to @ECHO OFF
SETLOCAL
SET HOME=%~dp0
"%~dp0\influx.exe" %*
ENDLOCAL Temporary shim but it works. Some details:
The culpable feature seems to be command history logging. Once |
Very good LycanStack!! |
The windows build should use HOMEPATH (trust MS to use something slightly different from the 45 year old UNIX convention). In the meantime, I am "shimming" my environment with set HOME=%HOMEPATH% - much simpler than playing with %~ business. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions. |
When running the InfluxDB CLI on ARM Linux (specifically Raspbian), the command history returns the error:
Even though the user is set appropriately. Based on this comment, it seems like the file history path isn't being set correctly.
The text was updated successfully, but these errors were encountered: