Comments (17)
Thank you it's working after manually editing the default.conf file and restarting the service.
from meteor-apm-server.
I spent a decent amount of time looking into this, and there was not a simple solution, at least many months ago. That was before MUP released it's nginx config features, so it may be doable now. I'll take another look into it, no promises though :D.
from meteor-apm-server.
Take a look at #14 (comment)
Looks like the mup hook didn't work for you https://github.com/lmachens/meteor-apm-server/blob/master/mup-placeholder.js#L57
@jehartzog did you notice issues with your solution?
from meteor-apm-server.
It works fine for me, but I freely admin that fix is hacky and probably won't work in all cases. For example, it relies on the apm-engine app being listed first in the proxy file, which may not always happen.
If it doesn't work @funkyremi you'll need to manually edit the port in the /etc/nginx/conf.d/default.conf
file in the docker container.
from meteor-apm-server.
Hello there,
I just installed successfully the APM, but got this issue.
I fixed manually using these steps :
docker ps
to list containersdocker exec -ti CONTAINER_ID /bin/bash
to enter the docker container namedmup-nginx-proxy
- manually edit
/etc/nginx/conf.d/default.conf
to change port 80 by port 11011 for the apm-engine upstream (I also had to install vi on the docker) nginx -t
to test config, thenservice nginx reload
I am pretty sure this fix won't stay after a new deployment using mup...
from meteor-apm-server.
Do you have any client side errors?
from meteor-apm-server.
No client or server side error. Just the "Configure your app" page still displayed and no data available.
from meteor-apm-server.
Please check if you have the nginx issue described in 2. https://github.com/lmachens/meteor-apm-server#configuration-details
If the port shows 80 this might be the issue.
Did you setup the server with mup?
from meteor-apm-server.
Ok that's it, the MUP hooks may be failing because I see port 80. Yes the server has been setup with MUP. What should I try to resolve this issue?
from meteor-apm-server.
I am also having trouble with this default.conf
file. The "solution" with manually editing default.conf
is somehow automatically reverted after a while (around 8 hours). How can I find what is causing this? I manually edit the file and then run npx mup deploy
to make it work for a while. I also tried docker restart mup-nginx-proxy
at my apm server but that would instantly revert my changes and use port 80 again.
from meteor-apm-server.
If the server restarts then the proxy settings are reset, same with restarting the proxy. Sounds like your server is probably restarting every 8 hours for some reason.
from meteor-apm-server.
I have an uptime that says otherwise...
Am I missing some detail in how docker container works? I make manual changes outside the container then copying it to a default2.conf
using
docker cp default.conf mup-nginx-proxy:/etc/nginx/conf.d/default.conf2
followed by
docker exec -t mup-nginx-proxy cp /etc/nginx/conf.d/default.conf2 /etc/nginx/conf.d/default.conf
from meteor-apm-server.
I don't see anything wrong with how you're doing it, but I just directly edited using vi
or vim
, which I had to install in the container.
Other things which will reset the proxy config are running a mup deploy again, even if you server is up and running, so if you are pushing code updates that could also be causing the reset.
from meteor-apm-server.
Made a lazy attempt to install vim
in the container but it didn't work first try so I did it like this. :)
After manually editing the file, should I just restart the container mup-nginx-proxy
? That makes the most sense to me but it didn't really work.
from meteor-apm-server.
Restarting the container will end up with your config changes being reset. Instead just tell the container to reload nginx:
docker exec mup-nginx-proxy nginx -s reload
A longer discussion about all this stuff is here.
from meteor-apm-server.
I think we need a better solution here. If the nginx container restarts and overwrites the config, this error will happen again.
Maybe we can use the mup advanced proxy settings?
// This config can add additional upstream and server blocks if needed.
nginxConfig: './path/to/config',
Or use env vars for nginx proxy to change the nginx config?
// Environment variables for nginx proxy
env: {
DEFAULT_HOST: 'foo.bar.com'
}
I think the issue is that we expose different ports for different domains.
There is a discussion on nginx-proxy/nginx-proxy#59.
Ideas/PRs are welcome :).
from meteor-apm-server.
@vparpoil see discussion in #14
from meteor-apm-server.
Related Issues (20)
- No 'Access-Control-Allow-Origin' header is present HOT 39
- Denial of Service changes? HOT 1
- Excessive disk space usage HOT 9
- Method '__dynamicImport' not found HOT 2
- Mongodb constantly at 100%+ of CPU HOT 24
- Documenting issues HOT 4
- Connection successful but nothing displayed HOT 2
- App collaboration feature doesn't work because users can't register HOT 6
- Less Import Error During Deploy HOT 2
- Error: 'very strange! - no entries found' HOT 5
- Increase the frequency of traces HOT 1
- UI crashes after a while HOT 2
- Email alerts are overly active HOT 11
- Please fix HOT 1
- Update docker image to 1.3.0 HOT 1
- Looking for maintainers HOT 6
- Unable to use agent package with meteor-apm-server HOT 2
- Are you looking for maintainer? HOT 1
- Specify some minimum system requirements in Readme HOT 6
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 meteor-apm-server.