Comments (18)
i have set mongourl and i've still got
⡋⠁ [METEOR-NOW] - deploying build (this can take several minutes)Possibly unhandled Error: 1
at Promise$_rejecter (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:590:44)
at /Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/index.js:85:13
at tryCatch1 (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/util.js:63:19)
at Promise$_callHandler [as _callHandler] (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:695:13)
at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:711:18)
at Promise$_settlePromiseAt [as _settlePromiseAt] (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:868:14)
at Promise$_settlePromises [as _settlePromises] (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:1006:14)
at Promise$_rejectPromises [as _rejectPromises] (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:999:10)
at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/async.js:74:12)
at Async$consumeFunctionBuffer (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/async.js:37:14)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
from meteor-now.
-d logs
> [debug] Retrying: FetchError: request to https://api.zeit.co/now/sync failed, reason: socket hang up
FetchError: request to https://api.zeit.co/now/sync failed, reason: socket hang up
at ClientRequest.<anonymous> (/Users/monsterstep/.nvm/versions/node/v6.10.2/lib/node_modules/now/node_modules/node-fetch/index.js:133:11)
at emitOne (events.js:101:20)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketOnEnd (_http_client.js:345:9)
at emitNone (events.js:91:20)
at TLSSocket.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
from meteor-now.
did you make sure to npm install for your meteor prooject? Maybe try to run meteor as well so that it downloads all the atmosphere packages.
from meteor-now.
Might be related to the now-cli. According to the last log you posted, the error is related with the socket connection so maybe you lost connection during upload or some error occurred on now's end. I good simple test is to just deploy a super basic node app and see if that deploys successfully by just typing in now
in your project folder.
from meteor-now.
I recently solved this issue.
#47 has more info. Make your meteor-now -e 'MONGO_URL=mongodb://<>'
i.e. single quote the whole as a string
from meteor-now.
hey it still throw the error, but it did deploy the project.
and there's no node-fetch used in this project, the project is very small, its almost static html with small amount js basiclly
what i've did is just rm -rf node_modules && meteor reset then meteor-now again
but error still there
from meteor-now.
Please try this
meteor npm install && meteor reset && meteor-now
it takes time because the Docker image created for deployment installs a non-persistent mongodb on now.
If you use your own mongo_url and point to a server accessible over internet, the build is much faster.
from meteor-now.
I've had 4 successful deployments, the latest one being yesterday, but today I keep getting this error. I've tried the following:
- Single quoting
'MONGO_URL=mlab uri...'
- Since that didn't work, also single quoting
'ROOT_URL=...'
- Rolling back to [email protected] since I just upgraded to [email protected].
rm -rf node_modules
followed bymeteor npm install
andmeteor reset
.
Nothing has worked, I keep getting the error and then it hangs at deploying build
. I'm running [email protected]. The app works fine when I run it locally, including connecting to my mlab db.
If I go to https://zeit.co/dashboard and click on the URL it gives me for the deployment, I can see that it's stuck on "1. Syncing files...".
from meteor-now.
try use debug mode meteor now -d -e ...rest
error shows, but it did deploy successed
from meteor-now.
@crapthings I had the exact same error, Please use single quotes for the whole of your MONGO_URL options.
Instance: meteor-now -e 'MONGO_URL=mongodb://my_mango_server:27017/the_db?ssl=true'
The only other thing I can think of is that your DB is not internet connected OR firewall rule is not allowing incoming port connection
from meteor-now.
@crapthings I could see it was deploying before, by looking on my dashboard on zeit's website. But it wasn't completing the deployment - it would get stuck on "syncing files".
Anyway, I tried your suggestion of passing in -d with the rest of the command that I was using. I actually didn't get the error at all (???) and it deployed just fine. I also logged out and logged back in first, so it's possible that had something to do with it, since I hadn't tried that before. Who knows at this point, I'm just happy it's working again so I don't keep burning through my free deployments. Thanks!
from meteor-now.
To fix this issue you can try
npm install [email protected] -g
I think problem is cause by vercel/vercel#435 only for oss plan.
Now-cli is waiting for your answer to go on https://github.com/zeit/now-cli/pull/435/files#diff-f784a12f4f3daf2399f86ae70b2f69c5R617
@jkrup @purplecones an idea to fix this problem with last now-cli ?
from meteor-now.
I did npm install [email protected] -g
but it did not help. Have some more output with the -d
option
$ meteor-now -d
[METEOR-NOW] - running command: meteor build .meteor/local/builds --server-only --architecture=os.linux.x86_64
WARNING: The output directory is under your source tree.
Your generated files may get interpreted as source code!
Consider building into a different directory instead
meteor build ../output
[METEOR-NOW] - creating Dockerfile
[METEOR-NOW] - creating supervisor
[METEOR-NOW] - splitting bundle
[METEOR-NOW] - looking for meteor settings file development.settings.json in root of project
[METEOR-NOW] - could not read development.settings.json
[METEOR-NOW] - no settings file found
WARNING: Did not pass a MONGO_URL. Bundling a NON-PRODUCTION version of MongoDB with your application. Read about the limitations here: https://git.io/vM72E
[METEOR-NOW] - running command: cd .meteor/local/builds && now -e PORT=3000 -e MONGO_URL=mongodb://127.0.0.1:27017 -e ROOT_URL=http://localhost.com -d
/usr/local/lib/node_modules/now/build/bin/now.js:4
const { resolve } = require('path');
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:141:18)
at node.js:933:3
Possibly unhandled Error: 1
at Promise$_rejecter (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:590:44)
at /usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/index.js:85:13
at tryCatch1 (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/util.js:63:19)
at Promise$_callHandler [as _callHandler] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:695:13)
at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:711:18)
at Promise$_settlePromiseAt [as _settlePromiseAt] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:868:14)
at Promise$_settlePromises [as _settlePromises] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:1006:14)
at Promise$_rejectPromises [as _rejectPromises] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:999:10)
at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/async.js:74:12)
at Async$consumeFunctionBuffer (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/async.js:37:14)
at _combinedTickCallback (node.js:370:9)
at process._tickCallback (node.js:401:11)
from meteor-now.
What version of node
do you have? (node --version
)
from meteor-now.
$ node --version
v5.8.0
from meteor-now.
I ran into similar problems and solved them by performing two steps:
- Installing node version 6.9.0
- Installing now version 4.10.3
sudo npm install -g n
sudo n 6.9.0
sudo npm install -g [email protected]
I've run the meteor-now command always with -d, I didn't try, if it works without the switch as well.
from meteor-now.
I was getting this error and using -d worked for me. For some reason the prompt "Are you sure you want to proceed with the deployment? [y|N] " only comes up if you use "-d".
from meteor-now.
These issues should hopefully be fixed after our re-write #75 so I'm closing this thread. Please open another issue if you have any troubles with the latest version.
from meteor-now.
Related Issues (20)
- Tests are failing on Windows
- MongoDB with Meteor 1.7 fails
- Error: Slash in host identifier HOT 6
- Meteor 1.7 mongo error HOT 4
- Support for GitHub Integration
- Use multi stage Docker builds HOT 5
- ▲ The built image size (417.0M) exceeds the 100MiB limit HOT 10
- Does meteor-now support now settings in now.json or package.json? HOT 5
- Does not support standard Mongo connection string HOT 2
- just saying thanks HOT 1
- Support METEOR_PACKAGE_DIRS HOT 1
- [FAQ] Will this work with any CI? HOT 1
- Way to change code without a full re-deploy HOT 1
- first run throws error HOT 1
- Compatibility with Now 2.0? HOT 28
- Possible to deploy without rebuilding if deploy failed HOT 1
- The property `features` is not allowed in now.json HOT 9
- Alias Support not workinb HOT 1
- Project name should be taken from package.json or now.json in priority
- [Error]: `Cannot read property '1' of null` HOT 3
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-now.