Skip to content

leo-cli publish gives invalid file permissions #44

@anztenney

Description

@anztenney

When I run leo-cli publish on a linux machine, it is returning with an error code and message:


From /tmp/poc-1.0.0 to s3://leo-cli-publishbucket-.../poc/1.0.0/
--
12-Dec-2018 14:21:09 | Switching AWS Profile default
12-Dec-2018 14:21:10 | warning: Skipping file /tmp/poc-1.0.0/poc-1544644301049.js. File/Directory is not readable.
12-Dec-2018 14:21:10 |  
12-Dec-2018 14:21:17 | Error: Error publishing files
12-Dec-2018 14:21:17 | at ChildProcess.upload.on (/usr/local/bamboo/.nvm/versions/node/v8.9.1/lib/node_modules/leo-cli/lib/build.js:539:13)
12-Dec-2018 14:21:17 | at emitTwo (events.js:126:13)
12-Dec-2018 14:21:17 | at ChildProcess.emit (events.js:214:7)
12-Dec-2018 14:21:17 | at maybeClose (internal/child_process.js:925:16)
12-Dec-2018 14:21:17 | at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

When I run the same command from my Windows machine, it runs without issue.

I'm using leo-cli 2.5.2 and running on Linux:

Linux hostname 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.5.1804 (Core)
Release:        7.5.1804
Codename:       Core```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions