-
Notifications
You must be signed in to change notification settings - Fork 18
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
Nodester simplified auto-installer needed #8
Comments
I totally agree with you! The best people to consult on this would be @gradus and @AlejandroMG on Github. |
Cool! Just a few issues, first we are using
Edit: Sorry submitted by mistake Well, after that you can install node.js:
Also the couchdb ppa is very old, so we should change that ;) And finally, the scripts to start the app are now upstart scripts, so the process just should copy then to There is one thing left still, the chroot envs, but that's another history. But as i said above, this idea is awesome :-) |
Thanks for the info; that's super helpful to get pointed in the right directions. I can tell it's getting pretty close, but i think there are some directory issues. Where does nodester want to live on the filesystem? I've seen references to: Those directory issues seem to be keeping the upstart script from running (I created a symbolic link to get around it, but stopped myself from going link crazy as that might pose some security issues and how things are sandboxed). However, after the install you can start the proxy manually (goto ~/nodester/nodester/proxy and run ./proxy.js) and it will show up at 127.0.0.1 :) So anyway, I've reworked it a bit with your suggestions and here's where it stands:
Note that during the install process you'll probably want to have at least 1GB of memory (tried it with a tiny 256MB instance for fun and the node.js compile stage slowed to a crawl, pushing everything to swap space). More thoughts? It'd be great to know where you think Nodester best wants to live on the filesystem. Adam |
Update -- it's working (and in color)! :) That said, there are a couple small annoyances that would be great to resolve.
Sorry for the big paste inline here: once it's a little cleaner, it'd be great to add it to this project Cheers,
|
oh, and total time from start to finish (even with the annoying reboot) is just 7 minutes to get Nodester fully up and running on a fresh install of Ubuntu 12.04! |
@akumpf you are awesome :-)! About the address I go with |
@AlejandroMG thanks for pulling things in. I'm going to keep tuning this; feels like we're on to something here :) The next issue I'm running into is about ssh keys and git. When a new project is created, app.js logs this error:
looks like it can't The second issue I'm having with git is around cloning. It keeps asking me for a password when I try to clone. I'm guessing this is related to RSA keys, but I have no idea. What password should be used when cloning the project for the first time, or should the RSA key take care of that and never ask you for a password? cheers, Edit: maybe the issued is with populating the "SSH KEY" section of |
ok, so quick update. The issue seems to be that I created one user as a test (don't see anything in once I manually populated my key (and added ./scripts/gitreposetup.sh to nodesters in the sudoers list; see other pull request), it seems to be setting up the git repo and allowing access as intended :) Thoughts? |
@AlejandroMG am I correct to assume that the It looks like after the install |
@akumpf, your script it's great! I've been testing it (not extensively) and works pretty well by now. I was searching some workaround for the couchdb admin issue, but no luck yet. I think it will be very usefull if you post the script as a gist or even better do PR on nodester-installer ;) |
@AlejandroMG, this one: It seems that /etc/init.d/couchdb (start|stop) doesn't reload correctly the configuration settings. I thought it was an issue resolved on a later version and tried to install from git but still have the same problem. |
@AlejandroMG and @roskoff looks like the couchdb restart bug has been discussed (albeit a couple years ago here): added a fix to the script to force kill after a handful of revs, it's getting border-line useful :) will send a pull request in the next couple hours with everything ready for the next round of issues and discussion. Thanks to both of you for being excited about this. I think the install process is probably the biggest barrier to others setting up their own Nodester clouds. Hopefully this will open some new doors. Still some post-install funkiness (permissions, chroot, admin app(s), etc.). If you guys have a minute to try it out (after I send the pull request shortly) and see where it breaks for you, that'd be awesome. |
We have zipped up our sandbox directory to distribute. You can download it from http://nodester.com/sandbox.tar.gz or find it in the repo under the public directory. You will need to unzip this directory and update your config.js node_base_folder: '', to reference this unzipped directory. New apps start with this sandbox as the base chroot directory. |
awesome. Thanks for posting the sandbox. ok, so everything seems to install nicely, but the permissions are still tripping me up. @nodester @chrismatthieu @AlejandroMG @roskoff : not sure how many of you have been trying out the install script and have deep knowledge of permissions in nodester, but any thoughts or shell script suggestions would be much appreciated. :) Oh, to automate the sandbox install, I've added this to the auto-install script:
|
@akumpf You are doing a great work :) Until now I just tested partially the script, I was stuck with the couchdb issue, I asked for help on #couchdb and they recommended to do:
And that worked very well, no need to restart the couchdb server. Now I'm trying rerun the script up to nodejs installation, but I had another error:
And
So now I'm running the script install with |
cool. ran into the The CouchDB password fix looks great. Good call. Have you had any issues with permissions once the installer finishes? Try to create a test project and commit it (keep an eye on /node/logs/app.log). |
@akumpf Sorry If i'm missing this conversation commenting, but I'm reading ;-). I'll setup a fresh server tonight with your script, and I'll tell you how things went. plus I'm not receiving the notifications about this thread. |
@akumpf I was able to run the entire script, there is a few things that I should point out:
That should install redis 2.2.12 (latest version is 2.4.14) In
(maybe it would be better to set already this on Do we really need to run three times The section I think that's all that I get until now, I've tried to set the installer script so it can run as a normal user, using After I got all this fixed, finally the nodester box was running, but I couldn't get to work it correctly, accessing to the server replies 404 page to every request that I made. I got errors like this on
That's all the tests that I made so far, I know you maybe already have fixed some of then :) |
FWIW yesterday I installed a nodester instance with @akumpf's script. It works really well. One thing to take note, since the script is downloading the Also about the redis dependency, imo, it should be an optional Dependency, even the couchdb installation, because (at least me, and nodester.com), I don't want to have all in the same server. What are your thoughts about this? About @roskoff question, it's not an error. That's because you need to add your default IP or Domain to be the principal, as
in the config file.) So add that IP or a domain and it will work. Other way to fix this is to add it by default in the proxy table, but since it can be different maybe @akumpf can add it to the script :P. Edit: Abuot db dependencies, as you can see many people will choose not to use redis _> fgnass/nodester@1c6703a |
cool! I'm all for Redis being optional. :) I think the revisions are starting to get a bit scattered... @AlejandroMG , do you want to pull in everything so far, and then we can pull over the optional Redis config and future updates on top of that? |
@akumpf cherry-pick'ed. Please |
I was wondering about the views from couchdb. I need to make a list of them and maybe just after that add them to this script. |
Hey guys, do you have trouble installing default I've installed it manually: Ok, after that I keep trying to get things to work but then I had problems with global module I don't know if those errors are derived from the workaround that I made with @akumpf I've got several error messages when create/init/delete applications, but as I said before, don't know if they are derived issues given a bad installation. Here are some of the error that I've found so far: When creating:
At init:
When deleting (repeated several times):
Also I have to say that when I create an app asks me for |
Well, in my case I didn't fine that problem with npm. I'd recomend to use as default version the 0.4.9 (for the moment), but 0.4.12 shoud be fine. The first two errors that you say are not really errors are warnings. The first is ok, always happen. The second means that your start script on "start process" doesn't exists, do you remember:
Well that For the first error, looks like more a permission issue. Try to add the current user to the chown list of that dir. /be |
These couple of scripts are great, but I'm having issues getting it to work....
Ideally, the script would turn a fresh server install (Ubuntu 12.04/11.10 is what I'm trying to get running) into a Nodester machine! I think it's okay if it's initially pretty vanilla and default (default usernames, passwords, etc), as long as the script points to where things should be updated to make it secure.
So with that in mind, I've been chipping away at a full soup-to-nuts auto-installer. Ideally you just copy over one .sh file, run it, and watch as your server turns into a Nodester powerhouse :)
Here's what I have so far (NOTE: it doesn't fully get things up and running yet!)
So I'm sure there are a few issues to sort out here (database seems to not be fully setup, and ./bin/proxy_start.sh doesn't run), but this would be awesome to get ironed out.
I'd love to get the full Nodester platform up on my machine (and have a feeling that it will travel quickly if we can make it dead simple to install).
Any thoughts, suggestions, modifications, etc. would be great!
Cheers!
Adam
The text was updated successfully, but these errors were encountered: