some reason, it doesn’t start. The process name
                  
                  
                  is "liran" i saw in the  /var/log/access.log
                  
                  
                  that :
                  
                  
                   fatal Could not create repo: open /var/lib/liran/data/liran.db: permission denied (source: /usr/local/go/src/runtime/proc.go:185)(error: open /var/lib/liran/data/liran.db: permission denied)
                  
                  
                  
                  
                  
                   so i checked
                  
                  
                  #stat -c "%a %n" /var/lib/liran/data/liran.db
                  
                  
                  600 /var/lib/liran/data/liran.db
                  
                  
                  
                  
                  
                  so i did:
                  
                  
                  #sudo chmod 777 /var/lib/liran/data/liran.db
                  
                  
                  
                  
                  
                   now in the /var/log/access.log
                  
                  
                   i see a new error when trying to start the service:
                  
                  
                   error Failed on ensure function for evidences (source: /usr/local/go/src/runtime/asm_amd64.s:2337)(error: cannot open index, metadata missing)
                  
                  
                   error Failed on ensure function for jobsIdx (source: /usr/local/go/src/runtime/asm_amd64.s:2337)(error: cannot open index, metadata missing)
                  
                  
                  error Failed on ensure function for classifiersIdx (source: /usr/local/go/src/runtime/asm_amd64.s:2337)(error: cannot open index, metadata missing)
                  
                  
                   error Failed on ensure function for accounts (source: /usr/local/go/src/runtime/asm_amd64.s:2337)(error: cannot open index, metadata missing)
                  
                  
                   Error Counts : 18 (source: /home/ubuntu/.go_workspace/src/github.com/liran/server/repo/complexRepo/repo.go:2279)
                  
                  
                  fatal Error during ensure repo (10040) (source: /home/ubuntu/.go_workspace/src/github.com/liran/server/server.go:135)
                  
                  
                  
                  
                  
                  can someone advise please?
                  
                  
                  Of course the 777 not a solution...
                  
                  
                
Maybe go back to 600 and make the user running the service the owner of the file.
Could try starting the service with sudo? You said you ran the command ' service liran start', so unless you were running as root your privileges are limited.
Обсуждают сегодня