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

Python errors during ARM deployment #136

Open
ashraaghav opened this issue Jul 6, 2023 · 0 comments
Open

Python errors during ARM deployment #136

ashraaghav opened this issue Jul 6, 2023 · 0 comments
Assignees
Labels
need-to-triage Requires investigation

Comments

@ashraaghav
Copy link

I created an issue in the other repo Azure/data-factory-deploy-action#22, but maybe here is more relevant because the error is raised in Azure/arm-deploy.

I'm trying to deploy Azure Data Factory using the Azure/data-factory-deploy-action (this uses Azure/arm-deploy) on a self-hosted runner. I've followed the steps similar to this article.
I install python, powershell and azure for powershell in the workflow, build the ARM templates and deploy. But when I try to deploy, I encounter this error with python asyncio: AttributeError: '_UnixSelectorEventLoop' object has no attribute '_ssock'.

The problem is it succeeds half the time without any changes in the codes. Why do only some of the deployments work and some don't?

Could it be because some dependency is missing in the runner? The runners are clean and I install the dependencies in the previous steps.

I've included a full log below:

> Run Azure/[email protected]
> Run if('false' -ne 'true') { Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force }
> Run /runner/_work/_actions/Azure/data-factory-deploy-action/v1.2.0/PrePostDeploymentScript.ps1 `
Getting triggers
Stopping deployed triggers

Stopping trigger WeekdayTrigger
True
Stopping trigger WeeklyTrigger
True
> Run azure/arm-deploy@v1
  with:
    resourceGroupName: ***
    template: ARMTemplateForFactory.json
    parameters: ARMTemplateParametersForFactory.json factoryName=*** 
    failOnStdErr: true
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.10.12/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.12/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.12/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.12/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.12/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.12/x64/lib
    AZURE_HTTP_USER_AGENT: 
    AZUREPS_HOST_ENVIRONMENT: 
Validating template...
Creating deployment...
Error: Exception ignored in: <function BaseEventLoop.__del__ at 0x7f[49](https://<github-enterprise>/datafactory-artifacts/actions/runs/140266/jobs/283784#step:9:52)dfbd0f70>
Traceback (most recent call last):
  File "/opt/az/lib/python3.10/asyncio/base_events.py", line 690, in __del__

Error:     self.close()
  File "/opt/az/lib/python3.10/asyncio/unix_events.py", line [68](https://<github-enterprise>/datafactory-artifacts/actions/runs/140266/jobs/283784#step:9:72), in close
    super().close()
  File "/opt/az/lib/python3.10/asyncio/selector_events.py", line 87, in close
    self._close_self_pipe()
  File "/opt/az/lib/python3.10/asyncio/selector_events.py", line 94, in _close_self_pipe
    self._remove_reader(self._ssock.fileno())
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_ssock'

Error: Deployment process failed as some lines were written to stderr
@ashraaghav ashraaghav added the need-to-triage Requires investigation label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-to-triage Requires investigation
Projects
None yet
Development

No branches or pull requests

3 participants