errors w/ remote viewing
Added by Richard Langly over 14 years ago
Till I get this running w/ apache, I'm back to using ...
ruby scripts/server webrick -e production
And I'm getting the following error. When I browse redmine from a remote machine, all I see is the text and no CSS, graphics, anything. It's just the text. But it seems to work fine when browsing from localhost. This use to work, I would use chromium on a mac. But now it doesn't, even with firefox on a mac from remotehost I get the following errors.
Here's the errors I get when viewing from a remote host.
Anyone have ideas?
192.168.1.12 - - [27/Mar/2010:19:27:59 CDT] "GET /javascripts/application.js?1260680107 HTTP/1.1" 500 346 Referer -> /javascripts/application.js?1260680107 [2010-03-27 19:27:59] ERROR NoMethodError: private method `gsub!' called for #<Class:0x7f2c9b769e30> /usr/lib64/ruby/1.8/webrick/htmlutils.rb:16:in `escape' /usr/lib64/ruby/1.8/webrick/httpresponse.rb:232:in `set_error' /home/rrl/.gem/ruby/1.8/gems/rails-2.1.2/lib/webrick_server.rb:103:in `handle_file' /home/rrl/.gem/ruby/1.8/gems/rails-2.1.2/lib/webrick_server.rb:75:in `service' /usr/lib64/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib64/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib64/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib64/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib64/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib64/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib64/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib64/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib64/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib64/ruby/1.8/webrick/server.rb:82:in `start' /home/rrl/.gem/ruby/1.8/gems/rails-2.1.2/lib/webrick_server.rb:62:in `dispatch' /home/rrl/.gem/ruby/1.8/gems/rails-2.1.2/lib/commands/servers/webrick.rb:66 /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/rrl/.gem/ruby/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' /home/rrl/.gem/ruby/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' /home/rrl/.gem/ruby/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' /home/rrl/.gem/ruby/1.8/gems/rails-2.1.2/lib/commands/server.rb:39 /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' script/server:3 192.168.1.12 - - [27/Mar/2010:19:27:59 CDT] "GET /stylesheets/jstoolbar.css?1260680107 HTTP/1.1" 500 346 Referer -> /stylesheets/jstoolbar.css?1260680107
Replies (13)
RE: errors w/ remote viewing
-
Added by Felix Schäfer over 14 years ago
I don't use the cgi interface, but I'd wager you didn't point your apache to the REDMINE/public
folder, or that the permissions of said directory are wrong.
RE: errors w/ remote viewing
-
Added by Stephen Womack over 14 years ago
Could this be a permissions issue?
RE: errors w/ remote viewing
-
Added by Richard Langly over 14 years ago
This wasn't with Apache. I used ...
ruby script/server webrick -e production
to get these errors.
RE: errors w/ remote viewing
-
Added by Stephen Womack over 14 years ago
So are you getting the stated issue above when running in webrick and apache, or just apache. If it is just apache have you looked at the apache error logs?
I am by far no expert with redmine. In fact, i am quit a newbie, but i find that when i hit a wall with redmine it is a good idea to go back and walk through the installation guide making sure i didnt skip a step. Sometimes i will just backup the database and file folder and "reinstall" it. I believe Felix may be right about it being a permissions issue.
Also what are you using to interface between apache and ruby CGI, Fastcgi, Mongrel, or Passanger?
Please give some more information about your setup for example ...
CentOS 5.4
MySQL 5.1.44
FastCGI
Ruby 1.8.6
Rails 2.3.5
Apache 2.2.3
RE: errors w/ remote viewing
-
Added by Ве Fio about 14 years ago
Okay, I have the same problems too. They happen when I start:
/usr/share/redmine# sudo -u www-data X_DEBIAN_SITEID="default" ruby script/server webrick --environment production --binding=0.0.0.0 --port 3081
(It's taken from Ubuntu Redmine package manual). They do NOT happen if I replace webrick with mongrel.
Also I noticed that when i RELOAD a page with «Shift» button, it loads fine. Without «Shift» it fails.
Finally, my info and two logs (I put them on pastebin because of size)
Good (Shift+Reload): http://pastebin.com/u7k0GyZq
Bad (just Reload) : http://pastebin.com/LFLE0eht
My specs:
Ubuntu server 9.10 i386
Linux localhost 2.6.31-302-ec2 #7-Ubuntu SMP Tue Oct 13 19:06:04 UTC 2009 i686 GNU/Linux
Package versions:
ruby 4.2
rails 2.2.3-1
mysql-server 5.1.37-1ubuntu5.1
libruby 4.2 (likely contains webrick)
RE: errors w/ remote viewing
-
Added by lone ranger about 14 years ago
I have the same problem, only that I am not using redmine remotely, I am using localhost.
I am running:
Ubuntu 10.04
MySQL Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
Server version: Apache/2.2.14 (Ubuntu)
The problem occurs, if there are cache entries in the browser. when i delete the cache, all is ok, the javascript and the css files are all loaded ok.
This for me throws out the permissions issue. More probably its an issue of sessions.
But still I am in the woods.
RE: errors w/ remote viewing
-
Added by lone ranger about 14 years ago
So i fixed, or do i say i circumnavigated the problem.
I was starting webrick server to power, but it seems its the one having the problem.
I switched to mongrel and it works fine
instead of issuing the command: ruby script/server webrick -e production I used ruby script/server mongrel -e production
I am interested in running redmine and not which server powers it, so this works for me.
All the best
RE: errors w/ remote viewing
-
Added by Lee Vanderbijl about 14 years ago
I've been having this problem too and am getting extremely frustrated trying to get redmine to work in ubuntu. Everything worked fine until I upgraded to 10.04 and now I get this problem. I've tried switching to using apache but none of the instructions seem to work (tried cgi and lib passenger to no avail).
Now trying mongrel I get the following error: path to log file not valid: log/mongrel.log
Any ideas?
RE: errors w/ remote viewing
-
Added by Felix Schäfer about 14 years ago
This seems more like a mongrel error, I'd say permissions problem or directory not existing or something like that. You might have more luck with the mongrel people or the mongrel packagers fromubuntu though.
RE: errors w/ remote viewing
-
Added by Felix Schäfer about 14 years ago
I also noticed that some of the aforementioned installations had old versions of rails, especially some that aren't compatible with vanilla redmine. If you have installed redmine from your distribution's package, please contact the maintainers of said package first in case of errors.
RE: errors w/ remote viewing
-
Added by lone ranger about 14 years ago
When I switched to mongrel, everything worked like a charm, i didnt get the funny errors. I have tried to look for the mongrel.log file on my machine but cant locate it.
As Felix says, it should be a permission thing. Check the logs and see which errors are there. You can also trace mongrel as it is starting up and see what it is doing.
I think this command should do:
strace -efile -f -o /tmp/mongrel.log {command to run redmine} start
Bru al the best.
RE: errors w/ remote viewing
-
Added by Lee Vanderbijl about 14 years ago
Ok, thanks solomon, I'll try that and get back.
By the way, this is definitely a permissions issue with ubuntu. I appears to be an issue with the session files that redmine creates in the tmp/sessions folder. The session files get created as rw for the owner only (and the owner is the user of the process running the server obv!). When I was running webrick, I deleted the sessions and lo and behold, everything worked until I restarted the server. For some reason, the server doesn't seem to ever delete those sessions on it's own.
For me, this broke when upgrading from 9.10 to 10.04.