Server problems...really Weird

My question might be very basic, so please bear with it.

Q.1 suppose i created my rails app as APP1 under the directory /abc/ xyz and then I copy the entire directory to a different location, say / cde/efg/. Now, if i go in the new location and call the rails server command, will it work? I guess it should, never had such an issue but today all of a sudden, the server doesn't even show a single home page. P.S. I am not using RVM, and using Rails 3, so the ruby and gemset is same over both the rails apps.

Q.2 What should one do when the server is showing cached copies of the previous apps. for example lets say i have app1 : posts(the only model made by scaffold), app2 : users (the only model made by scaffold) and similarly one more app. Each one of it is separate, as you all know, are independent. Today , when i created a new application and i started the browser, it kept on pulling up pages from the cache and didn't show me the views for the new app. A point to note that the server log is blank, nothing gets executed as per the server. P.S. These are not three controlles, rather three whole rails apps....and my environment is Development, so no point of production cache. Help me fix these issues.

I posted the above question @stackoverflow.com http://stackoverflow.com/questions/4368668/server-problems

Didn't get an answer, why it was happening so? A day later, it all went fine by itself.

So, I edited my question appending

" I don't know how, but all the issues are fixed now, on their own. Does any one has any idea what led to this? "

Now, I am having the problems again:

" Initially atleast It was showing me some cached html (or whatever) of the previous apps from nowhere, but now, its not working at all...i mean rendering nothing at all. Any idea, where the problems might be??? " Please help me, as I am stuck with this, I can't proceed with my project.

My question might be very basic, so please bear with it.

Q.1 suppose i created my rails app as APP1 under the directory /abc/

xyz and then I copy the entire directory to a different location, say /

cde/efg/. Now, if i go in the new location and call the rails server

command, will it work?

I guess it should, never had such an issue but today all of a sudden,

the server doesn’t even show a single home page.

P.S. I am not using RVM, and using Rails 3, so the ruby and gemset is

same over both the rails apps.

Q.2 What should one do when the server is showing cached copies of the

previous apps. for example lets say i have app1 : posts(the only model

made by scaffold), app2 : users (the only model made by scaffold) and

similarly one more app. Each one of it is separate, as you all know,

are independent.

First, please let us know what you are using for a webserver – at least I dont seem to see that you named it – webrick, mongrel, nginx…

Jatin Kumar wrote in post #967492:

My question might be very basic, so please bear with it.

Q.1 suppose i created my rails app as APP1 under the directory /abc/ xyz and then I copy the entire directory to a different location, say / cde/efg/. Now, if i go in the new location and call the rails server command, will it work?

It usually should.

I guess it should, never had such an issue but today all of a sudden, the server doesn't even show a single home page.

And the error message said...? And to fix it, you tried...?

P.S. I am not using RVM, and using Rails 3, so the ruby and gemset is same over both the rails apps.

Q.2 What should one do when the server is showing cached copies of the previous apps. for example lets say i have app1 : posts(the only model made by scaffold), app2 : users (the only model made by scaffold) and similarly one more app. Each one of it is separate, as you all know, are independent. Today , when i created a new application and i started the browser, it kept on pulling up pages from the cache and didn't show me the views for the new app. A point to note that the server log is blank, nothing gets executed as per the server. P.S. These are not three controlles, rather three whole rails apps....and my environment is Development, so no point of production cache.

We'll need to know more about your setup to answer this.

Best,

The server I am using is Mongrel and Webrick. When Rails was showing me cached views out of nowhere, I tried both these servers( i mean, i changed the Gemfile in Rails 3.0 rc2 ) and again started the server(first time with mongrel, and second time with Webrick), the results were same.

And now that it is not even showing me those garbage cached views, i have tried both webrick and mongrel. What I can see is there is some problem with the Rails gem, what do you say?

Jatin Kumar wrote in post #967492:

My question might be very basic, so please bear with it.

Q.1 suppose i created my rails app as APP1 under the directory /abc/

xyz and then I copy the entire directory to a different location, say /

cde/efg/. Now, if i go in the new location and call the rails server

command, will it work?

It usually should.

Yes, it usually should but not working now, probably because there is some problem in my Rails gem.

I guess it should, never had such an issue but today all of a sudden,

the server doesn’t even show a single home page.

And the error message said…? And to fix it, you tried…?

The error message said NOTHING. The server log is empty, with nothing on it.

P.S. I am not using RVM, and using Rails 3, so the ruby and gemset is

same over both the rails apps.

Q.2 What should one do when the server is showing cached copies of the

previous apps. for example lets say i have app1 : posts(the only model

made by scaffold), app2 : users (the only model made by scaffold) and

similarly one more app. Each one of it is separate, as you all know,

are independent.

Today , when i created a new application and i started the browser, it

kept on pulling up pages from the cache and didn’t show me the views

for the new app. A point to note that the server log is blank, nothing

gets executed as per the server.

P.S. These are not three controlles, rather three whole rails

apps…and my environment is Development, so no point of production

cache.

We’ll need to know more about your setup to answer this.

What exactly do you need to know about my setup.? linux ubuntu 10 lucid x86, ruby 1.8.7, rails 3.0 rc2 I feel like there is some problem with my rails gem. Do you suggest to reinstall it and then see if the problem persists?

I'd say, why are you using an old pre-release version when Rails is already at release 3.0.3 ? :slight_smile:

Update and see if your problem persists.

My question might be very basic, so please bear with it.

Q.1 suppose i created my rails app as APP1 under the directory /abc/ xyz and then I copy the entire directory to a different location, say / cde/efg/. Now, if i go in the new location and call the rails server command, will it work? I guess it should, never had such an issue but today all of a sudden, the server doesn't even show a single home page. P.S. I am not using RVM, and using Rails 3, so the ruby and gemset is same over both the rails apps.

Q.2 What should one do when the server is showing cached copies of the previous apps. for example lets say i have app1 : posts(the only model made by scaffold), app2 : users (the only model made by scaffold) and similarly one more app. Each one of it is separate, as you all know, are independent.

I suspect it is your _browser_ showing the cached copies rather than the server.

Today , when i created a new application and i started the browser, it kept on pulling up pages from the cache and didn't show me the views for the new app. A point to note that the server log is blank, nothing gets executed as per the server.

The fact that the log is empty suggests that either the server is not working correctly at all or it is not receiving any requests. Again are you sure it is not the browser that is showing from its cache?

P.S. These are not three controlles, rather three whole rails apps....and my environment is Development, so no point of production cache. Help me fix these issues.

Have you checked that the browser is not set to work offline? In Firefox that is File > Work Offline.

I posted the above question @stackoverflow.com http://stackoverflow.com/questions/4368668/server-problems

Didn't get an answer, why it was happening so? A day later, it all went fine by itself.

So, I edited my question appending

" I don't know how, but all the issues are fixed now, on their own. Does any one has any idea what led to this? "

Now, I am having the problems again:

" Initially atleast It was showing me some cached html (or whatever) of the previous apps from nowhere, but now, its not working at all...i mean rendering nothing at all. Any idea, where the problems might be??? "

When you say rendering nothing at all, what do you see in the browser and what is in the log. What do you see if you view the page source in the browser and what url are you entering in the browser? Timeout? Blank page or what? (View > Page Source or similar in browser to show the page html).

Post the output shown when you start the server.

Colin

My question might be very basic, so please bear with it.

Q.1 suppose i created my rails app as APP1 under the directory /abc/

xyz and then I copy the entire directory to a different location, say /

cde/efg/. Now, if i go in the new location and call the rails server

command, will it work?

I guess it should, never had such an issue but today all of a sudden,

the server doesn’t even show a single home page.

P.S. I am not using RVM, and using Rails 3, so the ruby and gemset is

same over both the rails apps.

Q.2 What should one do when the server is showing cached copies of the

previous apps. for example lets say i have app1 : posts(the only model

made by scaffold), app2 : users (the only model made by scaffold) and

similarly one more app. Each one of it is separate, as you all know,

are independent.

I suspect it is your browser showing the cached copies rather than the server.

Today , when i created a new application and i started the browser, it

kept on pulling up pages from the cache and didn’t show me the views

for the new app. A point to note that the server log is blank, nothing

gets executed as per the server.

The fact that the log is empty suggests that either the server is not

working correctly at all or it is not receiving any requests. Again

are you sure it is not the browser that is showing from its cache?

P.S. These are not three controlles, rather three whole rails

apps…and my environment is Development, so no point of production

cache.

Help me fix these issues.

Have you checked that the browser is not set to work offline? In

Firefox that is File > Work Offline.

Oh god and a good point as far as caching. I don’t like this feature on Firefox… actually on most apps I dont like them making that kind of decision for me, reminds me of Windows. Does anyone know of a way to disable this on FF?

David Kahn wrote in post #967678:

I think the point is that sometimes if there is a connection problem FF will switch itself into offline mode without any very obvious indication of what is going on.

@OP, was it operating in offline mode? Have you still got a problem or was that all there was to it?

Colin