lightstreams-network / lightchain

Fast proof-of-authority blockchain based on go-ethereum and tendermint
https://lightstreams.network
GNU General Public License v3.0
55 stars 16 forks source link

lightchain init/run tracelog default value path #137

Closed iris-garcia closed 5 years ago

iris-garcia commented 5 years ago

Description

While setting up two client nodes in the same server following the guide https://docs.lightstreams.network/guides/exchange-integration/ the first client network works fine but when you try to setup the second one you face an error:

ERROR[05-01|13:07:01.718] open /tmp/tracer.log: permission denied  module=lightchain

Basically there are some defaultArgs added to the lightchain cmd and even if you do not specify the trace option, it creates the /tmp/tracer.log file with the permissions 644.

Todo

The ideal solution would be to place the tracer.log file under the --datadir path given as argument. Another option would be to rename tracer.log to any unique name.

ggarri commented 5 years ago

As a quick workaround in meanwhile this issue is sorted, you can set 777 permissions as follow:

chmod 777 /tmp/tracer.log