Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

electron-builder publish to s3 failing. #4373

Closed
VishnuPrabhuT opened this issue Oct 30, 2019 · 2 comments
Closed

electron-builder publish to s3 failing. #4373

VishnuPrabhuT opened this issue Oct 30, 2019 · 2 comments
Labels

Comments

@VishnuPrabhuT
Copy link

electron-builder - publish to s3 not working. Added aws id & key and set open permissions to s3 bucket.
Attached Log below. Using npm & cmd - "electron-builder --publish 'always' --win"

• electron-builder version=22.1.0 os=10.0.18362
• loaded configuration file=package.json ("build" field)
• packaging platform=win32 arch=x64 electron=7.0.0 appOutDir=dist\win-unpacked
• asar using is disabled — it is strongly not recommended solution=enable asar and use asarUnpack to unpack files that must be externally available
• empty password will be used for code signing reason=CSC_KEY_PASSWORD is not defined
• signing file=dist\win-unpacked\resources\app\bin\MercuryUI.exe certificateFile=PDI.pfx
• signing file=dist\win-unpacked\resources\app\node_modules\node-windows\bin\winsw\winsw.exe certificateFile=PDI.pfx
• signing file=dist\win-unpacked\resources\app\node_modules\node-windows\bin\sudowin\sudo.exe certificateFile=PDI.pfx
• signing file=dist\win-unpacked\CStorePro Essentials.exe certificateFile=PDI.pfx
• building target=Squirrel.Windows arch=x64 file=dist\squirrel-windows\CStorePro Essentials Setup 1.0.2.exe
• signing file=C:\Users\vishnu\AppData\Local\Temp\t-ecH9Na\squirrel-windows-0\Update.exe certificateFile=PDI.pfx
• signing file=C:\Users\vishnu\AppData\Local\Temp\t-ecH9Na\1-stub.exe certificateFile=PDI.pfx
• signing file=dist\squirrel-windows\CStorePro Essentials Setup 1.0.2.exe certificateFile=PDI.pfx
• publishing publisher=S3 (bucket: temp-mercury-builds)
• uploading file=CStorePro Essentials Setup 1.0.2.exe provider=S3
• uploading file=cstoreproessentials-1.0.2-full.nupkg provider=S3
• uploading file=RELEASES provider=S3
⨯ AccessDenied: Access Denied
status code: 403, request id: BD38840D8D0948D5, host id: PPCrIhmOBbt5hXHvt7KG9ozQaZw1T8a1yJdBqXeFu9XRWluTq9G1Daq5nw1Z5x35WfD4uSEij5s=
github.com/develar/app-builder/pkg/publisher.upload
/Volumes/data/Documents/app-builder/pkg/publisher/s3.go:171
github.com/develar/app-builder/pkg/publisher.ConfigurePublishToS3Command.func1
/Volumes/data/Documents/app-builder/pkg/publisher/s3.go:56
github.com/alecthomas/kingpin.(*actionMixin).applyActions
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/actions.go:28
github.com/alecthomas/kingpin.(*Application).applyActions
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:557
github.com/alecthomas/kingpin.(*Application).execute
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:390
github.com/alecthomas/kingpin.(*Application).Parse
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:222
main.main
/Volumes/data/Documents/app-builder/main.go:90
runtime.main
/usr/local/Cellar/go/1.13/libexec/src/runtime/proc.go:203
runtime.goexit
/usr/local/Cellar/go/1.13/libexec/src/runtime/asm_amd64.s:1357
⨯ AccessDenied: Access Denied
status code: 403, request id: BAEE79A9340CB28A, host id: aSFqdmUQMmUwT/9wPEHK66IpdAr3WlvRXKnFRMKOsN1Y14LKzPG5PUC2cGOUpmJonEMEqdatU24=
github.com/develar/app-builder/pkg/publisher.upload
/Volumes/data/Documents/app-builder/pkg/publisher/s3.go:171
github.com/develar/app-builder/pkg/publisher.ConfigurePublishToS3Command.func1
/Volumes/data/Documents/app-builder/pkg/publisher/s3.go:56
github.com/alecthomas/kingpin.(*actionMixin).applyActions
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/actions.go:28
github.com/alecthomas/kingpin.(*Application).applyActions
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:557
github.com/alecthomas/kingpin.(*Application).execute
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:390
github.com/alecthomas/kingpin.(*Application).Parse
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:222
main.main
/Volumes/data/Documents/app-builder/main.go:90
runtime.main
/usr/local/Cellar/go/1.13/libexec/src/runtime/proc.go:203
runtime.goexit
/usr/local/Cellar/go/1.13/libexec/src/runtime/asm_amd64.s:1357
⨯ AccessDenied: Access Denied
status code: 403, request id: F3AACE5CDE3E5456, host id: PFeH3dKJYKrNuLZr6WtSQ2sF49IaJ4MczPWuu8HFa6bpscjDBvAE9oDyDRwo4+iybnlqJ6dX72c=
github.com/develar/app-builder/pkg/publisher.upload
/Volumes/data/Documents/app-builder/pkg/publisher/s3.go:171
github.com/develar/app-builder/pkg/publisher.ConfigurePublishToS3Command.func1
/Volumes/data/Documents/app-builder/pkg/publisher/s3.go:56
github.com/alecthomas/kingpin.(*actionMixin).applyActions
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/actions.go:28
github.com/alecthomas/kingpin.(*Application).applyActions
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:557
github.com/alecthomas/kingpin.(*Application).execute
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:390
github.com/alecthomas/kingpin.(*Application).Parse
/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:222
main.main
/Volumes/data/Documents/app-builder/main.go:90
runtime.main
/usr/local/Cellar/go/1.13/libexec/src/runtime/proc.go:203
runtime.goexit
/usr/local/Cellar/go/1.13/libexec/src/runtime/asm_amd64.s:1357
⨯ Cannot cleanup:

