<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hello,<br>
<br>
Also, i'm hunting. Stop me if i'm to wild :)<br>
<br>
That is not quite a nitro bug but could be annoying.<br>
<br>
A server is already using port 9000 and you planned to run nitro on the
port 9002 in the same time by modifying app.port = 9002 in debug.rb.
But the nitro web server failed to connect to the database (bad
password for example). You will get:<br>
<br>
<br>
$ ../nitro/bin/nitro <br>
&nbsp;INFO: Og uses the Mysql store.<br>
mysqladmin: connect to server at '' failed<br>
error: 'Access denied for user 'root'@'localhost' (using password: YES)'<br>
&nbsp;INFO: Dropped database 'aTest'<br>
ERROR: Access denied for user 'root'@'localhost' (using password: YES)<br>
&nbsp;INFO: Starting Webrick adapter on 0.0.0.0:9000<br>
&nbsp;INFO: Press Ctrl-C to shutdown; Run with --help for options.<br>
/usr/lib64/ruby/1.8/webrick/utils.rb:73:in `initialize': Address
already in use - bind(2) (Errno::EADDRINUSE)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib64/ruby/1.8/webrick/utils.rb:73:in `new'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib64/ruby/1.8/webrick/utils.rb:73:in
`create_listeners'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib64/ruby/1.8/webrick/utils.rb:70:in `each'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib64/ruby/1.8/webrick/utils.rb:70:in
`create_listeners'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib64/ruby/1.8/webrick/server.rb:75:in `listen'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib64/ruby/1.8/webrick/server.rb:63:in `initialize'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib64/ruby/1.8/webrick/httpserver.rb:24:in
`initialize'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../raw/lib/raw/adapter/webrick.rb:55:in
`new'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../raw/lib/raw/adapter/webrick.rb:55:in
`start'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../nitro/lib/nitro/application.rb:122:in
`start'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from app.rb:14<br>
<br>
<br>
The server won't use the port 9002 anymore but the default one (port
9000) instead.<br>
<br>
The other peculiar behavior is when you stop the server (port=9002)
with Ctrl-C, nitro restarts automatically with port=9000.<br>
<br>
$ ../nitro/bin/nitro <br>
&nbsp;INFO: Og uses the Mysql store.<br>
Database "aTest" dropped<br>
&nbsp;INFO: Dropped database 'aTest'<br>
&nbsp;INFO: Database 'aTest' not found!<br>
&nbsp;INFO: Created database 'aTest'<br>
DEBUG: Og manageable classes: [Menubar, Navigation]<br>
DEBUG: CREATE TABLE ognavigation (`oid` CHAR(22) PRIMARY KEY, `title`
text, `url` text, `position` integer)<br>
&nbsp;INFO: Created table 'ognavigation'.<br>
DEBUG: SELECT * FROM ognavigation LIMIT 1<br>
DEBUG: SELECT * FROM ognavigation LIMIT 1<br>
DEBUG: CREATE TABLE ogmenubar (`oid` CHAR(22) PRIMARY KEY, `title`
text, `url` text, `position` integer, `access_key` text, `hint` text)<br>
&nbsp;INFO: Created table 'ogmenubar'.<br>
DEBUG: SELECT * FROM ogmenubar LIMIT 1<br>
DEBUG: SELECT * FROM ogmenubar LIMIT 1<br>
DEBUG: SELECT * FROM ogmenubar ORDER BY position ASC<br>
&nbsp;INFO: Initializing Database<br>
DEBUG: INSERT INTO ogmenubar (`title`, `position`, `access_key`, `url`,
`hint`, `oid`) VALUES ('Accueil', 1, 'a', '/index', 'Page d\'accueil du
site', 'b-zWZKkJ8r3kvGabpumjG5')<br>
DEBUG: INSERT INTO ogmenubar (`title`, `position`, `access_key`, `url`,
`hint`, `oid`) VALUES ('Communaut&eacute;', 2, 'c', '/blog/index', 'Les amis
du penguin', 'b-F_2ukJ8r3kvGabpumjG5')<br>
DEBUG: INSERT INTO ogmenubar (`title`, `position`, `access_key`, `url`,
`hint`, `oid`) VALUES ('Magazine', 3, 'm', '/wiki/index', 'A la
d&eacute;couverte du penguin', 'b-Ghx4kJ8r3kvGabpumjG5')<br>
DEBUG: INSERT INTO ogmenubar (`title`, `position`, `access_key`, `url`,
`hint`, `oid`) VALUES ('Contact', 4, 'o', '/contact', 'Pour en savoir
plus sur nous', 'b-GoWokJ8r3kvGabpumjG5')<br>
&nbsp;INFO: Starting Webrick adapter on 0.0.0.0:9002<br>
&nbsp;INFO: Press Ctrl-C to shutdown; Run with --help for options.<br>
&nbsp;INFO: Stoping Webrick adapter.<br>
&nbsp;INFO: Og uses the Mysql store.<br>
Database "aTest" dropped<br>
&nbsp;INFO: Dropped database 'aTest'<br>
&nbsp;INFO: Database 'aTest' not found!<br>
&nbsp;INFO: Created database 'aTest'<br>
DEBUG: Og manageable classes: []<br>
DEBUG: SELECT * FROM ogmenubar ORDER BY position ASC<br>
ERROR: DB error Table 'aTest.ogmenubar' doesn't exist, [SELECT * FROM
ogmenubar ORDER BY position ASC]<br>
ERROR:
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../og/lib/og/adapter/mysql.rb:122:in
`query'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../og/lib/og/adapter/mysql.rb:122:in
`query_statement'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../og/lib/og/store/sql.rb:554:in
`query'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../og/lib/og/store/sql.rb:367:in
`find'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../og/lib/og/model.rb:316:in
`all'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../og/lib/og/manager.rb:118:in
`with_store'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../og/lib/og/model.rb:315:in
`all'<br>
./conf/debug.rb:34:in `init_og'<br>
./conf/debug.rb:19:in `setup_og'<br>
./conf/debug.rb:28:in `setup'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../nitro/lib/nitro/application.rb:152:in
`read_configuration_file'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../nitro/lib/nitro/application.rb:180:in
`configure'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../nitro/lib/nitro/application.rb:97:in
`start'<br>
/home/lilo/workspace/repo.nitroproject.org/script/lib/../../nitro/lib/nitro.rb:73:in
`start'<br>
app.rb:16<br>
&nbsp;INFO: Starting Webrick adapter on 0.0.0.0:9000<br>
&nbsp;INFO: Press Ctrl-C to shutdown; Run with --help for options.<br>
&nbsp;INFO: Stoping Webrick adapter.<br>
<br>
<br>
Jj</tt><br>
<div class="moz-signature">-- <br>
<div class="moz-signature">
<meta content="text/html;" http-equiv="Content-Type">
<pre class="moz-signature" cols="72">
            |\      _,,,---,,_
      ZZZzz /,`.-'`'    -.  ;-;;,_
           |,4-  ) )-,_. ,\ (  `'-'
          '---''(_/--'  `-'\_)

<big><font face="Comics">
</font></big></pre>
</div>
</div>
</body>
</html>