Problem with Instiki and Windows

D

Daniel Berger

Hi all,

Ruby 1.8.2-7a
Instiki 0.9.1
Windows XP Pro

I tried running Instiki on my Windows XP box. It seemed to start
fine, but as soon as I try to fire up a web browser and view
"http://localhost:2500", I get a bunch of spewage:

C:\ruby\src\instiki-0.9.1>ruby instiki.rb
[2004-08-13 08:52:48] INFO WEBrick 1.3.1
[2004-08-13 08:52:48] INFO ruby 1.8.2 (2004-07-29) [i386-mswin32]
[2004-08-13 08:52:48] INFO Your WEBrick server is now running on
http://localho
st:2500
[2004-08-13 08:52:48] INFO WEBrick::HTTPServer#start: pid=1888
port=2500
[2004-08-13 08:53:02] INFO Performing index
[2004-08-13 08:53:02] INFO Parameters: {}
[2004-08-13 08:53:02] INFO Cookies:
[2004-08-13 08:53:02] ERROR Errno::ENOENT: No such file or directory -
C:/ruby/s
rc/instiki-0.9.1/storage/2500
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:327:in
`mkdir'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:327:in
`ensure_directory_exists'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:322:in
`initialize'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:43:in
`new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:43:in
`new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine/automatic
..rb:159:in `initialize'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:52:in `new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:52:in `initialize'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:24:in `new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:24:in `instance'
C:/ruby/src/instiki-0.9.1/app/controllers/wiki.rb:291:in
`wiki'
C:/ruby/src/instiki-0.9.1/app/controllers/wiki.rb:10:in
`index'
C:/ruby/src/instiki-0.9.1/libraries/action_controller_servlet.rb:126:in
`send'
C:/ruby/src/instiki-0.9.1/libraries/action_controller_servlet.rb:126:in
`perform_action'
C:/ruby/src/instiki-0.9.1/libraries/action_controller_servlet.rb:32:in
`
do_GET'
c:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`__send__'
c:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:92:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:54:in `run'
c:/ruby/lib/ruby/1.8/webrick/server.rb:150:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/ruby/src/instiki-0.9.1/libraries/web_controller_server.rb:79:in
`star
t_server'
C:/ruby/src/instiki-0.9.1/libraries/web_controller_server.rb:22:in
`init
ialize'
instiki.rb:58:in `new'
instiki.rb:58
127.0.0.1 - - [13/Aug/2004:08:53:02 Mountain Daylight Time] "GET /
HTTP/1.1" 500
346
- -> /

From the web page:

Internal Server Error
No such file or directory - C:/ruby/src/instiki-0.9.1/storage/2500
WEBrick/1.3.1 (Ruby/1.8.2/2004-07-29) at localhost:2500

Any ideas?

Regards,

Dan

PS - No offense, but I hate using a wiki to post bug reports, so
that's why I'm posting here.
 
A

Ara.T.Howard

On Fri, 13 Aug 2004, Daniel Berger wrote:

you have to manually create the

storage/2500

or

storage\2500

directories under your install, so looks like you need to make

C:/ruby/src/instiki-0.9.1/storage/
C:/ruby/src/instiki-0.9.1/storage/2500/


this same bug exists on linux...

cheers.

-a
Hi all,

Ruby 1.8.2-7a
Instiki 0.9.1
Windows XP Pro

I tried running Instiki on my Windows XP box. It seemed to start
fine, but as soon as I try to fire up a web browser and view
"http://localhost:2500", I get a bunch of spewage:

C:\ruby\src\instiki-0.9.1>ruby instiki.rb
[2004-08-13 08:52:48] INFO WEBrick 1.3.1
[2004-08-13 08:52:48] INFO ruby 1.8.2 (2004-07-29) [i386-mswin32]
[2004-08-13 08:52:48] INFO Your WEBrick server is now running on
http://localho
st:2500
[2004-08-13 08:52:48] INFO WEBrick::HTTPServer#start: pid=1888
port=2500
[2004-08-13 08:53:02] INFO Performing index
[2004-08-13 08:53:02] INFO Parameters: {}
[2004-08-13 08:53:02] INFO Cookies:
[2004-08-13 08:53:02] ERROR Errno::ENOENT: No such file or directory -
C:/ruby/s
rc/instiki-0.9.1/storage/2500
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:327:in
`mkdir'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:327:in
`ensure_directory_exists'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:322:in
`initialize'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:43:in
`new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:43:in
`new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine/automatic
.rb:159:in `initialize'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:52:in `new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:52:in `initialize'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:24:in `new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:24:in `instance'
C:/ruby/src/instiki-0.9.1/app/controllers/wiki.rb:291:in
`wiki'
C:/ruby/src/instiki-0.9.1/app/controllers/wiki.rb:10:in
`index'
C:/ruby/src/instiki-0.9.1/libraries/action_controller_servlet.rb:126:in
`send'
C:/ruby/src/instiki-0.9.1/libraries/action_controller_servlet.rb:126:in
`perform_action'
C:/ruby/src/instiki-0.9.1/libraries/action_controller_servlet.rb:32:in
`
do_GET'
c:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`__send__'
c:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:92:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:54:in `run'
c:/ruby/lib/ruby/1.8/webrick/server.rb:150:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/ruby/src/instiki-0.9.1/libraries/web_controller_server.rb:79:in
`star
t_server'
C:/ruby/src/instiki-0.9.1/libraries/web_controller_server.rb:22:in
`init
ialize'
instiki.rb:58:in `new'
instiki.rb:58
127.0.0.1 - - [13/Aug/2004:08:53:02 Mountain Daylight Time] "GET /
HTTP/1.1" 500
346
- -> /

