github-tools-vsts icon indicating copy to clipboard operation
github-tools-vsts copied to clipboard

Error: EISDIR: illegal operation on a directory, read

Open MrHinsh opened this issue 6 years ago • 6 comments

Im getting a super annoying problem and cant figure it out. Just started happening. I have attached the logs and a screenshot of my config. I get the following error just after the release has been created:

**

Error: EISDIR: illegal operation on a directory, read

**

https://dev.azure.com/nkdagility/migration-tools/_releaseProgress?releaseId=227&_a=release-environment-logs&environmentId=563

tasklog_7.log image

MrHinsh avatar Sep 19 '19 20:09 MrHinsh

Hi @MrHinsh

I'll try to replicate it and investigating what is happening

Could you confirm what node.js and npm version are you running in your agent?

Thank you.

marceloavf avatar Sep 19 '19 20:09 marceloavf

2019-09-19T18:28:04.7568580Z ##[debug]  D:\a\r1\a (directory)
2019-09-19T18:28:04.7577174Z ##[debug]  D:\a\r1\a\vsts-sync-migration (directory)
2019-09-19T18:28:04.7581509Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop (directory)
2019-09-19T18:28:04.7590503Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\meta-build.json (file)
2019-09-19T18:28:04.7590693Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\meta-chocolatey.json (file)
2019-09-19T18:28:04.7592458Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\meta-extension.json (file)
2019-09-19T18:28:04.7607232Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\meta-gitversion.json (file)
2019-09-19T18:28:04.7607418Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\nkdAgility.vsts-sync-migration-8.0.3.vsix (file)
2019-09-19T18:28:04.7607580Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\vsts-sync-migrator.8.0.3.nupkg (file)
2019-09-19T18:28:04.7607735Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\VstsSyncMigrator-8.0.3.zip (file)

Can be something related to this 3 directories listed above

Can you try to upload the assets specific in \vsts-sync-migration\drop\** folder ?

marceloavf avatar Sep 19 '19 20:09 marceloavf

It's the hosted agent. So whatever MS puts on there.

-MrHinsh

Martin Hinshelwood

DevOps & Scrum Consultant, Microsoft MVP: Developer Technologies & DevOps, Scrumorg Professional Scrum Trainer & Evidence-based Change Consultant

naked Agility Ltd. | https://nkdagility.comhttps://nkdagility.com/

+44 7811 164 522 | +52 1 998 894 1898 | WhatsApp


From: Marcelo Formentão [email protected] Sent: Thursday, 19 September 2019 21:16 To: marceloavf/github-tools-vsts Cc: Martin Hinshelwood nkdAgility.com; Mention Subject: Re: [marceloavf/github-tools-vsts] Error: EISDIR: illegal operation on a directory, read (#40)

Hi @MrHinshhttps://github.com/MrHinsh

I'll try to replicate it and investigating what is happening

Could you confirm what node.js and npm version are you running in your agent?

Thank you.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/marceloavf/github-tools-vsts/issues/40?email_source=notifications&email_token=ABHW4RY5AXM7CCDVDAOCQ43QKPMY7A5CNFSM4IYPOZF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7EWJXA#issuecomment-533292252, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABHW4R5JBF7X76TVUA6IPDDQKPMY7ANCNFSM4IYPOZFQ.

MrHinsh avatar Sep 20 '19 01:09 MrHinsh

@MrHinsh

Can you try to change Files to Upload as Assets input from:

$(System.DefaultWorkingDirectory)\**\*

to:

$(System.DefaultWorkingDirectory)\**\*.json
$(System.DefaultWorkingDirectory)\**\*.vsix
$(System.DefaultWorkingDirectory)\**\*.nupkg
$(System.DefaultWorkingDirectory)\**\*.zip

And tell me if it work out?

marceloavf avatar Sep 20 '19 02:09 marceloavf

That worked! Thanks so much…

From: Marcelo Formentão [email protected] Sent: 20 September 2019 03:20 To: marceloavf/github-tools-vsts [email protected] Cc: Martin Hinshelwood nkdAgility.com [email protected]; Mention [email protected] Subject: Re: [marceloavf/github-tools-vsts] Error: EISDIR: illegal operation on a directory, read (#40)

@MrHinshhttps://github.com/MrHinsh

Can you try to change Files to Upload as Assets input from:

$(System.DefaultWorkingDirectory)***

to:

$(System.DefaultWorkingDirectory)***.json

$(System.DefaultWorkingDirectory)***.vsix

$(System.DefaultWorkingDirectory)***.nupkg

$(System.DefaultWorkingDirectory)***.zip

And tell me if it work out?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/marceloavf/github-tools-vsts/issues/40?email_source=notifications&email_token=ABHW4R7KV33CHEDOT6PEJG3QKQXMNA5CNFSM4IYPOZF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7FKY7Q#issuecomment-533376126, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABHW4RZ7W2BIAM6IHHD6UKDQKQXMNANCNFSM4IYPOZFQ.

MrHinsh avatar Sep 20 '19 02:09 MrHinsh

Happy to hear that @MrHinsh, you are welcome!

I'll leave this issue open since it's an error we can prevent on this task side.

Just need to allow only files matches from tl.findMatch https://github.com/marceloavf/github-tools-vsts/blob/d9dea23b02ff8f97187cd6894eaaae8306f590c7/Src/GithubReleasePublish/githubReleasePublish.js#L61

marceloavf avatar Sep 20 '19 02:09 marceloavf