Comments (10)
Are you able to try and run it from Cloud Shell?
from datashare-toolkit.
Hey, thanks for the quick turnaround. In case you want how this error comes up in CircleCI:
Error: Error waiting for Creating CloudFunctions Function: Error code 3, message: Build failed: npm ERR! The npm ci command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.
npm ERR! A complete log of this run can be found in:
npm ERR! /www-data-home/.npm/_logs/2022-06-08T10_34_15_250Z-debug-0.log; Error ID: beaf8772
on ../../modules/ingestion-function/cloud-functions.tf line 60, in resource "google_cloudfunctions_function" "datashare_cloud_function":
60: resource "google_cloudfunctions_function" "datashare_cloud_function" {
We were able to do it via local terminal(place zip and run npm ci) and we can try via cloud shell.
But npm ci
command is not part of repo and I believe this error is originating from the datashare_cloud_function
resource block. If we run this command manually - we will still face issue when terraform tries to create this cloud function resource. How do we go about this?
We would also like to know is there a way to view the npm log? we could only see the mention of this log location in cloud logs
We are not sure if running this via cloud shell will help us in the long run as we would like this to be automated as much as possible.
from datashare-toolkit.
It may have partially deployed with an error. If you look in the GCP console at the Cloud Functions do you see the function created in error? If so, check the log for errors.
from datashare-toolkit.
I can see the cloud function saying 'Function failed to deploy', the logs show the same error thrown out by terraform
Build failed: npm ERR! The
npm ci` command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.
npm ERR! A complete log of this run can be found in:
npm ERR! /www-data-home/.npm/_logs/2022-06-08T10_34_15_250Z-debug-0.log; Error ID: beaf8772`
How do we know if there is a partial deployment happened?
from datashare-toolkit.
Check on the cloud functions console page: https://console.cloud.google.com/functions/list
from datashare-toolkit.
Yep, I checked here previously and I can see it says 'Function failed to deploy'. The error from the logs is added in above comment - Now that we know there is a partial deployment happening due to NPM error, how do we handle the cloud function creation/deployment via terraform?
from datashare-toolkit.
For now, you can comment out the resource for the cloud function creation in cloud-functions.tf. I'm not sure what your full requirements are and if you'll need it. Let's see if there are any subsequent issues beyond the cloud function creation within the environment. Is this for marketplace integration?
resource "google_cloudfunctions_function" "datashare_cloud_function"
from datashare-toolkit.
Yes, this is for marketplace integration. Disabling cloud-function creation doesn't affect this marketplace integration? We are also planning to use data present in BigQuery table instead of GCS buckets - in that case is it safe to ignore ingestion folder and its content?
from datashare-toolkit.
We were able to complete the terraform steps after commenting out "datashare_cloud_function" but we don't see any datashare instance on GCP account. We completed the steps mentioned in INSTALLING.md this file except for the domain verification. What's the sequence of steps we need to do? There are numerous md files and each has few steps.
from datashare-toolkit.
Yes, the marketplace integration doesn't require the cloud function. As for the rest of the setup, I think it will be best to have a technical session. I'll have someone reach out offline.
from datashare-toolkit.
Related Issues (20)
- Show IDP authenticated users on the admin view
- Implement role-based claims for IDP integration
- Remove x-gcp-account from request headers (pull from validated token result)
- Update 0.7.3 release
- Initial login for an admin role account should handle seamlessly
- Datashare 2.0 documentation
- Implement wildcard support for AuthZ
- Implement support for open api spec calls
- Upgrade to Node v16
- API gateway integration fixes
- Marketplace 'Manage on Provider' redirects to restricted page for non-logged in user
- Remove gke related files and docs
- Remove ISTIO configs and references
- Update sample domain in docs HOT 1
- Deployment: Cloud Run for Anthos is no longer available as a GKE add-on HOT 1
- Permissions view isn't authorized to configured dataset
- Sync packaged solution name when performing admin syncs
- Row level access column list isn't populated when editing existing views
- 404 Error on Sign Up and Login URLs when using the Producer Portal HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datashare-toolkit.