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

Can't deploy an app #7732

Closed
miholeus opened this issue May 14, 2020 · 4 comments
Closed

Can't deploy an app #7732

miholeus opened this issue May 14, 2020 · 4 comments
Assignees
Labels

Comments

@miholeus
Copy link

App is not deployed. I get an error.
Error is returned everytime I run

sls deploy

command

Fetch Error --------------------------------------------
serverless.yml
service: my-bot

app: mhlbot
org: miholeus

provider:
  name: aws
  runtime: python3.8
  timeout: 10
  environment:
    SLACK_CLIENT_ID: 'xxxx'
    SLACK_CLIENT_SECRET: 'xxxx'
    SLACK_INCOMING_WEBHOOK_URL: 'xxx'
    PING_SERVICE_URL: 'xxx'
    PING_SERVICE_TIMEOUT: 5

plugins:
  - serverless-python-requirements

custom:
  pythonRequirements:
    dockerizePip: non-linux

functions:
  authorization:
    handler: handler.authorization
    events:
      - http:
          method: get
          path: slack/authorization
  ping:
    handler: handler.ping
    events:
      - http:
          method: post
          path: slack/ping
  status:
    handler: handler.check_status
    events:
      - schedule: rate(1 minute)
SLS_DEBUG=* sls deploy output
SLS_DEBUG=* sls deploy
Serverless: Load command interactiveCli
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command config:tabcompletion
Serverless: Load command config:tabcompletion:install
Serverless: Load command config:tabcompletion:uninstall
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command upgrade
Serverless: Load command uninstall
Serverless: Load command requirements
Serverless: Load command requirements:clean
Serverless: Load command requirements:install
Serverless: Load command requirements:cleanCache
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command generate-event
Serverless: Load command test
Serverless: Load command dashboard
Serverless: Load command output
Serverless: Load command output:get
Serverless: Load command output:list
Serverless: Load command param
Serverless: Load command param:get
Serverless: Load command param:list
Serverless: Load command studio
Serverless: Load command dev
platform-sdk fetching: POST https://api.serverless.com/core/tenants/miholeus/applications/mhlbot/profileValue

  Fetch Error --------------------------------------------

  FetchError: request to https://api.serverless.com/core/tenants/miholeus/applications/mhlbot/profileValue failed, reason: read ECONNRESET
      at ClientRequest.<anonymous> (/usr/local/Cellar/serverless/1.70.1/libexec/lib/node_modules/serverless/node_modules/isomorphic-fetch/node_modules/node-fetch/index.js:133:11)
      at ClientRequest.emit (events.js:315:20)
      at ClientRequest.EventEmitter.emit (domain.js:485:12)
      at TLSSocket.socketErrorListener (_http_client.js:463:9)
      at TLSSocket.emit (events.js:315:20)
      at TLSSocket.EventEmitter.emit (domain.js:485:12)
      at emitErrorNT (internal/streams/destroy.js:100:8)
      at emitErrorCloseNT (internal/streams/destroy.js:68:3)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)
  From previous event:
      at PluginManager.asyncPluginInit (/usr/local/Cellar/serverless/1.70.1/libexec/lib/node_modules/serverless/lib/classes/PluginManager.js:634:22)
      at PluginManager.loadAllPlugins (/usr/local/Cellar/serverless/1.70.1/libexec/lib/node_modules/serverless/lib/classes/PluginManager.js:116:17)
      at /usr/local/Cellar/serverless/1.70.1/libexec/lib/node_modules/serverless/lib/Serverless.js:96:35
      at processImmediate (internal/timers.js:456:21)
  From previous event:
      at Serverless.init (/usr/local/Cellar/serverless/1.70.1/libexec/lib/node_modules/serverless/lib/Serverless.js:94:8)
      at Object.<anonymous> (/usr/local/Cellar/serverless/1.70.1/libexec/lib/node_modules/serverless/bin/serverless.js:79:4)
      at Module._compile (internal/modules/cjs/loader.js:1176:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
      at Module.load (internal/modules/cjs/loader.js:1040:32)
      at Function.Module._load (internal/modules/cjs/loader.js:929:14)
      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
      at internal/main/run_main_module.js:17:47

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          darwin
     Node Version:              14.2.0
     Framework Version:         1.70.1
     Plugin Version:            3.6.11
     SDK Version:               2.3.0
     Components Version:        2.30.10

Installed version

Framework Core: 1.70.1
Plugin: 3.6.11
SDK: 2.3.0
Components: 2.30.10
@medikoo
Copy link
Contributor

medikoo commented May 15, 2020

@miholeus thanks for report. Do you still observe the problem? When it happened was your internet connection working fine?

Reported error is typical network issue, it signals typical internet connection issue or temporary unavailability of service you're trying to use.

I opened an issue that proposes improved experience: #7733

@miholeus
Copy link
Author

miholeus commented May 16, 2020

yeah, internet connection is pretty stable. That error occurs 9 times out of 10. So only one try is successfull.
I noticed that it started to fail when I added
app and org params and made login.
Don't know if it is somehow related.

@medikoo
Copy link
Contributor

medikoo commented May 18, 2020

@miholeus and where are you located? Maybe it's specific to given internet connection (maybe firewall?) Have you tried to deploy in other network environments (e.g. from home if error happens from office)?

@medikoo
Copy link
Contributor

medikoo commented Jul 20, 2020

Closing as we didn't receive enough details to process this further

@medikoo medikoo closed this as completed Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants