Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

serverless deploy pipe failing with Error: ENOENT: no such file or directory, stat '/opt/atlassian/p

itsjayalekharamesh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2024

Hi there,

I am trying to deploy my backend using atlassian/serverless-deploy:1.5.0. But I am getting the following error :

Can somebody help resolve this error please? The other thing is it doesn't use eslint-config-prettier at  all. Not sure why its referencing it though.

 

Error: ENOENT: no such file or directory, stat '/opt/atlassian/pipelines/agent/build/node_modules/.bin/eslint-config-prettier'
154
at Object.statSync (node:fs:1583:3)
155
at Object.statSync (/opt/atlassian/pipelines/agent/build/node_modules/graceful-fs/polyfills.js:319:16)
156
at checkStats (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:171:22)
157
at checkPaths (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:183:31)
158
at copyDirItem (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:117:20)
159
at /opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:39
160
at Array.forEach (<anonymous>)
161
at copyDir (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:23)
162
at mkDirAndCopy (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:106:3)
163
at onDir (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:97:37)
164
at getStats (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:43:37)
165
at startCopy (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:36:10)
166
at copyDirItem (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:118:10)
167
at /opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:39
168
at Array.forEach (<anonymous>)
169
at copyDir (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:23)
170
at mkDirAndCopy (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:106:3)
171
at onDir (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:97:37)
172
at getStats (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:43:37)
173
at startCopy (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:36:10)
174
at Object.copySync (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/node_modules/fs-extra/lib/copy-sync/copy-sync.js:31:10)
175
at TypeScriptPlugin.<anonymous> (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/dist/src/index.js:207:20)
176
at Generator.next (<anonymous>)
177
at /opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/dist/src/index.js:8:71
178
at new Promise (<anonymous>)
179
at __awaiter (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/dist/src/index.js:4:12)
180
at TypeScriptPlugin.copyDependencies (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/dist/src/index.js:199:16)
181
at TypeScriptPlugin.<anonymous> (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/dist/src/index.js:60:28)
182
at Generator.next (<anonymous>)
183
at fulfilled (/opt/atlassian/pipelines/agent/build/node_modules/serverless-plugin-typescript/dist/s

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 8, 2024

@itsjayalekharamesh hi. It is hard to understand what is going wrong. Try to use serverless deploy cli directly to find the root cause.

Regards, Igor.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events