- 论坛徽章:
- 0
|
我在ubuntu上搭建环境,报错。
Error 500
runtime error
Warning caught during route execution: Use of uninitialized value in concatenation (.) or string at /usr/local/share/perl/5.10.0/Dancer/Session/Storable.pm line 59.
/usr/local/share/perl/5.10.0/Dancer/Session/Storable.pm around line 59
56
57 sub session_file {
58 my ($id) = @_;
59 return path(
60 setting('session_dir'),
61 setting('session_name') . "_$id.stor"
62 );
Stack
main in app.pl l. 125
Dancer in /usr/local/share/perl/5.10.0/Dancer.pm l. 331
Dancer::Handler in /usr/local/share/perl/5.10.0/Dancer/Handler.pm l. 171
Dancer::Handler::Standalone in /usr/local/share/perl/5.10.0/Dancer/Handler/Standalone.pm l. 41
HTTP::Server::Simple in /usr/local/share/perl/5.10.0/HTTP/Server/Simple.pm l. 271
HTTP::Server::Simple in /usr/local/share/perl/5.10.0/HTTP/Server/Simple.pm l. 307
HTTP::Server::Simple in /usr/local/share/perl/5.10.0/HTTP/Server/Simple.pm l. 402
HTTP::Server::Simple: SGI in /usr/local/share/perl/5.10.0/HTTP/Server/Simple/PSGI.pm l. 103
HTTP::Server::Simple: SGI in /usr/local/share/perl/5.10.0/HTTP/Server/Simple/PSGI.pm l. 103
Dancer::Handler in /usr/local/share/perl/5.10.0/Dancer/Handler.pm l. 95
Dancer::Handler in /usr/local/share/perl/5.10.0/Dancer/Handler.pm l. 71
Dancer::Handler in /usr/local/share/perl/5.10.0/Dancer/Handler.pm l. 72
Dancer::Renderer in /usr/local/share/perl/5.10.0/Dancer/Renderer.pm l. 23
Dancer::Renderer in /usr/local/share/perl/5.10.0/Dancer/Renderer.pm l. 120
Dancer::Route in /usr/local/share/perl/5.10.0/Dancer/Route.pm l. 155
Dancer::Route in /usr/local/share/perl/5.10.0/Dancer/Route.pm l. 225
Dancer::Object in /usr/local/share/perl/5.10.0/Dancer/Object.pm l. 15
Dancer::Error in /usr/local/share/perl/5.10.0/Dancer/Error.pm l. 29
Dancer::Error in /usr/local/share/perl/5.10.0/Dancer/Error.pm l. 223
Settings
{
engines => {},
plugins => {
Database => {
password => 'Hidden (looks potentially sensitive)',
dsn => 'dbi:SQLite:dbname=test.db',
dbi_params => {
AutoCommit => '1',
RaiseError => '1'
},
username => ''
}
},
import_warnings => 1,
appname => 'MyDancer',
views => '/home/zoomi/MyDancer/views',
layout => 'main.tt',
session => 'Storable',
confdir => '/home/zoomi/MyDancer',
public => '/home/zoomi/MyDancer/public',
show_errors => '1',
session_dir => '/home/zoomi/MyDancer/sessions',
server => '0.0.0.0',
log => 'core',
daemon => 0,
logger => 'console',
warnings => '1',
template => 'template_toolkit',
access_log => 1,
traces => 0,
charset => '',
appdir => '/home/zoomi/MyDancer',
handlers => {},
port => '3000',
environment => 'development',
content_type => 'text/html',
apphandler => 'Standalone',
auto_reload => '0'
}
Note: Values of 1 sensitive-looking keys hidden
Session
{
id => '443435309633286072277630253886202695'
}
Environment
{
SCRIPT_NAME => '',
SERVER_NAME => '0.0.0.0',
'psgi.multiprocess' => 0,
HTTP_ACCEPT_ENCODING => 'gzip,deflate',
PATH_INFO => '/',
HTTP_CONNECTION => 'keep-alive',
CONTENT_LENGTH => undef,
REQUEST_METHOD => 'GET',
HTTP_ACCEPT => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'psgi.multithread' => 0,
HTTP_ACCEPT_CHARSET => 'GB2312,utf-8;q=0.7,*;q=0.7',
QUERY_STRING => '',
HTTP_USER_AGENT => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16',
SERVER_PORT => '3000',
HTTP_COOKIE => undef,
HTTP_ACCEPT_LANGUAGE => 'zh-cn,zh;q=0.5',
REMOTE_ADDR => '10.60.10.44',
CONTENT_TYPE => undef,
HTTP_KEEP_ALIVE => '115',
SERVER_PROTOCOL => 'HTTP/1.1',
'psgi.streaming' => 1,
'psgi.errors' => *::STDERR,
REQUEST_URI => '/',
'psgi.version' => [
1,
1
],
'psgi.nonblocking' => 0,
'psgix.io' => bless( \*Symbol::GEN16, 'FileHandle' ),
'psgi.url_scheme' => 'http',
'psgi.run_once' => 0,
HTTP_HOST => '10.60.30.24:3000',
'psgi.input' => $VAR1->{'psgix.io'}
}
Powered by Dancer 1.3020 |
|