Giter Site home page Giter Site logo

Comments (7)

LorenzoRogai avatar LorenzoRogai commented on June 24, 2024 2

@skhaz https://www.serverless.com/framework/docs/guides/upgrading-v4

image

from serverless.

Jimbolino avatar Jimbolino commented on June 24, 2024 1

Your shouldn't need to login before deploying when using an access key.

Thnx, this was the problem :)

First i read this:

You must sign in or use a license key with Serverless Framework V.4 and later versions. Please use "serverless login".

So i added the serverless login (because i dont have a license key)

Then i read:

You can authenticate via Access Key by signing in to Serverless Framework Dashboard when prompted by the CLI or running serverless login. [...] create a new Access Key for CI/CD use, and save it as the SERVERLESS_ACCESS_KEY environment variable in your CI/CD pipeline.

So i added the SERVERLESS_ACCESS_KEY, but didn't realize the serverless login is for interactive login ONLY, and either an access key OR license key can be used with the serverless deploy command


Now i'm stuck at the following:

Error: Resolver provider bref is not supported

For now i think its best for me to lock to v3: brefphp/bref#1815

from serverless.

austencollins avatar austencollins commented on June 24, 2024 1

@Jimbolino It looks like the original issue was fixed, and now the second issue you reported here regarding the provider is also fixed as of this release

from serverless.

austencollins avatar austencollins commented on June 24, 2024

This is documented in the upgrading guide.

from serverless.

Jimbolino avatar Jimbolino commented on June 24, 2024

how to debug if it does not work?

deploy.sh:

env | grep SERVERLESS_ACCESS_KEY
npx serverless login
npx serverless deploy

log output:

SERVERLESS_ACCESS_KEY=***
✖ Unable to login in non-interactive mode. Please use a license key or access key, both of which you can get from the Serverless Framework Dashboard: https://app.serverless.com
Error: Unable to login in non-interactive mode. Please use a license key or access key, both of which you can get from the Serverless Framework Dashboard: https://app.serverless.com
    at authenticate (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:709:229[67](https://github.com/Jimbolino/www.troep.com/actions/runs/9227078770/job/25388255823#step:15:68))
    at commandLogin (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:947:8446)
    at file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:1006:5782
    at CommandInstance.applyBuilderUpdateUsageAndParse (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:881:38830)
    at CommandInstance.runCommand (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:881:38064)
    at [runYargsParserAndExecuteCommands] (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:939:16037)
    at YargsInstance.parse (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:937:2537)
    at run3 (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:1006:7625)
    at file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:1006:7892
    at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
For help, try the following:
  • Run the command again with the "--debug" option
  • Run "serverless support"
  • Review the docs: https://www.serverless.com/framework/docs/

from serverless.

austencollins avatar austencollins commented on June 24, 2024

@Jimbolino Can you try running again using the --debug flag?

from serverless.

austencollins avatar austencollins commented on June 24, 2024

Your shouldn't need to login before deploying when using an access key.

from serverless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.