question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy on Azure fails

See original GitHub issue

trying to deploy on Azure by “Azure button” but deployment failed due to INVALID_HOST_CHARS

File "/usr/local/lib/python3.6/site-packages/furl/furl.py", line 1337, in load
    self.netloc = tokens.netloc  # Raises ValueError in Python 2.7+.
  File "/usr/local/lib/python3.6/site-packages/furl/furl.py", line 1801, in __setattr__
    object.__setattr__(self, attr, value)
  File "/usr/local/lib/python3.6/site-packages/furl/furl.py", line 1464, in netloc
    self.host = host
  File "/usr/local/lib/python3.6/site-packages/furl/furl.py", line 1801, in __setattr__
    object.__setattr__(self, attr, value)
  File "/usr/local/lib/python3.6/site-packages/furl/furl.py", line 1379, in host
    raise ValueError(errmsg % (host, INVALID_HOST_CHARS))
ValueError: Invalid host 'doccanocompliance-state:y_7Org1m10HncGBk@doccanocompliance-state.postgres.database.azure.com'. Host strings must have at least one non-period character, can't contain any of '!@#$%^&'"*()+=:;/', and can't have adjacent periods.

provided the following params: app name: doccanocompliance admin user: dsuser secret key:y_7Org1m10HncGBk admin password: y_7Org1m10HncGBk

all other remain with default values

we tried with different values but all failed on same error.

please advise

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dudubiscommented, Feb 12, 2020

@c-w, I have used different credentials for secretkey and passwd (only upper/lower/digits no special characters) and it works fine now. I guess we can reopen it if someone runs into it the same issue in the future (raise ValueError(errmsg % (host, INVALID_HOST_CHARS)) ValueError: Invalid host ).

Thanks for your help and time.

1reaction
dudubiscommented, Jan 30, 2020

@icoxfog417 The above error stack is from the azure container that runs the webapp. They are not exposed in any way externally hence no security issues here. The issue at hand is the connection string to the postgres db thats invalid given the following parameters (you can reproduce yourself during the deployment):

app name: “doccanocompliance” admin user: “dsuser” secret key:“y_7Org1m10HncGBk” admin password: “y_7Org1m10HncGBk”

As you can see above we don’t have the “-state” in our hostname (value is: doccanocompliance) and it was added automatically during the deployment.
And just to make it more clear the we don’t have “:” in any of our values and (I added quotes around the values so you can reproduce)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot common Azure deployment errors
Error code Mitigation More inform... AccountNameInvalid Follow naming guidelines for storage accounts. Resolve erro... AccountPropertyCannotBeSet Check available storage account properties. storageAcco... AnotherOperationInProgress Wait for concurrent operation...
Read more >
Azure - how to troubleshoot failing deployments - Stack Overflow
You can try turning on WADLogsTable, or use VisualStudio debug -- this usually works when it is failing somewhere within your code and...
Read more >
Release pipeline 'Deploy Azure App Service' fails
We fixed the issue now by just deleting the App-Service Plan and the whole App-Service and then setting it up again. Now the...
Read more >
K42955950: Deployment in Azure failing with ... - AskF5
When Multiple attempts to deploy occur, you may find failed partial configuration objects in the existing Stack, which results in a deployment ......
Read more >
azure-content/resource-manager-common-deployment-errors ...
You may receive an error during deployment because the account or service principal attempting to deploy the resources does not have access to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found