From the web page:

Internal Server Error
No such file or directory - C:/ruby/src/instiki-0.9.1/storage/2500
WEBrick/1.3.1 (Ruby/1.8.2/2004-07-29) at localhost:2500

Any ideas?

Regards,

Dan

PS - No offense, but I hate using a wiki to post bug reports, so
that's why I'm posting here.

-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it.
| --Dogen
===============================================================================
 
M

Mikael Brockman

Hi all,

Ruby 1.8.2-7a
Instiki 0.9.1
Windows XP Pro

I tried running Instiki on my Windows XP box. It seemed to start
fine, but as soon as I try to fire up a web browser and view
"http://localhost:2500", I get a bunch of spewage:

C:\ruby\src\instiki-0.9.1>ruby instiki.rb
[2004-08-13 08:52:48] INFO WEBrick 1.3.1
[2004-08-13 08:52:48] INFO ruby 1.8.2 (2004-07-29) [i386-mswin32]
[2004-08-13 08:52:48] INFO Your WEBrick server is now running on
http://localho
st:2500
[2004-08-13 08:52:48] INFO WEBrick::HTTPServer#start: pid=1888
port=2500
[2004-08-13 08:53:02] INFO Performing index
[2004-08-13 08:53:02] INFO Parameters: {}
[2004-08-13 08:53:02] INFO Cookies:
[2004-08-13 08:53:02] ERROR Errno::ENOENT: No such file or directory -
C:/ruby/s
rc/instiki-0.9.1/storage/2500
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:327:in
`mkdir'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:327:in
`ensure_directory_exists'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:322:in
`initialize'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:43:in
`new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine.rb:43:in
`new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine/automatic
..rb:159:in `initialize'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:52:in `new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:52:in `initialize'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:24:in `new'
C:/ruby/src/instiki-0.9.1/app/models/../../libraries/madeleine_service.r
b:24:in `instance'
C:/ruby/src/instiki-0.9.1/app/controllers/wiki.rb:291:in
`wiki'
C:/ruby/src/instiki-0.9.1/app/controllers/wiki.rb:10:in
`index'
C:/ruby/src/instiki-0.9.1/libraries/action_controller_servlet.rb:126:in
`send'
C:/ruby/src/instiki-0.9.1/libraries/action_controller_servlet.rb:126:in
`perform_action'
C:/ruby/src/instiki-0.9.1/libraries/action_controller_servlet.rb:32:in
`
do_GET'
c:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`__send__'
c:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:92:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:54:in `run'
c:/ruby/lib/ruby/1.8/webrick/server.rb:150:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
C:/ruby/src/instiki-0.9.1/libraries/web_controller_server.rb:79:in
`star
t_server'
C:/ruby/src/instiki-0.9.1/libraries/web_controller_server.rb:22:in
`init
ialize'
instiki.rb:58:in `new'
instiki.rb:58
127.0.0.1 - - [13/Aug/2004:08:53:02 Mountain Daylight Time] "GET /
HTTP/1.1" 500
346
- -> /

From the web page:

Internal Server Error
No such file or directory - C:/ruby/src/instiki-0.9.1/storage/2500
WEBrick/1.3.1 (Ruby/1.8.2/2004-07-29) at localhost:2500

Any ideas?

I had the same problem on Linux. If I recall correctly, I fixed it by
just creating the storage directory.

mikael
 
M

Mauricio Fernández

--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi all,

Ruby 1.8.2-7a
Instiki 0.9.1
Windows XP Pro

I tried running Instiki on my Windows XP box. It seemed to start
fine, but as soon as I try to fire up a web browser and view
"http://localhost:2500", I get a bunch of spewage:

