I am new to arangoDB. It's exciting that you may create APIs on top of ArangoDB with help of foxx framework. Somehow I am failing to run/create a foxx app successfully. I am not sure if I am doing something wrong here. Following is details of configuration and steps I am following to run foxx hello app. As guided in https://github.com/arangodb/foxx-apps .
Commands running from user directory.
Command: arangod.bat
Command: foxx-manager.bat update
and foxx-manager.bat install hello-foxx /hello
Commands running from installation directory.
Command: arangod.bat
Command: foxx-manager.bat update
and foxx-manager.bat install hello-foxx /hello
Thanks in advance for helping.
Answer to part 1)
Unfortunately there is a bug in the installer script for windows, this will be fixed in the next release. As a quick fix for you: You can edit the .bat files (arangod.bat, arangosh.bat, foxx-manager.bat etc.) in these files there are references to some files/folders like ".\data" or "arangod.conf“ if you add absolute paths to these files/folders it will be working from any location on your filesystem.
Answer to part 2)
this behavior is due to a bug in ArangoDBs communication with github. ArangoDB internally requires a content-length to be set when downloading a file. Github however does cache this size only for a limited period of time after each download, after this period the content-length is dropped and recalculated during the next download (so the next download does not send a content-length).
This causes your error message from time to time.
To fix it: Just run the same command again (retrigger the download)
The core team has this bug on the radar and will fix it in one of the upcoming versions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With