What does it depend on?
Repository information in package.json ? Nothing different.
Is this a silly question?
UPDATED:
after reading pm2's source code, I found an error occured in git.parse.
/usr/local/lib/node_modules/pm2/node_modules/vizion/lib/git.js
And I try to exec in the repl
child_process.exec("git show --quiet --format=%H%n%aD%n%s%n% HEAD",function(e,d){console.log(e)})
it will print
{ [Error: Command failed: /bin/sh -c git show --quiet --format=%H%n%aD%n%s%n%B HEAD
]
killed: false,
code: 1,
signal: null,
cmd: '/bin/sh -c git show --quiet --format=%H%n%aD%n%s%n%B HEAD' } 'adce83ece6c0e63112e7c9551ffca798e0130be6\nTue, 12 Apr 2016 16:23:02 +0800\nuser\n%B\n'
child_process.exec("git show HEAD",function(e,d){console.log(e)})
print null
git version too low? 1.7.1
or node version ? 0.12.0
UPDATED: Finaly I found the reason is that git version is too low.
after upgrade git, it works fine.
after reading pm2's source code, I found an error occured in git.parse.
/usr/local/lib/node_modules/pm2/node_modules/vizion/lib/git.js
And I try to exec in the repl
child_process.exec("git show --quiet --format=%H%n%aD%n%s%n% HEAD",function(e,d){console.log(e)})
it will print
{ [Error: Command failed: /bin/sh -c git show --quiet --format=%H%n%aD%n%s%n%B HEAD
]
killed: false,
code: 1,
signal: null,
cmd: '/bin/sh -c git show --quiet --format=%H%n%aD%n%s%n%B HEAD' } 'adce83ece6c0e63112e7c9551ffca798e0130be6\nTue, 12 Apr 2016 16:23:02 +0800\nuser\n%B\n'
child_process.exec("git show HEAD",function(e,d){console.log(e)})
print null
git version too low? 1.7.1
or node version ? 0.12.0
UPDATED: Finaly I found the reason is that git version is too low.
after upgrade git, it works fine.
Related
I've been trying to make scheduled reports with zabbix 5.4 but i keen getting the following error when i try to test:
Cannot fetch data: chrome failed to start:
Sorry, home directories outside of /home are not currently supported.
See https://forum.snapcraft.io/t/11209 for details.
.
I don't know where my errors lay. i installed google chrome and i followed all the instruction and created /var/lib/zabbix/ also chown zabbix:zabbix /var/lib/zabbix/ chmod 755 /var/lib/zabbix
but nothing .please help me i you know my error
I forgot to create a Zabbix user with a directory, that's why I got this kind of error.
addgroup --system --quiet zabbix
adduser --quiet --system --disabled-login --ingroup zabbix --home /var/lib/zabbix --no-create-home zabbix
I'm following the instructions found here:
https://github.com/compound-finance/compound-protocol
I've ran:
git clone https://github.com/compound-finance/compound-protocol
cd compound-protocol
yarn install --lock-file
yarn test
yarn run v1.22.11
$ ./script/test
Unknown option: p
Unknown option: p
Type shasum -h for help
Type shasum -h for help
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Why do I keep getting this error with unknown option p
Try to use Node.js version 12. NVM is a great tool to quickly switch between versions of Node on the command line. https://nvm.sh
EDIT: My goal is to be able to emit metrics from my spring-boot application and have them sent to a Graphite server. For that I am trying to set up statsd. If you can suggest a cleaner approach, that would be better.
I have a Beanstalk application which requires statsd to run as a background process. I was able to specify commands and packages through ebextensions config file as follows:
packages:
yum:
git: []
commands:
01_nodejs_install:
command: sudo yum -y install nodejs npm --enablerepo=epel
ignoreErrors: true
02_mkdir_statsd:
command: mkdir /home/ec2-user/statsd
03_fetch_statsd:
command: git clone https://github.com/etsy/statsd.git /home/ec2-user/statsd
ignoreErrors: true
04_run_statsd:
command: node stats.js exampleConfig.js
cwd: /home/ec2-user/statsd
When I try to deploy the application to a new environment, the EC2 node never comes up fully. I logged in to check what might be going on and noticed in /var/log/cfn-init.log that 01_nodejs_install, 02_mkdir_statsd and 03_fetch_statsd were executed successfully. So I guess the system was stuck on the fourth command (04_run_statsd).
2016-05-24 01:25:09,769 [INFO] Yum installed [u'git']
2016-05-24 01:25:37,751 [INFO] Command 01_nodejs_install succeeded
2016-05-24 01:25:37,755 [INFO] Command 02_mkdir_statsd succeeded
2016-05-24 01:25:38,700 [INFO] Command 03_fetch_statsd succeeded
cfn-init.log (END)
I need help with the following:
If there is a better way to install and run statsd while instantiating an environment, I would appreciate if you could provide details on that approach. This current scheme seems hacky.
If this is the approach I need to stick with, how can I run the fourth command so that statsd can be run as a background process?
Tried a few things and found that the following ebextensions configs work:
packages:
yum:
git: []
commands:
01_nodejs_install:
command: sudo yum -y install nodejs npm --enablerepo=epel
ignoreErrors: true
02_mkdir_statsd:
command: mkdir /home/ec2-user/statsd
03_fetch_statsd:
command: git clone https://github.com/etsy/statsd.git /home/ec2-user/statsd
ignoreErrors: true
04_change_config:
command: cat exampleConfig.js | sed 's/2003/<graphite server port>/g' | sed 's/graphite.example.com/my.graphite.server.hostname/g' > config.js
cwd: /home/ec2-user/statsd
05_run_statsd:
command: setsid node stats.js config.js >/dev/null 2>&1 < /dev/null &
cwd: /home/ec2-user/statsd
Note that I added another command (04_change_config) so that I may configure my own Graphite server and port in statsd configs. This change is not needed to address the original question, though.
The actual run command uses setsid to run the command as a daemon.
I am trying to install mercurial from source. I tried installing mercurial version 3.5 and 3.6 from here: https://www.mercurial-scm.org/release/
My Linux version: Red Hat Enterprise Linux Server release 5.11 (Tikanga)
and my python version: Python 2.6.5
This is the error I get when I try to built it locally.
make local
python setup.py \
build_py -c -d . \
build_ext -i \
build_hgexe -i \
build_mo
running build_py
running build_ext
running build_hgexe
running build_mo
generating mercurial/locale/zh_TW/LC_MESSAGES/hg.mo from i18n/zh_TW.po
msgfmt -v -o mercurial/locale/zh_TW/LC_MESSAGES/hg.mo i18n/zh_TW.po -c
usage: msgfmt [ -dv ] [ - ] [ name ... ]
mercurial/locale/zh_TW/LC_MESSAGES/hg.mo: No such file or directory
error: command 'msgfmt' failed with exit status 2
make: *** [local] Error 1
Looks like you have a msgfmt in your PATH that isn't the one that the installer expects to find.
Do:
which msgfmt
and if the result isn't /usr/bin/msgfmt that's probably the cause
I'm trying to build from source MariaDB on CentOS 7. I have only done the following commands before I get the error shown in this image:
$ cd /usr/local/src
$ wget https://downloads.mariadb.org/interstitial/mariadb-5.5.40/source/mariadb-5.5.40.tar.gz/from/http%3A//ftp.ddg.lth.se/mariadb
$ tar xzvf mariadb
$ cd mariadb-5.5.40/
$ chown -R root.root .
$ cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/mariadb
proof that libaio-devel is installed
For anyone that is in a similar situation, cmake apparently does a pretty bad job of re-checking dependencies, even removing the cache file doesn't work very well.
Just delete and re-extract from the .tar.gz and then cmake again, if you actually have the dependencies then they will be found.