loki-shell icon indicating copy to clipboard operation
loki-shell copied to clipboard

Error: failed parsing config: config.yaml,config/config.yaml does not exist

Open andyshrk opened this issue 10 months ago • 0 comments

When I execute the following installation command on both Ubuntu 22.04 and Ubuntu 24.04, I encounter the following error at the step of "Checking loki executable":

git clone --depth 1 https://github.com/slim-bean/loki-shell.git ~/.loki-shell
cd ~/.loki-shell/
./install 

Error:

Downloading promtail
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 21.4M  100 21.4M    0     0  3341k      0  0:00:06  0:00:06 --:--:-- 4746k
Archive:  /tmp/temp.zip
  inflating: promtail-linux-amd64    
  - Checking promtail executable ... promtail, version 2.6.1 (branch: HEAD, revision: 6bd05c9a4)
  build user:       root@af90ed01061f
  build date:       2022-07-18T08:41:09Z
  go version:       go1.17.6
  platform:         linux/amd64
Downloading logcli
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 13.9M  100 13.9M    0     0  2162k      0  0:00:06  0:00:06 --:--:-- 2726k
Archive:  /tmp/temp.zip
  inflating: logcli-linux-amd64      
  - Checking logcli executable ... logcli, version 2.6.1 (branch: HEAD, revision: 6bd05c9a4)
  build user:       root@af90ed01061f
  build date:       2022-07-18T08:41:09Z
  go version:       go1.17.6
  platform:         linux/amd64
Downloading loki
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 16.0M  100 16.0M    0     0  3437k      0  0:00:04  0:00:04 --:--:-- 4427k
Archive:  /tmp/temp.zip
  inflating: loki-linux-amd64        
  - Checking loki executable ... Error: failed parsing config: config.yaml,config/config.yaml does not exist, set config.file for custom config path

Then loki will not be installed in bin:

ls bin/
logcli  promtail

It seems that loki will can't find the config.yaml at it's Checking executable state.

andyshrk avatar Mar 15 '25 10:03 andyshrk