我们的生产EPrints(3.3.15)实例最近失败了。
关于EPrints配置或Apache配置没有任何改变,但是在周日Apache error.log文件中出现了一些错误:
------------------------------------------------------------------
---------------- EPrints System Error ----------------------------
------------------------------------------------------------------
Can't read cfg.d config files from /opt/eprints3/archives/test/cfg/cfg.d: No such file or directory
------------------------------------------------------------------
EPrints System Error inducing stack dump
at /opt/eprints3/perl_lib/EPrints.pm line 145
EPrints::abort() called at /opt/eprints3/perl_lib/EPrints/Config.pm line 252
EPrints::Config::load_repository_config_module('test') called at /opt/eprints3/perl_lib/EPrints/Repository.pm line 447
EPrints::Repository::load_config('EPrints::Repository=HASH(0x7fe00c0d1688)') called at /opt/eprints3/perl_lib/EPrints/Repository.pm line 153
EPrints::Repository::new('EPrints::Repository', 'test', 'db_connect', 0) called at /opt/eprints3/perl_lib/EPrints.pm line 491
EPrints::repository('EPrints=HASH(0x7fe00ce7b428)', 'test', 'db_connect', 0) called at /opt/eprints3/perl_lib/EPrints.pm line 581
EPrints::load_repositories('EPrints=HASH(0x7fe00ce7b428)') called at /opt/eprints3/perl_lib/EPrints.pm line 397
EPrints::post_config_handler('APR::Pool=SCALAR(0x7fe00c829928)', 'APR::Pool=SCALAR(0x7fe00c8297c0)', 'APR::Pool=SCALAR(0x7fe00c829880)', 'Apache2::ServerRec=SCALAR(0x7fe00c8297f0)') called at -e line 0
eval {...} called at -e line 0
[Sun Sep 17 06:25:16 2017] [notice] Apache/2.2.16 (Debian) mod_auth_kerb/5.4 mod_ssl/2.2.16 OpenSSL/0.9.8o Phusion_Passenger/3.0.12 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
(然后有几百个这样的错误)
------------------------------------------------------------------
---------------- EPrints System Error ----------------------------
------------------------------------------------------------------
'ast' is not a valid repository identifier:
PerlSetVar EPrints_ArchiveID ast
------------------------------------------------------------------
EPrints System Error inducing stack dump
at /opt/eprints3/perl_lib/EPrints.pm line 145
EPrints::abort('EPrints') called at /opt/eprints3/perl_lib/EPrints/Apache/Rewrite.pm line 62
EPrints::Apache::Rewrite::handler('Apache2::RequestRec=SCALAR(0x7fe00c8297c0)') called at -e line 0
eval {...} called at -e line 0
[Sun Sep 17 06:25:32 2017] [error] [client 46.229.168.67] File does not exist: (null)
我不知道发生了什么。我发现第一个错误与尝试加载test
存档的配置有关,我感到很奇怪,该存档也存在于我们的ast
存档旁边。此后,它无法识别我们的ast
存档。
答案 0 :(得分:0)
问题是有一个空的测试'我们' ast'旁边的文件夹存档。删除此文件夹修复了该问题。这种行为现在才开始的原因仍然有点神秘。