Discussion:
Windows gems installer stuck
nikolaus heger
2005-05-29 12:58:37 UTC
Permalink
Hello,

I found this message in the archive and i wondered if anybody has a solution?!

I do this
$>gem install rails --remote
Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org

The, the program hangs completely. I see 0 network or CPU activity, and after
about 1/2 an hour, i killed it. Ctrl-C or other means don't work, i have to shut
down the dos prompt.

I did uninstall and re-install Ruby, and i am able to install gems manually -
but then they don't do the dependencies...

The same thing happens when i just type "gems update" - it gets stuck after
"Updating Gem source index for: http://gems.rubyforge.org"...

Thanks for any help

Nik
David Vincelli
2005-05-29 21:47:07 UTC
Permalink
Post by nikolaus heger
I found this message in the archive and i wondered if anybody has a solution?!
I've observed this (gems update/install freezing) on Windows XP Pro
(SP2, with all the latest security fixes) too. Sometimes it works but
it's always slower than under all unix platforms I've tried it it on.
I have no fix.
--
David Vincelli
Dee Zsombor
2005-05-30 08:15:43 UTC
Permalink
Where you behind a proxy when you did that?
Post by nikolaus heger
Hello,
I found this message in the archive and i wondered if anybody has a solution?!
I do this
$>gem install rails --remote
Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
The, the program hangs completely. I see 0 network or CPU activity, and after
about 1/2 an hour, i killed it. Ctrl-C or other means don't work, i have to shut
down the dos prompt.
I did uninstall and re-install Ruby, and i am able to install gems manually -
but then they don't do the dependencies...
The same thing happens when i just type "gems update" - it gets stuck after
"Updating Gem source index for: http://gems.rubyforge.org"...
Thanks for any help
Nik
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
--
http://deezsombor.blogspot.com
nikolaus heger
2005-05-31 09:04:54 UTC
Permalink
Post by Dee Zsombor
Where you behind a proxy when you did that?
No, no proxy.

I also tried it on the Mac - no problems over the same internet
connection. I think this rules out any funky network configuration
issues.

Killing ZoneAlarm did not help either. I did not uninstall it though...

I am using Windows XP SP2 with all the latest fixes installed.

Nik
Post by Dee Zsombor
Post by nikolaus heger
Hello,
I found this message in the archive and i wondered if anybody has a solution?!
I do this
$>gem install rails --remote
Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
The, the program hangs completely. I see 0 network or CPU activity, and after
about 1/2 an hour, i killed it. Ctrl-C or other means don't work, i have to shut
down the dos prompt.
I did uninstall and re-install Ruby, and i am able to install gems manually -
but then they don't do the dependencies...
The same thing happens when i just type "gems update" - it gets stuck after
"Updating Gem source index for: http://gems.rubyforge.org"...
Thanks for any help
Nik
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
--
http://deezsombor.blogspot.com
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
Dee Zsombor
2005-05-31 10:10:54 UTC
Permalink
That's strange! As workaround I would suggest a local gem install
using the cached gems, since you have already downloaded packages for
the mac.
Post by nikolaus heger
Post by Dee Zsombor
Where you behind a proxy when you did that?
No, no proxy.
I also tried it on the Mac - no problems over the same internet
connection. I think this rules out any funky network configuration
issues.
Killing ZoneAlarm did not help either. I did not uninstall it though...
I am using Windows XP SP2 with all the latest fixes installed.
Nik
Post by Dee Zsombor
Post by nikolaus heger
Hello,
I found this message in the archive and i wondered if anybody has a solution?!
I do this
$>gem install rails --remote
Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
The, the program hangs completely. I see 0 network or CPU activity, and after
about 1/2 an hour, i killed it. Ctrl-C or other means don't work, i have to shut
down the dos prompt.
I did uninstall and re-install Ruby, and i am able to install gems manually -
but then they don't do the dependencies...
The same thing happens when i just type "gems update" - it gets stuck after
"Updating Gem source index for: http://gems.rubyforge.org"...
Thanks for any help
Nik
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
--
http://deezsombor.blogspot.com
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
--
http://deezsombor.blogspot.com
Maximilian Schoefmann
2005-06-15 11:00:44 UTC
Permalink
Hi *,

