Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Dev

Linux::Inotify2 causing dev server with auto restart to fail

 

 

Catalyst dev RSS feed   Index | Next | Previous | View Threaded


m.hansen at nwwi

Apr 11, 2012, 7:12 AM

Post #1 of 2 (847 views)
Permalink
Linux::Inotify2 causing dev server with auto restart to fail

Hi folks,

I am busy developing an application with Catalyst. Everything has been
working fine until this morning. Suddenly I got the following error when
starting the development server:

Attribute (_inotify) does not pass the type constraint because:
Validation failed for 'Linux::Inotify2' with value undef at constructor
File::ChangeNotify::Watcher::Inotify::new (defined
at /usr/share/perl5/File/ChangeNotify/Watcher/Inotify.pm line 198) line
32

File::ChangeNotify::Watcher::Inotify::new('File::ChangeNotify::Watcher::Inotify', 'directories', '/home/mauritz/svn_sandbox/api/trunk2', 'follow_symlinks', 0, 'filter', 'Regexp=REGEXP(0x3cf3da8)', 'application_name', 'NWWI::API', 'background', 0, 'port', 3000, 'host', undef, 'pidfile', undef, 'fork', 0, 'argv', 'ARRAY(0x2c57d98)', ...) called at /usr/share/perl5/File/ChangeNotify.pm line 19
File::ChangeNotify::instantiate_watcher('File::ChangeNotify',
'directories', '/home/mauritz/svn_sandbox/api/trunk2',
'follow_symlinks', 0, 'filter', 'Regexp=REGEXP(0x3cf3da8)',
'application_name', 'NWWI::API', 'background', 0, 'port', 3000, 'host',
undef, 'pidfile', undef, 'fork', 0, 'argv', 'ARRAY(0x2c57d98)', ...)
called at /usr/local/share/perl/5.12.4/Catalyst/Restarter.pm line 83

Catalyst::Restarter::BUILD('Catalyst::Restarter::Forking=HASH(0x3cf3cb8)', 'HASH(0x3ceeba8)') called at constructor Catalyst::Restarter::Forking::new (defined at /usr/local/share/perl/5.12.4/Catalyst/Restarter/Forking.pm line 39) line 69
Catalyst::Restarter::Forking::new('Catalyst::Restarter::Forking',
'argv', 'ARRAY(0x2c57d98)', 'start_sub', 'CODE(0x33cd508)',
'follow_symlinks', 0, 'application_name', 'NWWI::API', 'host', undef,
'port', 3000, 'debug', undef, 'pidfile', undef, 'fork', 0, 'background',
0, ...) called at /usr/local/share/perl/5.12.4/Catalyst/Script/Server.pm
line 219

Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0x222f850)') called at /usr/local/share/perl/5.12.4/Catalyst/ScriptRunner.pm line 50
Catalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'NWWI::API',
'Server') called at script/nwwi_api_server.pl line 8


After a bit of experimenting I found that I could start the server by
leaving off the '-r' flag. I 'fixed' this problem by removing the
Linux::Inotify2 module - it was probably installed as an optional (I
hope) dependency of another module. Anyway, with the presence of this
module the '-r' flag does not seem to work.

I am using the following software:
Linux::Inotify2 version 1.2 (which I have now removed)
Perl 5.12.4
Catalyst 5.90010

Regards,

Mauritz Hansen

_______________________________________________
Catalyst-dev mailing list
Catalyst-dev [at] lists
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev


m.hansen at nwwi

Apr 11, 2012, 7:12 AM

Post #2 of 2 (769 views)
Permalink
Linux::Inotify2 causing dev server with auto restart to fail [In reply to]

Hi folks,

I am busy developing an application with Catalyst. Everything has been
working fine until this morning. Suddenly I got the following error when
starting the development server:

Attribute (_inotify) does not pass the type constraint because:
Validation failed for 'Linux::Inotify2' with value undef at constructor
File::ChangeNotify::Watcher::Inotify::new (defined
at /usr/share/perl5/File/ChangeNotify/Watcher/Inotify.pm line 198) line
32

File::ChangeNotify::Watcher::Inotify::new('File::ChangeNotify::Watcher::Inotify', 'directories', '/home/mauritz/svn_sandbox/api/trunk2', 'follow_symlinks', 0, 'filter', 'Regexp=REGEXP(0x3cf3da8)', 'application_name', 'NWWI::API', 'background', 0, 'port', 3000, 'host', undef, 'pidfile', undef, 'fork', 0, 'argv', 'ARRAY(0x2c57d98)', ...) called at /usr/share/perl5/File/ChangeNotify.pm line 19
File::ChangeNotify::instantiate_watcher('File::ChangeNotify',
'directories', '/home/mauritz/svn_sandbox/api/trunk2',
'follow_symlinks', 0, 'filter', 'Regexp=REGEXP(0x3cf3da8)',
'application_name', 'NWWI::API', 'background', 0, 'port', 3000, 'host',
undef, 'pidfile', undef, 'fork', 0, 'argv', 'ARRAY(0x2c57d98)', ...)
called at /usr/local/share/perl/5.12.4/Catalyst/Restarter.pm line 83

Catalyst::Restarter::BUILD('Catalyst::Restarter::Forking=HASH(0x3cf3cb8)', 'HASH(0x3ceeba8)') called at constructor Catalyst::Restarter::Forking::new (defined at /usr/local/share/perl/5.12.4/Catalyst/Restarter/Forking.pm line 39) line 69
Catalyst::Restarter::Forking::new('Catalyst::Restarter::Forking',
'argv', 'ARRAY(0x2c57d98)', 'start_sub', 'CODE(0x33cd508)',
'follow_symlinks', 0, 'application_name', 'NWWI::API', 'host', undef,
'port', 3000, 'debug', undef, 'pidfile', undef, 'fork', 0, 'background',
0, ...) called at /usr/local/share/perl/5.12.4/Catalyst/Script/Server.pm
line 219

Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0x222f850)') called at /usr/local/share/perl/5.12.4/Catalyst/ScriptRunner.pm line 50
Catalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'NWWI::API',
'Server') called at script/nwwi_api_server.pl line 8


After a bit of experimenting I found that I could start the server by
leaving off the '-r' flag. I 'fixed' this problem by removing the
Linux::Inotify2 module - it was probably installed as an optional (I
hope) dependency of another module. Anyway, with the presence of this
module the '-r' flag does not seem to work.

I am using the following software:
Linux::Inotify2 version 1.2 (which I have now removed)
Perl 5.12.4
Catalyst 5.90010

Regards,

Mauritz Hansen


_______________________________________________
Catalyst-dev mailing list
Catalyst-dev [at] lists
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev

Catalyst dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.