Error #1 --------------------------------------------------------------------------------
Error: C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
at ChildProcess.childProcess.once.code (C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\util.ts:239:14)
at Object.onceWrapper (events.js:273:13)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

Error #2 --------------------------------------------------------------------------------
Error: C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
at ChildProcess.childProcess.once.code (C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\util.ts:239:14)
at Object.onceWrapper (events.js:273:13)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

Error #3 --------------------------------------------------------------------------------
Error: C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
at ChildProcess.childProcess.once.code (C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\util.ts:239:14)
at Object.onceWrapper (events.js:273:13)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) stackTrace=
Error: Cannot cleanup:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Error #1 --------------------------------------------------------------------------------
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Error: C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at ChildProcess.childProcess.once.code (C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\util.ts:239:14)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at Object.onceWrapper (events.js:273:13)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at ChildProcess.emit (events.js:182:13)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at maybeClose (internal/child_process.js:962:16)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Error #2 --------------------------------------------------------------------------------
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Error: C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at ChildProcess.childProcess.once.code (C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\util.ts:239:14)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at Object.onceWrapper (events.js:273:13)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at ChildProcess.emit (events.js:182:13)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at maybeClose (internal/child_process.js:962:16)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Error #3 --------------------------------------------------------------------------------
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Error: C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at ChildProcess.childProcess.once.code (C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\util.ts:239:14)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at Object.onceWrapper (events.js:273:13)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at ChildProcess.emit (events.js:182:13)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at maybeClose (internal/child_process.js:962:16)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at throwError (C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\asyncTaskManager.ts:90:11)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at checkErrors (C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\asyncTaskManager.ts:53:9)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at AsyncTaskManager.awaitTasks (C:\Users\vishnu\AppData\Roaming\npm\node_modules\electron-builder\node_modules\builder-util\src\asyncTaskManager.ts:67:7)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       at process._tickCallback (internal/process/next_tick.js:68:7)
@yvesh
Copy link

yvesh commented Jan 4, 2020

Just experienced the same issue and did some testing. It's probably due to "x-amz-acl": "public-read" is sent by default, see also #1822

So either make your S3 bucket public or configure the ACL correctly.

@stale
Copy link

stale bot commented Mar 4, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants