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

[BUG]: [error]Could not find json #4978

Open
1 of 4 tasks
sphtd opened this issue Sep 4, 2024 · 2 comments
Open
1 of 4 tasks

[BUG]: [error]Could not find json #4978

sphtd opened this issue Sep 4, 2024 · 2 comments

Comments

@sphtd
Copy link

sphtd commented Sep 4, 2024

What happened?

Hi,

We have a problem with tasks in Azure Devops.
From time to time, tasks crash on different pipelines, also different ones!

This happens with different tasks: AzureCLI, kubectl, etc.

Versions

Agent.Version: 3.243.1 on Ubuntu 20.04

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 20.04

Version controll system

No response

Relevant log output

For example: 


To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

##[error]Script failed with error: ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: [Errno 2] No such file or directory: '/home/user/_work/_temp/.azclitask/commandIndex.json'
Traceback (most recent call last):
  File "/opt/az/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 518, in execute
    self.commands_loader.load_command_table(args)
  File "/opt/az/lib/python3.11/site-packages/azure/cli/core/__init__.py", line 483, in load_command_table
    command_index.update(self.command_table)
  File "/opt/az/lib/python3.11/site-packages/azure/cli/core/__init__.py", line 607, in update
    self.INDEX[self._COMMAND_INDEX_VERSION] = __version__
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/az/lib/python3.11/site-packages/azure/cli/core/_session.py", line 75, in __setitem__
    self.save_with_retry()
  File "/opt/az/lib/python3.11/site-packages/azure/cli/core/_session.py", line 65, in save_with_retry
    self.save()
  File "/opt/az/lib/python3.11/site-packages/azure/cli/core/_session.py", line 54, in save
    with open(self.filename, 'w', encoding=self._encoding) as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/_work/_temp/.azclitask/commandIndex.json'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Another pipeline:

Starting: Checkout master
##[error]Could not find a part of the path '/home/user/_work/_tasks/CmdLine_d9bafed4-0b18-4f58-968d-86655b4d2ce9/2.237.1/task.json'
@vmapetr
Copy link
Contributor

vmapetr commented Sep 9, 2024

Hi @sphtd, thank you for your report.
Could you please clarify when the issue first occurredd? Does it also happen on the other agent versions?
According to the error message it's looks like some conflict between azure-cli and python interpreter - could you please also share the error logs for the kubectl task failure, or any other?

@sphtd
Copy link
Author

sphtd commented Sep 18, 2024

Hi @vmapetr ,
Unfortunately I don't remember, but somewhere around mid-August

I installed new agents on Ubuntu 22.04, unfortunately it didn't help. Now there are errors in some tasks:

##[error]Could not find a part of the path '/home/crazyjane/_work/_tasks/CmdLine_d9bafed4-0b18-4f58-968d-86655b4d2ce9/2.244.3/task.json'.

##[error]Error: Not found SourceFolder: /home/crazyjane/_work/1/s/packages/design-system-3/public

##[error]Could not find a part of the path '/home/crazyjane/_work/_tasks/Docker_e28912f1-0114-4464-802a-a3a35437fd16/2.240.2/task.json'.

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

No branches or pull requests

2 participants