Comments (5)
Is it possible that the mongodb package isn't getting installed and available globally?
The deprecation warning in your output comes from that package. But it was never intended to be available globally, it's installed under the folder where that script is run.
from meteor-base.
Oh, I'm not worried about the deprecation warning. But the fact the docker-compose up
command never makes it past the Mongo check is a bit frustrating. Could it be a race condition of some sort?
from meteor-base.
Yes, that's why the script is there to poll until Mongo is ready. The Node container usually starts up faster than Mongo in my experience.
from meteor-base.
Right, but what I'm saying is the poll never ends. It just polls and polls and polls…
from meteor-base.
Oh, good lord, I think I figured it out. I had a misconfigured port, so I wasn't able to access the app. For some reason, the "Starting app…" message never appeared in my console, so while the app was running, it was just inaccessible. Could I suggest adding a console statement inside the connect-to-mongo.sh
declaring a successful connection? Might help when reviewing logs in the future. Something like:
const mongoClient = require('mongodb').MongoClient;
setInterval(function() {
console.log('Polling for Mongo connection…');
mongoClient.connect(process.env.MONGO_URL, function(err, client) {
if (client) {
console.log('Mongo connected.');
client.close();
}
if (err) {
console.error(err);
} else {
process.exit(0);
}
});
}, 1000);
A bit odd that the "Starting app…" message never pops up — not sure why that's happening. Sorry for the confusion.
from meteor-base.
Related Issues (20)
- Need help with `canvas` pls HOT 2
- New CVE-2022-0778 HOT 2
- Include 2.5.7-beta.0 HOT 1
- '/root/.meteor' exists, but '/root/.meteor/meteor' is not executable. HOT 32
- Proxy Configuration HOT 1
- Add better minification and obfuscation HOT 1
- Error with Vite bundler for Meteor + Vue 3 app HOT 5
- Missing 2.8.1 tag on docker hub HOT 1
- Missing 2.9.0 & 2.9.1 tags on Docker hub HOT 1
- No ark available HOT 1
- TypeError in docker HOT 1
- Error: Could not get https://warehouse.meteor.com HOT 2
- Add ssh to base image to install dependencies directly from Git/Github HOT 1
- app not available at localhost HOT 1
- Missing 2.8.2 tag on docker hub HOT 1
- build-meteor-bundle.sh error HOT 2
- No version needed in `docker-compose.yml` and updates to reflect latest changes in the docker ecosystem HOT 1
- update.sh adds duplicated lines to support.sh HOT 1
- Missing 2.15 tag on Docker hub HOT 2
- Development version? HOT 1
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-base.