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

[cli] deploy internalservererror #352

Closed
christopheranderson opened this issue Jan 16, 2018 · 16 comments
Closed

[cli] deploy internalservererror #352

christopheranderson opened this issue Jan 16, 2018 · 16 comments

Comments

@christopheranderson
Copy link

From @micahasmith on November 1, 2017 17:10

Investigative information

Please provide the following:

  • Timestamp:
  • Function App version (1.0 or 2.0-beta):
  • Function App name: gooten-slothy
  • Function name(s) (as appropriate):
  • Invocation ID:
  • Region: east us

Repro steps

func azure functionapp publish gooten-slothy

Expected behavior

uploads server funcs

Actual behavior

Provide a description of the actual behavior observed.

Publish /Users/micahsmith/printio/gooten-slothy contents to an Azure Function App. Locally deleted files are not removed from destination.
Getting site publishing info...
Creating archive for current directory...
Uploading archive...
Error uploading archive (InternalServerError).
Retry: 1 of 2
Creating archive for current directory...
Uploading archive...
Error uploading archive (InternalServerError).
Retry: 2 of 2
Creating archive for current directory...
Uploading archive...
Error uploading archive (InternalServerError).

Copied from original issue: Azure/azure-functions-host#2090

@christopheranderson
Copy link
Author

@micahasmith - do you have a sample of your project you can share? Is it Node.js based? If so, can you share your package.json?

@christopheranderson
Copy link
Author

From @micahasmith on November 1, 2017 18:17

@christopheranderson the function app name is above, you're more than welcome to jump into the codebase.

{
  "name": "gooten-slothy",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "directories": {
    "test": "test"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "request": "^2.83.0",
    "sequelize": "^4.20.3",
    "tedious": "^2.0.1"
  }
}

@pengo98
Copy link

pengo98 commented Feb 4, 2018

I'm also getting exactly the same error.

@ian-moore
Copy link

ian-moore commented Feb 10, 2018

I am experiencing this with a pre-compiled .dll function app. One workaround I found is deleting every function in the app and then stopping the app... which is not ideal.

EDIT: yeah nevermind... deploying worked, but now all my functions return 404

@ErikAndreas
Copy link

Also seeing lots of InternalServerError (sometimes BadGateway) but occasionally publish does work...

Using nodejs with beta runtime and have set WEBSITE_NODE_DEFAULT_VERSION to 8.9.4, location West Europe
package.json:

{
  "name": "vpcpoc",
  "version": "1.0.0",
  "description": "",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "node-fetch": "^2.0.0",
    "tedious": "^2.3.1"
  }
}

@roosi
Copy link

roosi commented Mar 8, 2018

Any news on this?

I have same issue with latest version. Code is actually deployed, but the tool seems to still fail.


Azure Functions Core Tools (2.0.1-beta.23)
Function Runtime Version: 2.0.11587.0
...
Getting site publishing info...
Creating archive for current directory...
Uploading archive...
Error uploading archive (InternalServerError).
Retry: 1 of 2
Creating archive for current directory...
Uploading archive...
Error uploading archive (InternalServerError).
Retry: 2 of 2
Creating archive for current directory...
Uploading archive...
Error uploading archive (InternalServerError).

@dcinadr
Copy link

dcinadr commented Mar 27, 2018

Having the same issue.

@friedhelmensch
Copy link

friedhelmensch commented Mar 28, 2018

same issue here at my end.

Azure Functions Core Tools (2.0.1-beta.24)
Function Runtime Version: 2.0.11587.0

Getting site publishing info...
Creating archive for current directory...
Uploading archive...
Error uploading archive (InternalServerError).
Retry: 1 of 2
Creating archive for current directory...
Uploading archive...
Error uploading archive (InternalServerError).
Retry: 2 of 2
Creating archive for current directory...
Uploading archive...
Error uploading archive (InternalServerError).

I have extensions for CosmosDB installed
(func extensions install --package Microsoft.Azure.WebJobs.Extensions.CosmosDB --version 3.0.0-beta6)

code gets deployed despite of the error message but local settings are not pushed to the function app
when using --publish-local-settings -i --overwrite-settings -y

@marrrcin
Copy link

marrrcin commented Apr 4, 2018

This is a very basic scenario and still it does not work. I get the same error for most of the times, cannot re-deploy existing functions.

Workaround that works for me:

  1. Stop function in Azure Portal
  2. Deploy
  3. Start function in Azure Portal

@joakimgrr
Copy link

Been having this issue for multiple days now. In addition to having this issue, also the deploy itself takes much longer than usual (from less than a minute to multiple minutes). Is there any more information available on this?

@dcinadr
Copy link

dcinadr commented Apr 9, 2018

For those having this issue, I recommend not using the "func azure publish" cli command to deploy your app. I would switch to a deployment option (ie git local or bitbucket) for your deployment. The problem seems to be around func copying the node_modules directory. Using git to deploy will ignore that directory (as long as node_modules is included in your .gitignore).

@Claytonious
Copy link

Also having this problem while deploying from a Mac. Stopping the the function app in the portal usually allows me to deploy. It's a bummer to have to stop the app to deploy.

@sharmajyo
Copy link

If someone is still experiencing this issue after trying solutions above, I resolved it by deleting my node_modules folder and package-lock.json before publishing function app (I didn't have to stop my app).

@marshallford
Copy link

I'm seeing similar issues with a python v2 function. See: #903 (comment)

@rramani
Copy link

rramani commented May 17, 2019

Also having this problem while deploying from a Mac. Stopping the the function app in the portal usually allows me to deploy. It's a bummer to have to stop the app to deploy.

I am having similar issue deploying from Mac as well. This is functions using python. I tried stopping the functions and then deploying but that just takes forever. When I start it from portal and run the deploy, get the 'Bad gateway' error

Error uploading archive (BadGateway).

if you have other suggestions, please let me know

@ahmedelnably
Copy link
Contributor

Closing as stale, deployment scenarios have been validated
please open a new issue with details if you see any new problems

@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