I have exactly the same problem with the freezing gem installer on my two XP
SP2 machines but everything works fine with Ubuntu and FC3.
Post by Dee Zsombor
That's strange! As workaround I would suggest a local gem install
I did a local install - that worked. But when I try to use webrick with a demo
app , I always get a connection timeout (it seems that webrick can't bind to
a socket).
So I confiured Apache (without fcgi at first) and a simple "Hello World"
worked. But as soon as I started to use ActiveRecord which tries to connect
to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs.

This makes me think that there's maybe a conflict between the networking
implementation of the latest Ruby distribution and a fully patched XP SP2 -
as everything that uses networking seems to hang ??!
I remember reading something about one of the hotfixes this year (or was it in
SP2 ...) limited the functionality of "RAW-sockets"....

Any ideas ?

Max
Sam Newman
2005-06-15 11:38:42 UTC
Permalink
Do you perhaps have the windows XP firewall turned on? It might be
silently blocking netwrok traffic (IIRC the firewall first appeared in
SP2).
Post by Maximilian Schoefmann
Hi *,
I have exactly the same problem with the freezing gem installer on my two XP
SP2 machines but everything works fine with Ubuntu and FC3.
Post by Dee Zsombor
That's strange! As workaround I would suggest a local gem install
I did a local install - that worked. But when I try to use webrick with a demo
app , I always get a connection timeout (it seems that webrick can't bind to
a socket).
So I confiured Apache (without fcgi at first) and a simple "Hello World"
worked. But as soon as I started to use ActiveRecord which tries to connect
to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs.
This makes me think that there's maybe a conflict between the networking
implementation of the latest Ruby distribution and a fully patched XP SP2 -
as everything that uses networking seems to hang ??!
I remember reading something about one of the hotfixes this year (or was it in
SP2 ...) limited the functionality of "RAW-sockets"....
Any ideas ?
Max
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
--
sam
http://www.magpiebrain.com/
Maximilian Schöfmann [c]
2005-06-16 22:16:39 UTC
Permalink
Post by Sam Newman
Do you perhaps have the windows XP firewall turned on? It might be
silently blocking netwrok traffic (IIRC the firewall first appeared in
SP2).
No. Thats the first thing I checked.
And in all of these cases, ruby hangs completely. I cannot quit both
webrick and the gem installer with Ctrl-C - I have to kill the ruby
process manually (on both machines). I have already tried to re-install
ruby several times. The next thing I'll try is installing an old version
of ruby.
Post by Sam Newman
Post by Maximilian Schoefmann
Hi *,
I have exactly the same problem with the freezing gem installer on my two XP
SP2 machines but everything works fine with Ubuntu and FC3.
Post by Dee Zsombor
That's strange! As workaround I would suggest a local gem install
I did a local install - that worked. But when I try to use webrick with a demo
app , I always get a connection timeout (it seems that webrick can't bind to
a socket).
So I confiured Apache (without fcgi at first) and a simple "Hello World"
worked. But as soon as I started to use ActiveRecord which tries to connect
to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs.
This makes me think that there's maybe a conflict between the networking
implementation of the latest Ruby distribution and a fully patched XP SP2 -
as everything that uses networking seems to hang ??!
I remember reading something about one of the hotfixes this year (or was it in
SP2 ...) limited the functionality of "RAW-sockets"....
Any ideas ?
Max
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
Dee Zsombor
2005-06-15 11:54:49 UTC
Permalink
Could you connect to MySql with other tools? For exapmle phpmyadmin
or via mysql comand line tool?
Post by Maximilian Schoefmann
Hi *,
I have exactly the same problem with the freezing gem installer on my two XP
SP2 machines but everything works fine with Ubuntu and FC3.
Post by Dee Zsombor
That's strange! As workaround I would suggest a local gem install
I did a local install - that worked. But when I try to use webrick with a demo
app , I always get a connection timeout (it seems that webrick can't bind to
a socket).
So I confiured Apache (without fcgi at first) and a simple "Hello World"
worked. But as soon as I started to use ActiveRecord which tries to connect
to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs.
This makes me think that there's maybe a conflict between the networking
implementation of the latest Ruby distribution and a fully patched XP SP2 -
as everything that uses networking seems to hang ??!
I remember reading something about one of the hotfixes this year (or was it in
SP2 ...) limited the functionality of "RAW-sockets"....
Any ideas ?
Max
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
--
http://deezsombor.blogspot.com
Maximilian Schöfmann [c]
2005-06-16 22:18:09 UTC
Permalink
Post by Dee Zsombor
Could you connect to MySql with other tools? For exapmle phpmyadmin
or via mysql comand line tool?
Yes, I use it for many other projects.
Post by Dee Zsombor
Post by Maximilian Schoefmann
Hi *,
I have exactly the same problem with the freezing gem installer on my two XP
SP2 machines but everything works fine with Ubuntu and FC3.
Post by Dee Zsombor
That's strange! As workaround I would suggest a local gem install
I did a local install - that worked. But when I try to use webrick with a demo
app , I always get a connection timeout (it seems that webrick can't bind to
a socket).
So I confiured Apache (without fcgi at first) and a simple "Hello World"
worked. But as soon as I started to use ActiveRecord which tries to connect
to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs.
This makes me think that there's maybe a conflict between the networking
implementation of the latest Ruby distribution and a fully patched XP SP2 -
as everything that uses networking seems to hang ??!
I remember reading something about one of the hotfixes this year (or was it in
SP2 ...) limited the functionality of "RAW-sockets"....
Any ideas ?
Max
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
nikolaus heger
2005-06-26 09:27:17 UTC
Permalink
Is there anyone on this list able to use gems or run Rails ActiveRecord
on Windows XP2 / latest patches installed?

If so, please let us know. Maybe we can narrow down the possibilities
somewhat.

I have XP2 / latest fixes and ZoneAlarm (which I blame for everything
even though in the end it's usually not it's fault). Gems does not
install with ZoneAlarm completely shut down, either. That makes it
unlikely that ZA is to blame - however, ZA installs some system level
drivers so it's not impossible that ZA still interferes even when shut
down.

Maximilian, do you have ZoneAlarm installed? If not, which firewall /
virus protection are you using?

I can rule out any proxy or general internet connection issues since
both my Mac and my Win machine go through the same NAT and it works
fine on Mac.

I also don't have any other connectivity issues on Windows.

Nik
Post by Maximilian Schöfmann [c]
Post by Dee Zsombor
Could you connect to MySql with other tools? For exapmle phpmyadmin
or via mysql comand line tool?
Yes, I use it for many other projects.
Post by Dee Zsombor
Post by Maximilian Schoefmann
Hi *,
I have exactly the same problem with the freezing gem installer on my two XP
SP2 machines but everything works fine with Ubuntu and FC3.
Post by Dee Zsombor
That's strange! As workaround I would suggest a local gem install
I did a local install - that worked. But when I try to use webrick with a demo
app , I always get a connection timeout (it seems that webrick can't bind to
a socket).
So I confiured Apache (without fcgi at first) and a simple "Hello World"
worked. But as soon as I started to use ActiveRecord which tries to connect
to my MySQL (or PostgreSQL - I tried both) server - the rails app hangs.
This makes me think that there's maybe a conflict between the networking
implementation of the latest Ruby distribution and a fully patched XP SP2 -
as everything that uses networking seems to hang ??!
I remember reading something about one of the hotfixes this year (or was it in
SP2 ...) limited the functionality of "RAW-sockets"....
Any ideas ?
Max
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
David Mitchell
2005-06-26 11:56:18 UTC
Permalink
Works fine for me on my XP Pro laptop. I just checked Windows Update
and found no outstanding patches at all. I then ran "gem update
--rdoc" and got the new version of PayPal downloaded and installed
without a problem.

I'm running SP2, ZoneAlarm, AVG AntiVirus and one or two other things as well.

Regards