This is a known bug in instiki 0.9.1: it fails to create the storage
repository. There was some other common bug IIRC (not sure) but I can't
remember which one it was :p

Please find attached an extract of the patch I applied for the RPA
package; maybe you can adapt it (there's a couple RPA specific things
there, but should be easy to spot).

You might also want to try to
rpa install instiki
directly; that will install madeleine, bluecloth, redcloth and rubyzip
automatically. Last time I tried it on win32 (XP) it worked fine.
[If you haven't got rpa-base installed, it might not be worth it, but
it's available at http://rpa-base.rubyforge.org just in case]

PS - No offense, but I hate using a wiki to post bug reports, so
that's why I'm posting here.

There were some talks in #rubyonrails about creating a bug tracker in
rails. Instiki's site might provide that too in the future :)

--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com


--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch

diff -ru -x svn instiki-0.9.1.orig/app/controllers/wiki.rb instiki-0.9.1/app/controllers/wiki.rb
--- instiki-0.9.1.orig/app/controllers/wiki.rb 2004-08-13 17:40:55.000000000 +0200
+++ instiki-0.9.1/app/controllers/wiki.rb 2004-07-27 19:17:15.000000000 +0200
@@ -2,7 +2,9 @@
require "redcloth_for_tex"

class WikiController < ActionControllerServlet
- EXPORT_DIRECTORY = File.dirname(__FILE__) + "/../../storage/" unless const_defined?("EXPORT_DIRECTORY")
+ if defined? $EXPORT_DIRECTORY
+ EXPORT_DIRECTORY = $EXPORT_DIRECTORY
+ end

def index
if web_address
@@ -387,4 +389,4 @@
$stderr << "#{@req.meta_vars['HTTP_X_FORWARDED_FOR']} || #{@req.meta_vars['REMOTE_ADDR']}"
@req.meta_vars["HTTP_X_FORWARDED_FOR"] || @req.meta_vars["REMOTE_ADDR"]
end
-end
\ No newline at end of file
+end
diff -ru -x svn instiki-0.9.1.orig/instiki.rb instiki-0.9.1/instiki.rb
--- instiki-0.9.1.orig/instiki.rb 2004-08-13 17:40:55.000000000 +0200
+++ instiki-0.9.1/instiki.rb 2004-07-27 19:17:15.000000000 +0200
@@ -6,9 +6,12 @@
end

require 'optparse'
+require 'rpa/defaults'
+require 'rpa'
+RPA.version = "0.0"

-cdir = File.expand_path(File.dirname(__FILE__))
-%w( /libraries/ /app/models /app/controllers ).each { |dir| $:.unshift(cdir + dir) }
+cdir = File.join(RPA::Defaults::pREFIX, RPA::Defaults::SITELIBDIR, "instiki")
+%w( /libraries/ /app/models /app/controllers ).each { |dir| $:.unshift File.join(cdir, dir) }
%w( web_controller_server action_controller_servlet wiki_service wiki ).each { |lib| require lib }

fork_available = true
@@ -23,10 +26,11 @@
OPTIONS = {
:server_type => fork_available ? Daemon : SimpleServer,
:port => 2500,
- :storage => "#{cdir}/storage",
+ :storage => "instiki/storage",
:pdflatex => pdflatex_available
}

+
ARGV.options do |opts|
script_name = File.basename($0)
opts.banner = "Usage: ruby #{script_name} [options]"
@@ -41,7 +45,7 @@
) { OPTIONS[:server_type] = SimpleServer }
opts.on("-t", "--storage=storage", String,
"Makes Instiki use the specified directory for storage.",
- "Default: ./storage/[port]") { |OPTIONS[:storage]| }
+ "Default: #{OPTIONS[:storage]}") { |OPTIONS[:storage]| }

opts.separator ""

@@ -52,7 +56,11 @@
end

Socket.do_not_reverse_lookup = true
-WikiService.storage_path = OPTIONS[:storage] + "/" + OPTIONS[:port].to_s
+require 'fileutils'
+FileUtils.mkdir_p OPTIONS[:storage]
+WikiService.storage_path = File.join(Dir.pwd, OPTIONS[:storage],
+ OPTIONS[:port])
WikiController.template_root = "#{cdir}/app/views/"
+WikiController.const_set("EXPORT_DIRECTORY", File.join(Dir.pwd, OPTIONS[:storage]) + "/")

-WebControllerServer.new(OPTIONS[:port], OPTIONS[:server_type], "#{cdir}/app/controllers/")
\ No newline at end of file
+WebControllerServer.new(OPTIONS[:port], OPTIONS[:server_type], "#{cdir}/app/controllers/")

--mP3DRpeJDSE+ciuQ--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top