I am uploading a code directory with the following command:
$ New-EdgeWorkerVersion -section mysection -EdgeWorkerID 123456 -CodeDirectory ./dist
This has been working fine. But as soon as I create a subdirectory (in this case dist/utils). The tarball fails to upload.
$ New-EdgeWorkerVersion -section mysection -EdgeWorkerID 123456 -CodeDirectory ./dist
Invoke-AkamaiRequest: /Users/user/.local/share/powershell/Modules/Akamai.EdgeWorkers/2.3.2/Functions/Public/New-EdgeWorkerVersion.ps1:90
Line |
90 | $Response = Invoke-AkamaiRequest @RequestParams
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HTTP 400 - Invalid Argument - Tarball validation failed: Invalid file permission : The ._utils file cannot be executable. See $Error[0].exception.data for more information
As a workaround I have kept the files in the root, without subdirectories.
I am on MacOS.
In contrast, the Akamai CLI (not powershell) does succeed to upload it.
$ akamai --section mysection edgeworkers upload --codeDir ./dist 123456
Running edgeworkers command... [ ]Created tarball at /Users/user/.akamai-cli/cache/edgeworkers-cli/edgeworkers/123456/ew_0.0.38_1777548546650.tgz
------------------------------------------------------
--- New version uploaded for EdgeWorker Id: 123456 ---
------------------------------------------------------
┌─────────┬──────────────┬──────────┬────────────────────────────────────────────────────────────────────┬────────────────────────────┬────────────────────────┐
│ (index) │ edgeWorkerId │ version │ checksum │ createdBy │ createdTime │
├─────────┼──────────────┼──────────┼────────────────────────────────────────────────────────────────────┼────────────────────────────┼────────────────────────┤
│ 0 │ 123456 │ '0.0.38' │ 'checksum_removed' │ '[email protected]' │ '2026-04-30T11:29:10Z' │
└─────────┴──────────────┴──────────┴────────────────────────────────────────────────────────────────────┴────────────────────────────┴────────────────────────┘
Running edgeworkers command... [OK]
I am uploading a code directory with the following command:
$ New-EdgeWorkerVersion -section mysection -EdgeWorkerID 123456 -CodeDirectory ./distThis has been working fine. But as soon as I create a subdirectory (in this case
dist/utils). The tarball fails to upload.As a workaround I have kept the files in the root, without subdirectories.
I am on MacOS.
In contrast, the Akamai CLI (not powershell) does succeed to upload it.