{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • General /
avatar image
0
Question by alex.tylor · Oct 06, 2015 at 01:41 PM · 526 Views apigeetool

Error accessing datastore when using apigeetool - deploynodeapp

I'm new to Apigee, so I hope this isn't a silly question... I'd like to upload a pre-existing Node project into Apigee using the 'apigeetool'; my understanding is that before uploading I must run 'npm install' in order to build all dependencies. Using the 'deploynodeapp' function in a similar manor to this:

apigeetool deploynodeapp -n <some name> -d <path to root of node project> -o <organisation> -e qa -b <path> -u <email> -m <root js file>
This gives the following error:
"message" : "com.apigee.datastore.DataAccessException{ code = datastore.ErrorWhileAccessingDataStore, message = Error while accessing datastore;Please retry later, associated contexts = []}"

Now I believe that this is due to exceeding some sort of package size issue, 15mb?, which I have seen loosely coupled with the error I'm seeing. Looking at the project size I can see that node_modules is far greater than 15mb. Removing the node_modules directory, as a test, and then uploading the node project is successful (and a total size of <1mb). So my question is, can this limit be changed? and if so how does one go about doing this?

Thanks

Comment
Add comment Show 2
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Anil Sagar @ Google ♦♦   · Oct 06, 2015 at 01:46 PM 0
Link

@alex.tylor , Great Question, Welcome to Apigee Community. I have asked experts to answer same. Stay tuned.

avatar image Anil Sagar @ Google ♦♦   · Oct 06, 2015 at 01:51 PM 0
Link

@alex.tylor , You can also try to push the node application without installing dependencies & later install same using Apigee Edge API. You can find more about API here.

PS: I am not sure whether it works but worth to give a try.

Close

3 Answers

  • Sort: 
avatar image
1

Answer by gnanasekaran · Oct 06, 2015 at 01:51 PM

Hi @alex.tylor,

what you have done is right,

> remove the node_modules and upload your proxy first

then,

> you can use this API to install the node modules dependencies

http://apigee.com/docs/management/apis/post/organi...

Thanks,

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by alex.tylor · Oct 06, 2015 at 04:01 PM

Thanks you @Mukundha Madhavan and @Anil Sagar, going through that has proven useful, I think that I got slightly confused with uploading a node instance as a proxy and the node_module directory up as a zip, over uploading a standalone node project using apigeetool... So using the curl command and passing in 'install' as the desired npm action using:

curl -X POST --header "Content-Type: application/x-www-form-urlencoded" --header "Authorization: Basic <basic auth header value>==" -d "command=install" "https://api.enterprise.apigee.com/v1/organizations/<org>/apis/<some name>/revisions/9/npm?verbose=true"

This doesn't seem to work; using the curl example above it gives no feedback (even with verbose set as true); and when I make the same call via the webpage link provided I simply get:

An internal error has occurred. Please retry your request.

Which seems to be shown on both the request and response tab.

I realised that a package that is globally installed was not in the pacakge.json so having updated this, re-uploaded the node project and then tried the 'npm install' via both the curl and provided webpage link. Unfortunately this fails and returns no feedback; is there a way to see why it is failing? Thanks

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by alex.tylor · Oct 13, 2015 at 09:27 AM

With the '-U' switch the apigeetool is able to deploy the application without removing the 'node_modules' directory prior, however I'm not seeing the 'node_manager' directory available within the Apigee proxy editor.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Apigee ToolBox 1 Answer

Error: Invalid target reference default in route default in proxy endpoint default in revision.. 1 Answer

Best practices to maintain proxies in GIT 1 Answer

After I install the apigeetool on my mac I receive an error when I try to run the command. Has anybody else seen this behavior? 1 Answer

Apigeetool - addEntryToKVM.js is failing on non-CPS orgs 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges