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

publish got an error message, "Error uploading archive (Conflict)." #903

Closed
RudyLu opened this issue Nov 30, 2018 · 9 comments
Closed

publish got an error message, "Error uploading archive (Conflict)." #903

RudyLu opened this issue Nov 30, 2018 · 9 comments

Comments

@RudyLu
Copy link

RudyLu commented Nov 30, 2018

After I tried to deploy my functions with this command,
func azure functionapp publish func-app-name

I got this error message:

Getting site publishing info...
Creating archive for current directory...
Uploading archive...
Creating archive for current directory...
Uploading archive...
Creating archive for current directory...
Uploading archive...
Error uploading archive (Conflict).

I have these dependencies in my package.json

"devDependencies": {
    "eslint": "^5.9.0",
   "eslint-config-airbnb-base": "^13.1.0",
   "eslint-plugin-import": "^2.14.0",
   "eslint-plugin-prettier": "^3.0.0",
    "prettier": "^1.15.2"
   }

The error message should be more clear and let the user know to resolve it.
@bherila
Copy link

bherila commented Dec 10, 2018

I agree, this is currently blocking me from deploying my function app. Is there a workaround to publish the site manually or using a different tool?

@RudyLu
Copy link
Author

RudyLu commented Dec 11, 2018

The simple workaround here is to remove the dependencies introduced by eslint, including

   "eslint": "^5.9.0",
   "eslint-config-airbnb-base": "^13.1.0",
   "eslint-plugin-import": "^2.14.0",
   "eslint-plugin-prettier": "^3.0.0",

@JohnReeson
Copy link

The same thing happens when I use func azure functionapp publish func-app-name --nozip with 2.3.148 Cli, have installed some dependencies as well.

@Shell32-Natsu
Copy link

Same error here. I am publishing a Python functions, with options --build-native-deps --nozip. The tool uploaded three times and then failed.

@ErickWendel
Copy link

For me, I was installed by the azure tools by npm. So I removed an installed again using home brew. now it works perfectly

@marshallford
Copy link

I'm seeing the same issue as @Shell32-Natsu, but just occasionally. I also see Error uploading archive (BadGateway) once in a while. I'm trying to publish a python v2 function with the follow command: func azure functionapp publish app-name --build-native-deps --no-bundler.

~
➜ func --version
2.4.498

~
➜ docker --version
Docker version 18.09.3, build 774a1f4

~
➜ dotnet --version
2.1.505

~
➜ npm --version
6.9.0

~
➜ node --version
v10.15.3

~ 
➜ source ~/Development/python-env/bin/activate

~ via python-env 
➜ python --version
Python 3.6.7

@roalexan
Copy link

roalexan commented Jun 5, 2019

I just saw this myself. I first did an upload that appeared to hang, so I clicked CTRL-C. Now all subsequent uploaded attempts show: Error uploading archive (Conflict).

I removed the function app and tried again, but then got an error saying that the app service plan doesn't exist (which is not the case). So, not knowing a better way, I deleted the function app, app service plan, and associated storage account and starting over from scratch to get around this problem.

@dmitrysmirnovfinnair
Copy link

Same issue, python app, keeps failing with Azure.Functions.Cli.Common.CliException: Error uploading archive (Conflict).

@ahmedelnably
Copy link
Contributor

Closing this as stale, if you are facing a similar error please open a new issue

@Azure Azure locked and limited conversation to collaborators Dec 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants