That is just hilarious to me
Like those arcade game ports where you have to press a button to add coins
Kadira seems to start fine fine for me, and is connecting to mlab, but for some reason I just get āThis site canāt be reachedā when I connect with my browser. I know the port is open, as I just tried hosting a meteor app on it, which worked.
By the way can you get your App to connect to Kadira-engine? I am getting Chrome console error;
XMLHttpRequest cannot load https://kadira-engine.<KADIRA_OPTIONS_ENDPOINT>/simplentp/sync. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://<ROOT_URL>' is therefore not allowed access.
You may want to check out our fork https://github.com/meteor-factory/kadira-server. I made it work with docker-compose. You need to create stripe and meteor apps to obtain your api keys. Only configuration step is making these changes in meteor settings:
replace stripe apiKey and publishableKey (if you provide test keys then you can use credit card number 424242424xxx to avoid real charges )
I got it working
The problem was I that I was already using port 4000, and I foolishly thought I could just change the port Kadira used in docker-compose.yml
I now instead changed the port of the other process, and let Kadira use its default, which worked!
I got my apps connecting to it now too! Pretty smooth setup with the docker image, other than the port issue
kadiradocker_kad npm run start Up 0.0.0.0:11011->1
ira-engine_1 1011/tcp
kadiradocker_kad npm run start Up
ira-rma_1
kadiradocker_kad su -c /usr/bin/e Up 0.0.0.0:4000->40
ira-ui_1 ntrypoint. ā¦ 00/tcp, 80/tcp
I am using the nginx conf for kadira-ui and kadira-engine as in the link below.
But, i am not able to access the url i specified in server_name.
Here are some ideas If all processes are running properly.
By looking at your server name (assumed first part of the string is server name), I would look into network settings(e.g. iptables) for docker containers. My understanding about docker is each container creates virtual interface.
Another idea would be mongoDB being not reachable, but this usually lead to Meteor landing page complains about it.
Did you solve this? I got the same issue, but it was because of wrong port in the app ENV var. I used :4000, but it should be :11011. Then it worked.
I have now successfully installed Kadira APM on a Amazon EC2 instance running Ubuntu. Is it necessary to write a short guide how to successfully make that work? If someone is interested, let me know.
MongoDb looked fineā¦I see it connect successfully
I believe there are some more steps after docker compose that I am missing to make it work on hosting space like Amazon. It would be great to have those details.
I will write a short guide using the Docker images on Amazon EC2.
In the meantime, doublecheck that you do not have any other running processes on the ports 4000 or 11011. If you do, kill them before running docker-compose up.
I checked the ports are not in use. I started the process and then tried to access the app.
I have setup nginx and tried with the domain configured there.
We have already mapped the machine to the domain, but still it does not work.
When trying to use @vladgolubevās Docker images, I had the same problem as @antoineschaller in kadira-rma "Error: couldn't initialize connection to host undefined, address is invalid"and realized that it was due to the kadira-rma/start.sh script requiring a Mongo replica set.
To allow it to work without a replica set, first create a directory structure as follows:
And then copy @vladgolubevās docker-compose.yml file into your PROJECT_ROOT directory and update it to build your own kadira-rma image from your Dockerfile rather than using his kadira-rma image as follows:
After making those changes, I was able to start up Kadira successfully by following @vladgolubevās 3 steps and the connection error in kadira-rma was fixed:
I have runned Kadira over the weekend for 1 live app, and 1 staging app. Now the mlab.com account is already maxed with the free tier (500MB storage). That was really fast buildup, so I wonder if that is correct or if there is some misconfiguration?
If the app uses 500MB over 3-4 days, this will require a big volume which will be really expensive for just 1 appā¦
Any ideas, suggestions etc?
Regarding the Amazon EC2 writeup/guide, i will work on it today.
Short guide on how to get this setup, by using the Docker images from vladgolubev and mlab.com
Setup a Ubuntu EC2 instance on Amazon. You can use the smallest plan youād like. I am using t2.micro.
After this is done, open up the security group allocated to the new instance, and add inbound TCP ports 11011 and 4000
Port 11011 is the kadira engine, and port 4000 is the kadira dashboard. Both must be open.
Setup a mongo database on mlab.com, and have the connection string ready (with username and password)
I had trouble using the export $KADIRA_MONGO_URL variable, so I had to hardcode the string in each place instead. So I changed ā$KADIRA_MONGO_URLā with the connection string.
9.The connection string should not have any " wrapping around it. Example:
Error reporting, since my app is on SSL, and my kadira instance not, this will not work. Struggling a bit to activate SSL on my instance (not very used to Amazon servers etc)
Kadira seems to use a lot of space on mlab, after 3-4 days of use the DB is at 500MB. Need to solve this somehow.