Skip to content

scsserver-linux-amd64 does not respect path from configuration file. #6

Description

@wangjia184

I am tryign to dockernize filestorm so that it can be run from NAS device.
Current latest version 2.0 https://github.com/MOACChain/FileStorm/releases/tag/2.0

scsserver-linux-amd64 cannot be started in docker container with non-root privilege.
After further investigation, it turns out scsserver-linux-amd64 was trying to write files in the root directory.

  • /private.pem
  • /public.pem
  • /scskeystore/

Those files are out of /data/scs directory which is configured in userconfig.json

{
   //....
    "DataDir" : "/data/scs"
   //...
}

However, scsserver-linux-amd64 does not respect that. And encountered permission error on start.

A temporary solution is to add the following line into Dockerfile so that the working directory is fixed to /data/scs.

WORKDIR /data/scs

It seems scsserver-linux-amd64 is trying to write files in working directory instead of configured path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions