Giter VIP home page Giter VIP logo

verdaccio-google-cloud's Issues

upgrade @google-cloud/datastore to 4.x

I'm not sure what are the changes between 2.x and 4.x. But I think we should update this.

โžœ yarn upgrade-interactive --latest             
yarn upgrade-interactive v1.16.0
info Color legend : 
 "<red>"    : Major Update backward-incompatible updates 
 "<yellow>" : Minor Update backward-compatible features 
 "<green>"  : Patch Update backward-compatible bug fixes
? Choose which packages to update. 
 dependencies
   name                     range   from       to     url
โฏโ—ฏ @google-cloud/datastore  latest  2.0.0   โฏ  4.1.2  https://github.com/googleapis/nodejs-datastore#readme

Does fast-crc32c actually used somewhere?

Does fast-crc32c actually used somewhere? Project search didn't show anything except presence in package.json. And only what I can see that this plugin does is producing a mess in console during install due to its dependency deprecations.

Also even if it used somewhere it adds only 3 times speedup. But it's not too much if we count private registry publishes. Maybe it will be valueble for some big companies that publish hundred packages per second, but for others it just adds complexity with compiling it with node-gyp.

unable to connect to project which has enabled datastore and cloud storage

The plugins fails to connect to a project which has enabled datastore and cloud storage:

Verdaccio doesn't need superuser privileges. Don't run it under root.
 warn --- config file  - /conf/config.yaml
 warn -=- Using credentials in a file might be un-secure and is recommended for local development
 warn -=- Google storage settings: {"projectId":"myproject","keyFilename":"/run/secrets/gcs-key.json"}
 warn -=- Using credentials in a file might be un-secure and is recommended for local development
 warn -=- Google storage settings: {"projectId":"myproject","keyFilename":"/run/secrets/gcs-key.json"}
 warn --- Plugin successfully loaded: google-cloud
(node:12) UnhandledPromiseRejectionWarning: Error: 5 NOT_FOUND: The project myproject does not exist or it does not contain an active Cloud Datastore or Cloud Firestore database. Please visit http://console.cloud.google.com to create a project or https://console.cloud.google.com/datastore/setup?project=myproject to add a Cloud Datastore or Cloud Firestore database. Note that Cloud Datastore or Cloud Firestore always have an associated App Engine app and this app must not be disabled.
    at Object.exports.createStatusError (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/client_interceptors.js:1204:28)
    at InterceptingListener._callNext (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/usr/local/lib/node_modules/verdaccio-google-cloud/node_modules/grpc/src/client_interceptors.js:845:24)
(node:12) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:12) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
child process exited with code 0

I suspect that it's issue related to gRPC dependencies used by the plugin.

google-cloud plugin not found

I have installed the plugin using:

npm install -g verdaccio-google-cloud

and then when I execute verdaccio, I am getting an error that the plugin is not found

(node:428) UnhandledPromiseRejectionWarning: Error: "google-cloud" plugin not found
try "npm install verdaccio-google-cloud"
    at /usr/lib/node_modules/verdaccio/build/lib/plugin-loader.js:88:13
    at Array.map (<anonymous>)
    at loadPlugin (/usr/lib/node_modules/verdaccio/build/lib/plugin-loader.js:62:43)
    at LocalStorage._loadStorePlugin (/usr/lib/node_modules/verdaccio/build/lib/local-storage.js:865:63)
    at LocalStorage._loadStorage (/usr/lib/node_modules/verdaccio/build/lib/local-storage.js:849:26)
    at new LocalStorage (/usr/lib/node_modules/verdaccio/build/lib/local-storage.js:64:27)
    at Storage.init (/usr/lib/node_modules/verdaccio/build/lib/storage.js:73:25)
    at /usr/lib/node_modules/verdaccio/build/api/index.js:140:19
    at Generator.next (<anonymous>)
    at step (/usr/lib/node_modules/verdaccio/build/api/index.js:47:191)
(node:428) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:428) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Duplicate packages when publishing

Hi!

Not sure if it's specifically for this plugin but we've noticed duplicate packages when publishing to our NPM registry using this plugin.

screen shot 2018-08-06 at 13 22 35

In Google DataStore we can also see duplicate names.

screen shot 2018-08-06 at 13 24 50

Not much output is shown other than 2 POST requests.

screen shot 2018-08-06 at 13 29 28

Currently using yarn to publish packages.

Invalid upload request for random NPM packages

Hi, I was trying to use this plugin and it seemed to work at first.

But after some time it starts to fail during npm install commands in different unrelated projects.

Basically it responds with error from NPM:

npm ERR! code E500
npm ERR! 500 Internal Server Error: [email protected]

And on server verdaccio prints:

verdaccio-gc |  http --> 200, req: 'GET https://registry.npmjs.org/ms' (streaming)
verdaccio-gc |  http --> 200, req: 'GET https://registry.npmjs.org/ms', bytes: 0/26050
verdaccio-gc |  error-=- gcloud: save package ms has failed err: Invalid Upload Request
verdaccio-gc |  http <-- 500, user: null(192.168.176.1), req: 'GET /ms', error: Invalid Upload Request

I'm using verdaccio as a docker container with GCloud.

At first I thought it was networking issue in our cluster but then I tested it on local machine with different google account and same errors were occurring.

The error happens for random NPM packages and once it hits this error it always responds with this error for that package. And if I'm installing other packages that do not have this error then everything works fine.

Also if I'm just navigating to my registry website and checking package with error (ex http://localhost:4873/ms) then I see response:

{
  "error": "Invalid Upload Request"
}

For other working packages it responds with proper JSON with versions...

I would like to help debug this. It would be great to know how can I enable more logging so we can have better idea.

Package fails on publish

https://circleci.com/gh/verdaccio/verdaccio-google-cloud/62?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

#!/bin/bash -eo pipefail
yarn publish
yarn publish v1.5.1
[1/4] Bumping version...
info Current version: 0.0.8
error An unexpected error occurred: "You must specify a new version with --new-version when running with --non-interactive.".
info If you think this is a bug, please open a bug report with the information provided in "/home/circleci/google-storage/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about this command.
Exited with code 1

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.