Zip deploy fails on backslahs in package

Bart Teirlynck 0 Reputation points
2024-08-01T11:56:20.6533333+00:00

Recently i setup a new release pipeline for a product that, in my eyes looks identical, to another release but for a different app service.

The deploy fails and whe i look at some deployement logs this catches my attention.

{"timestamp": "2024-08-01T08:07:59.057Z", "level": "Message", "containerName": "aar-70-000_kudu_2a94d01e8d", "machineName": "lw0sdlwk0005TX", "message": "Copying file: 'Reports\\Template.repx'"}
{"timestamp": "2024-08-01T08:07:59.097Z", "level": "Message", "containerName": "aar-70-000_kudu_2a94d01e8d", "machineName": "lw0sdlwk0005TX", "message": "Error: EINVAL: invalid argument, open '/home/site/wwwroot/Reports\\Template.repx'"}

For some reason during extraction of the zip packages, the file Template.repx isn't correctly handled.
It should defenitly be 1 forward slash instead of 2 backslashes. But i can't figure out why the deployement procedure with upack the zip file wrong or interpret that file in a folder in a wrong manner.

I mean it's a zip file, it's not like i have any control over the unpacking process that would unpack a folder incorrectly.

When i look at the logs of the ather apps ervice it handles this file correctly. Both are Linux app services. They are in different regions though.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
9,005 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.