New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying projects with long hostnames fails [2 different bugs] #1208
Comments
+1 at http://leaderboard.arkadias.meteor.com/ As the name implies this is a minimally modified leader board demo. First noticed site was down about Jul 5 11pm PDT, still down at Jul 6 11:30 am. Are the meteor.com dev hosts down? |
Try meteor logs {FQDN to hosted app} For me, "meteor logs leaderboard.arkadias.meteor.com" returned a log contaning among others: [Sat Jul 06 2013 18:43:39 GMT+0000 (UTC)] ERROR Application crashed with code: 1 dev:leaderboard glen$ meteor reset help To reset a deployed application use However: dev:leaderboard glen$ meteor deploy --delete leaderboard.arkadias.meteor.com Yep, Meteor is having issues... |
I think I've figured it out and fixed it. Try now. |
I just went through this stuff. Here's what I've observed: If you want to deploy locally:
If you want to deploy on meteor.com:
If you want to reset and deploy locally:
If you want to reset on meteor.com and deploy on meteor.com:
If you want to reset everywhere and re-deploy everywhere:
Why all this trouble? |
Working now, thanks. |
Looks like one of our deployment processes was leaking mongodb connections, and the mongo server hit its hardcoded 20k connection limit. I restarted the deploy process so we've got lots of free connection slots now, and am looking to track down the leak. Thanks for the report, and sorry for the inconvenience! |
I've trying to deploy app to meteor server for a month. Started from 0.8 and still can't on 0.8.1.2. Tried to reset everything like in comment above, but without success. I thought something with my app. But earlier today I successfully deployed another old 0.6 app. So I don't have any suggestions why I get «This site is down. Try again later.» |
@MaximDubrovin without any info on the repo, its going to be hard for anyone to help you. |
Sounds like your app is crashing. Try running |
@glasser Thank you. The problem was: On local server I loaded config for AWS SDK without a problem from local path: AWS.config.loadFromPath('local/file/path/aws-config.json'); But obviously it breaks server when app is deployed. The solution: Now I put config to Added this to api.add_files('private/aws-config.json', 'server', {isAsset: true}); And I get this config from my package code with Assests API: var AWSConfig = JSON.parse(Assets.getText('private/aws-config.json'));
AWS.config.update(AWSConfig); Now it works. The question: Is it safe approach to store and use private config files? |
BTW, I've recently failed to deploy an app, getting the "This site is down. Try again later." message. I waited, tried again, also the same error. This app was none other than the "leaderboard" example. (I just wanted to create my Meteor Developer account.) So, the name/subdomain for my app was something like "leaderboard-only-to-create-developer-account". It was quite long. I shortened the name/subdomain of the app, and it worked. |
@jbruni Did you try checking with @MaximDubrovin That sort of question is best for meteor-talk or stack overflow, not our bug tracker. |
@glasser It was a fresh "leaderboard" app, unchanged from "meteor create --example leaderboard". I tried the deploy with the very long subdomain name several times during the day - all failed. I tried a smaller name, and it just worked, at first try. I haven't touched any code. Just wanted my Meteor developer account created to deploy a package at Atmosphere. |
@jbruni For the third time: What happened when you ran |
@glasser - The environment where it all happened was kind of "temporary": it has already gone. So, unfortunately, I can't obtain anything from meteor logs. I don't even remember what exactly the long-name was. There is no "bash history" available to get that long-name. Anyway, just confirming: I only did a |
The error was accurate: your site (very-long-name.meteor.com) was down. I don't know why a site whose name you haven't told me was down. I realize that you have one guess, about name length, and that could be correct. But without actually telling me the name of the site so we can look at the logs, there is no way to debug this issue. If you see this error again, you should take my advice and look at the logs. If you don't ever see this error again, then great! There's no problem! But I've answered 4 times now the question of "how do I learn more about why my app is down"; this thread is no longer productive. |
Alright. I apologize. I just found that the error is easily reproducible: I've created a basic/free Nitrous.io box. Selected "Node.js", and installed Meteor using the "Autoparts" menu. I've also created a free disposable e-mail address at http://10minutemail.com/ What happened next has been fully copy/pasted in a gist here. The most important pieces are highlighted below. With a "extra very long" name (another error message):
Now, with a "very long" name (my original issue):
And finally with a "moderately long" name (it works):
As we can see Now, we've learned it is easy to reproduce it. (I've created a Nitrous.io fresh box, but my original experience was from my own personal laptop.) |
Thank you for the specific bug report which provides enough information to actually debug the issues. There appear to be two separate issues here: (1) Domain names may only have segments of length up to 63 (see eg http://en.wikipedia.org/wiki/Domain_name#Domain_name_syntax). The URL parser code we use in the (2) Mongo database names can only be 63 characters long, and the logic we use internally inside the meteor deploy server to generate mongo database names means that the total hostname can only be 63 characters long. This needs to be fixed internally at MDG. |
I have an app that's been deployed before. I made some changes to it and when attempting to redeploy got:
Now serving at hox-money.meteor.com
However when going to the site, I got "this site is down"
I attempted to delete the app and got:
Error deleting application: Unable to delete application
After trying to delete again, I got:
Error deleting application: Application does not exist
When going to the site it says, There is no site deployed at this address. Great!
When trying to deploy again, I get:
Error deploying application: Error creating application.
This happens even when I try to deploy to another site like hox-money2.meteor.com
The app runs fine locally and I'm wondering if there is anything else I can try?
The text was updated successfully, but these errors were encountered: