mcrider / azimuth

Azimuth is a simple, elegant, and fast CMS built using meteor.js.
232 stars 54 forks source link

Instructions to install from git in do not work #67

Closed ViktorNova closed 10 years ago

ViktorNova commented 10 years ago

Hello! I followed instructions to install from git as I want to check out latest developments and contribute block types/etc. Following the instructions, I did

git clone --recursive git@github.com:mcrider/azimuth.git

Spit out this:

Cloning into 'azimuth'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

However,

git clone --recursive https://github.com/mcrider/azimuth.git

does work, but fails on azimuth-core with the same error

$ git clone --recursive https://github.com/mcrider/azimuth.git
Cloning into 'azimuth'...
remote: Counting objects: 1599, done.
remote: Compressing objects: 100% (996/996), done.
remote: Total 1599 (delta 588), reused 1520 (delta 530)
Receiving objects: 100% (1599/1599), 795.69 KiB | 633 KiB/s, done.
Resolving deltas: 100% (588/588), done.
Submodule 'packages/azimuth-core' (git@github.com:mcrider/azimuth-core.git) registered for path 'packages/azimuth-core'
Submodule 'packages/azimuth-theme-bootstrap-flatBlue' (git@github.com:mcrider/azimuth-theme-bootstrap-flatBlue.git) registered for path 'packages/azimuth-theme-bootstrap-flatBlue'
Submodule 'packages/azimuth-theme-foundation-simpleWhite' (git@github.com:mcrider/azimuth-theme-foundation-simpleWhite.git) registered for path 'packages/azimuth-theme-foundation-simpleWhite'
Submodule 'packages/azimuth-views-bootstrap' (git@github.com:mcrider/azimuth-views-bootstrap.git) registered for path 'packages/azimuth-views-bootstrap'
Submodule 'packages/azimuth-views-foundation' (git@github.com:mcrider/azimuth-views-foundation.git) registered for path 'packages/azimuth-views-foundation'
Cloning into 'packages/azimuth-core'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Clone of 'git@github.com:mcrider/azimuth-core.git' into submodule path 'packages/azimuth-core' failed

After doing this, mrt refuses to do anything, complaining that packages/azimuth-core does not exist

I checked the submodule directories and they were empty. I did a git submodule update and got the same pubkey error

I also tried cloning the packages straight from github into the packages directory, which actually worked with azimuth-core, but on the other ones it asked for my github credentials and then spit out a 403 error. Ahhhh!

Any idea what's going on?

mcrider commented 10 years ago

Good catch on the git repo address -- obviously it works for me because I run that command on my own authorized machine, but I haven't tested it on another machine. I'll have to find a machine that doesn't have my github key on it to find a better solution. In the meantime, you should be able to skip the --recursive command and checkout the relevant submodules directly into the packages/ directory by cloning each repo (using the 'https://github' address, not the 'git@github' address).

ViktorNova commented 10 years ago

Ok ok, so I cloned the repo, and then separately cloned the stuff in packages/ from their own repos. Now when I run mrt I get this error

Stand back while Meteorite does its thing

Installing Meteor

  branch: https://github.com/meteor/meteor.git#master

Installing smart packages

Downloading Meteor development bundle
######################################################################## 100.0%
  Package azimuth-core has been ignored because it has been manually installed in /packages

  Package azimuth-views-bootstrap has been ignored because it has been manually installed in /packages

  Package azimuth-views-foundation has been ignored because it has been manually installed in /packages

  Package azimuth-theme-bootstrap-flatBlue has been ignored because it has been manually installed in /packages

  Package azimuth-theme-foundation-simpleWhite has been ignored because it has been manually installed in /packages

✓ font-awesome
    tag: https://github.com/nate-strauser/meteor-font-awesome.git#v3.2.1
✓ iron-router
    tag: https://github.com/EventedMind/iron-router.git#v0.6.0
✓ zurb-foundation
    tag: https://github.com/MixinLabs/meteor-foundation.git#v0.1.8
✓ cfs-public-folder
    tag: https://github.com/nooitaf/meteor-cfs-public-folder.git#v0.0.3

/usr/local/lib/node_modules/meteorite/lib/sources/git.js:152
hrow "There was a problem checking out " + self.checkoutType + ": " + (self.co
                                                                    ^
There was a problem checking out tag: f47a0f1963be82121c975f955196b1fbb0cdbca3
n0va@n0van0de:~/VIKTORNOVA.COM/azimuth$ sudo meteor --port 1337
[[[[[ /var/www/VIKTORNOVA.COM/azimuth ]]]]]

=> Meteor server running on: http://localhost:1337/
=> Meteor 0.6.6.3 is available. Update this project with 'meteor update'.

^Cn0va@n0van0de:~/VIKTORNOVA.COM/azimuth$ 
n0va@n0van0de:~/VIKTORNOVA.COM/azimuth$ meteor update
azimuth: updated to Meteor 0.6.6.3.
n0va@n0van0de:~/VIKTORNOVA.COM/azimuth$ sudo mrt --port 1337
[sudo] password for n0va: 

Stand back while Meteorite does its thing
  Package azimuth-core has been ignored because it has been manually installed in /packages

  Package azimuth-views-bootstrap has been ignored because it has been manually installed in /packages

  Package azimuth-views-foundation has been ignored because it has been manually installed in /packages

  Package azimuth-theme-bootstrap-flatBlue has been ignored because it has been manually installed in /packages

  Package azimuth-theme-foundation-simpleWhite has been ignored because it has been manually installed in /packages

✓ cfs-public-folder
    tag: https://github.com/nooitaf/meteor-cfs-public-folder.git#v0.0.3

/usr/local/lib/node_modules/meteorite/lib/sources/git.js:152
hrow "There was a problem checking out " + self.checkoutType + ": " + (self.co
                                                                    ^
There was a problem checking out tag: f47a0f1963be82121c975f955196b1fbb0cdbca3

I'm new to Meteor (and i love it!), so I am not really sure what this means.. I tried it again and it started the server, but the site shows up with a blank page. In the error console I see this:

WebSocket connection to 'ws://mywebsitething.com/sockjs/806/3sf0j1_8/websocket' failed: Unexpected response code: 400

What should I try next?

mcrider commented 10 years ago

You probably shouldn't be running mrt with sudo. Also, did you follow the regular instructions for installing the necessary Azimuth modules (a views module first, then azimuth-core)? BTW I made a commit that should allow people that don't have their github keys set up to be able to fetch azimuth from git (e.g. use https for git submodules).

mcrider commented 10 years ago

Closing, but feel free to keep commenting and I'll try to help with support.

ViktorNova commented 10 years ago

Ok, I gave this a fresh start - this time git clone --recursive worked and pulled everything in! I then did

$ mrt add azimuth-views-bootstrap

and got the following error:

  Package azimuth-core has been ignored because it has been manually installed in /packages

  Package azimuth-views-bootstrap has been ignored because it has been manually installed in /packages

  Package azimuth-views-foundation has been ignored because it has been manually installed in /packages

  Package azimuth-theme-bootstrap-flatBlue has been ignored because it has been manually installed in /packages

  Package azimuth-theme-foundation-simpleWhite has been ignored because it has been manually installed in /packages

✓ cfs-public-folder
    tag: https://github.com/nooitaf/meteor-cfs-public-folder.git#v0.0.3

/usr/local/lib/node_modules/meteorite/lib/sources/git.js:152
hrow "There was a problem checking out " + self.checkoutType + ": " + (self.co
                                                                    ^
There was a problem checking out tag: f47a0f1963be82121c975f955196b1fbb0cdbca3

Got basically the same error when doing "mrt add azimuth-core" and when just running "mrt" to run the server. The error message looks truncated, I pasted it in here just as it it appears on the terminal.. could this be a problem with my meteor/meteorite installation? It's a fresh install as of like a week ago, and I'm able to install regular Azmuth using the basic (non-git) instructions on your website

mcrider commented 10 years ago

Hmm -- perhaps try the commands from nooitaf described at https://github.com/CollectionFS/Meteor-CollectionFS/issues/97?

ViktorNova commented 10 years ago

Ok, finally came back to this, with a fresh copy of everything. I followed instructions from your link and it did a bunch of stuff finally launched without error!

But now my site is loading a blank screen sigh Viewing the source there are a ton of js files being loaded, but no content or anything. Any idea? I seem to remember having much better lock following the instructions on your site as opposed to the ones here, but your site seems to be down at the moment. Would you not recommend installing from git at this time?

mcrider commented 10 years ago

I haven't done any extensive testing with meteor 0.7.0 so that may be causing you trouble if that's the version you're using. Otherwise, not sure what you could be running in to as this works fine for me. If you want to put your project on github I can take a look.

Also, thanks for the heads up on the site being down, its back up now.

ViktorNova commented 10 years ago

I have been strapped for time and have not been able to troubleshoot lately, but will try again soon and will put it on github for you to look at if there's still an issue. I am keeping an eye on Azimuth and have high hopes for it!