I have installed monstache service and trying to run the command
monstache -f mongo-elastic.toml &
But getting the below error message
bash: monstache: command not found
How can start the monstache and check the service status on AWS linux machine
try to give exact path of both location
something like this : /opt/monstache/build/linux-amd64/monstache -f /opt/monstache/mongo-elastic.toml &
Related
When running any "docker-compose up -d" command on Alpine Linux v3.17 e.g. when using
git clone https://github.com/mwoodpatrick/docker-compose-test
cd docker-compose-test
docker-compose up -d
I am getting the error:
ERROR: id not found
Does anyone have any pointers as to what I'm doing wrong
I can't connect Docker CLI to the remote Docker demon inside minikube.
I've done minikube delete and then minikube start --driver=hyperv but when I do & minikube -p minikube docker-env | Invoke-Expression it comes back with a weird error which is:
You: The term 'You' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Invoke-Expression: Cannot bind argument to parameter 'Command' because it is an empty string.
Invoke-Expression:
Line |
1 | & minikube -p minikube docker-env | Invoke-Expression
| ~~~~~~~~~~~~~~~~~
| The string is missing the terminator: '.
Can anybody help with this?
This is a community wiki answer posted for better visibility. Feel free to expand it.
As already discussed in the comments the solution is to use the minikube docker-env command:
minikube docker-env
Configure environment to use minikube’s Docker daemon
Synopsis
Sets up docker env variables; similar to $(docker-machine env).
minikube docker-env [flags]
Notice the --shell option:
--shell string Force environment to be configured for a specified shell: [fish, cmd, powershell, tcsh, bash, zsh], default is auto-detect
so I have this problem where whenever I try to run any variation of dpd command such as "dpd -d" "dpd -d --mongod "C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe" or "dpd -p 5500 app.dpd" I constantly get the error: (I am using Windows 10)
deployd CLI version 2.0.2
starting deployd
Failed to start MongoDB (Make sure 'mongod' are in your $PATH or use dpd --mongod option. Ref: http://docs.deployd.com/docs/basics/cli.html)
Yes, I do have mongod directory in my PATH.
I have checked and my PATH variables for user and global are set to the /bin direction of mongod.
I have tried running it while mongod.exe is running and when it's closed, setting the PATH by the %PATH% command etc. I have ran out of options at this point. I did manage to run the dashboard once but there was 404 [Object object] only written there and then I couldn't reopen it again. Any ideas? None of the solutions from SO worked for me so far.
I have created a job in bamboo and created a ssh-task to run on my server. My server has already installed kubectl and below command executed successfully there.
echo `kubectl get namespace`
But while running command through job, its showing below error:
bash: line 5: kubectl: command not found
Please be sure that kubectl binary is in PATH of the user context, that your job is running in.
Otherwise you should use absolute path of kubectl executable, e.g. /usr/bin/kubectl)
Indenity the location of kubectl executable: which kubectl
Move it from its current location to location included in PATH, e.g. "sudo mv ./kubectl /usr/local/bin/kubectl"
I am running my tests inside a docker image on a docker gitlab executor. The logs are looking like this:
Running with gitlab-ci-multi-runner 9.2.0
.
.
<after_script called>
ERROR: Job failed: exit code 252
The last thing I am doing in my job script (shell) is a call to mongo eval
My after_script for this job just has a docker rm -f imagename like so:
after_script:
- docker rm -f imagename
First of all, I cannot find any concrete reference to this error code #. I don't know if it is a mongo eval error code or gitlab ci. My best guess is gitlab ci because that script works fine if run directly on the build machine. Also, the after_script is executed
I added the following in the beginning of my .gitlab-ci.yml:
variables:
CI_DEBUG_TRACE: "true"
But all I am seeing is:
+ docker rm -f imagename
imagename
+ exit 0
ERROR: Job failed: exit code 252
Any help or any clue is appreciated!
My mongo eval connection was failing because my mongo command was incorrect. I
Left the docker container running by using && tail -f /dev/null in my docker CMD.
I shelled in with $docker exec -it
Ran my script and executed the mongo eval section step by step again
Getting a connection fail for the wrong mongo eval javascript threw me off :/