Comments (7)
Is Node being used for something post-build? If that's the case, then yes, installing Node globally is the best approach. The reason why Node is not installed currently, is because it was (previously) only required during builds to generate front-end assets, so by the time the application was installed on the EC2 host, Node was no longer needed. If that's changed, the init.sh
script will need to install Node along with the other packages it installs.
from blockscout-terraform.
:enoent
is the Erlang form of ENOENT from Posix, so it means that the compile_solc.js
isn't installed. Did you run the steps in the README to install the JS code for `apps/explorer?
from blockscout-terraform.
Yes, everything was run and it was working locally before the upload to AWS. Does :enoent
need to be installed during the infra
build?
from blockscout-terraform.
ENOENT (and the error tuple form in Erlang/Elixir :enoent
) is just an error code which says that a given file descriptor doesn't exist (it would be translated something like "Error: no such file system entry"). For whatever reason, the that file can't be found on the host, so it either isn't being bundled into the source files uploaded to CodeDeploy, or is being removed somehow - I would suspect the former though.
from blockscout-terraform.
Is there a chance that this is happening due to missing user permissions?
from blockscout-terraform.
This file /opt/app/_build/prod/lib/explorer/priv/compile_solc.js
exists so I'm having issues solving this issue still. I'll keep digging.
from blockscout-terraform.
cmd(command, args, opts \\ [])
command
is expected to be an executable available in PATH unless an absolute path is given.
https://hexdocs.pm/elixir/System.html#cmd/3
The problem is that the System.cmd
is not finding the node
command:
[ec2-user@ip-10-0-0-245 explorer]$ node --v
-bash: node: command not found
[ec2-user@ip-10-0-0-245 explorer]$ iex -S mix
Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.6.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> System.find_executable("node")
nil
There are two ways of fixing this:
- Install the
node
globally in the machine; - Distribute it in priv and keep the executables in the project repository.
I'm thinking about going with the first option to solve this one, but I'm not sure how we will handle this dependency for the next deploys, maybe add some condition to the bin/deploy
file as well.
WDYT @bitwalker ?
from blockscout-terraform.
Related Issues (20)
- Don't update Parameters store var if it is not present in the config HOT 1
- Re-prompt in case the incorrect answer HOT 1
- Parallelize BS deployment
- Add new variables
- Update link to erlang
- Update TF scripts for recently released TF 0.12 HOT 1
- Change sequence of deployment script: set env vars -> compile HOT 5
- Deployment script doesn't support API server deployment HOT 1
- Replace obsolete link to BlockScout prerequisites in README HOT 2
- The chain check doesn't work correctly HOT 1
- Write Molecule tests HOT 3
- Write CI pipeline
- Update clean script HOT 1
- Issue while creating infrastructure HOT 10
- Doubled VPC/Route 53 creation
- Ansible deployment - Error while deploying the infrastructure HOT 9
- Interrupting of infrastructure deployment in TF12
- Destroying of infrastructure doesn't work with TF12
- Clean script finished with error
- Confusing version with terraform version
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 blockscout-terraform.