Dave M.
Post by nikolaus heger
Is there anyone on this list able to use gems or run Rails ActiveRecord
on Windows XP2 / latest patches installed?
Hugo Magalhaes
2005-06-26 13:06:04 UTC
Permalink
Hello all.
I have two tables: Document and Author. A Document has to have an Author.
I want to search Documents that have a specific Author name. I know
how to do the search by the id (foreign key), but I want also to do
the search by the author's name (another column in the authors table).
Can anyone tell me how to do this?

Here is the code I use to search by author id:

@documents = Document.find(:all, :conditions => ["author_id=(?)", author_id])

And the model classes:

class Document < ActiveRecord::Base
belongs_to :author
end

class Author < ActiveRecord::Base
has_many :documents
end

Thanks for your answers,
Hugo
Boris
2005-06-26 12:16:42 UTC
Permalink
I also had a problem installing rails, with a process that seemed to hang. I
managed to install it after I updated gem.

So after installation of ruby I ran
gem update -system

After this update - I now have 0.8.10 - gem install rails worked without any
problems.

Boris

-----Original Message-----
From: rails-bounces-1W37MKcQCpIf0INCOvqR/***@public.gmane.org
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/***@public.gmane.org] On Behalf Of nikolaus heger
Sent: zondag 26 juni 2005 11:27
To: rails-1W37MKcQCpIf0INCOvqR/***@public.gmane.org
Subject: Re: [Rails] Windows gems installer stuck [u]

Is there anyone on this list able to use gems or run Rails ActiveRecord on
Windows XP2 / latest patches installed?

If so, please let us know. Maybe we can narrow down the possibilities
somewhat.

I have XP2 / latest fixes and ZoneAlarm (which I blame for everything even
though in the end it's usually not it's fault). Gems does not install with
ZoneAlarm completely shut down, either. That makes it unlikely that ZA is to
blame - however, ZA installs some system level drivers so it's not
impossible that ZA still interferes even when shut down.

Maximilian, do you have ZoneAlarm installed? If not, which firewall / virus
protection are you using?

I can rule out any proxy or general internet connection issues since both my
Mac and my Win machine go through the same NAT and it works fine on Mac.

I also don't have any other connectivity issues on Windows.

Nik
Post by Maximilian Schöfmann [c]
Post by Dee Zsombor
Could you connect to MySql with other tools? For exapmle phpmyadmin
or via mysql comand line tool?
Yes, I use it for many other projects.
Post by Dee Zsombor
Post by Maximilian Schoefmann
Hi *,
I have exactly the same problem with the freezing gem installer on my two XP
SP2 machines but everything works fine with Ubuntu and FC3.
Post by Dee Zsombor
That's strange! As workaround I would suggest a local gem install
I did a local install - that worked. But when I try to use webrick
with a demo app , I always get a connection timeout (it seems that
webrick can't bind to a socket).
So I confiured Apache (without fcgi at first) and a simple "Hello World"
worked. But as soon as I started to use ActiveRecord which tries to
connect to my MySQL (or PostgreSQL - I tried both) server - the
rails app hangs.
This makes me think that there's maybe a conflict between the
networking implementation of the latest Ruby distribution and a
fully patched XP SP2 - as everything that uses networking seems to
hang ??!
I remember reading something about one of the hotfixes this year (or was it in
SP2 ...) limited the functionality of "RAW-sockets"....
Any ideas ?
Max
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
_______________________________________________
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails
Kevin Williams
2005-06-26 14:40:56 UTC
Permalink
Post by nikolaus heger
Is there anyone on this list able to use gems or run Rails ActiveRecord
on Windows XP2 / latest patches installed?
If so, please let us know. Maybe we can narrow down the possibilities
somewhat.
I have Windows XP SP2 latest with Kerio Personal Firewall, F-Prot and
ClamWin. I've got Gems and Rails installed on four or five machines,
Linux and Windows, behind my main firewall and have never had a problem.

Could it be a PATH issue with spaces? My Ruby install is at
"C:\programs\ruby" and my PATH variable has "C:\programs\ruby\bin" in it.
Continue reading on narkive:
Loading...