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.

Trying to deploy via github CI fails due to not being able to login into serverless. I do want to use a serverless dashboard from time to time as it provides quite useful features for us. We have created a new SERVERLESS_ACCESS_KEY and added it to Github secrets as an env variable, but that seems to not working either.

We did everything from run-in-cicd link to set it up correctly, connected the github, chose the repository and directory.

It does work if I remove the org field from serverless.yml but then the serverless dashboard doesn’t register a new deploy. Is there a place where I need to provide SERVERLESS_ACCESS_KEY besides just putting it in env on github secrets?

The error we are getting is:

yarn run v1.22.5 $ yarn run serverless deploy $ <PATH>/node_modules/.bin/serverless deploy Serverless: Compiling with Typescript… Serverless: Using local tsconfig.json Serverless: Typescript compiled. error Command failed with exit code 1.

error Command failed with exit code 1. Serverless Error ---------------------------------------

You are not currently logged in. Follow instructions in http://slss.io/run-in-cicd to setup env vars for authentication.

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

Your Environment Information --------------------------- Operating System: linux Node Version: 14.15.1 Framework Version: 1.73.1 Plugin Version: 3.6.13 SDK Version: 2.3.1 Components Version: 2.30.16

serverless.yml
app: moverup-server
# org: moveruppprofilepics
service: expressAPI-epsagon2
plugins:
  - serverless-plugin-typescript
provider:
 name: aws
 runtime: nodejs10.x
 stage: prod-2
 region: us-west-2
 timeout: 30
functions:
  server:
    handler: index.server
    events:
      - http: ANY /
      - http: 'ANY {proxy+}'
    environment:
      SECRET: ${env:SECRET}
      LINK: ${env:LINK}
      API_KEY: ${env:API_KEY}
      DOMAIN: ${env:DOMAIN}
      DEV: ${env:DEV}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnnyJumpercommented, Dec 17, 2021

Stopped using serverless since couldn’t overcome this issue. Closing the issue, as I am not intending to track it anymore.

0reactions
FaisalRanacommented, Sep 23, 2022

I had the exact same issue and was able to resolve it by removing the “org” from my serverless.yml.

The only problem is, it does seem that serverless dashboard is no longer tracking my deployments 😕.

Has there been any progress on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

About continuous integration - GitHub Docs
Continuous integration (CI) is a software practice that requires frequently committing code to a shared repository. Committing code more often detects ...
Read more >
How to build a CI/CD pipeline with GitHub Actions in four ...
Step 1: Create or choose a repository, and pick a project · Step 2: Open GitHub Actions in your repository to start building...
Read more >
GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline ...
Complete Github Actions Tutorial | GitHub Actions CI /CD | GitHub Actions Docker Build and Push | GitHub Actions Demo▻ Complete DevOps ...
Read more >
GitLab CI/CD for GitHub
With the GitHub integration, GitLab users can now create a CI/CD project in GitLab connected to an external GitHub.com or GitHub Enterprise code...
Read more >
Characterizing the Security of Github CI Workflows - USENIX
Characterizing the Security of Github CI Workflows. Authors: Igibek Koishybayev and Aleksandr Nahapetyan, North Carolina State University; Raima Zachariah, ...
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