Hi.
Other than not being able to figure out why gots still can't send mail, our installation has worked pretty well. But now, one of our librarians is suddenly getting a server error in the browser when she tries to edit an existing guide. The edit feature used to work just fine. In fact, it works now, it just throws an error even though the data changes are being saved. The server logs show:
[Tue Jan 13 13:12:49 2015] [error] [client IP_hidden] PHP Warning: file_put_contents(/var/www/guide_on_the_side/app/tmp/logs/error.log) [
http://php.net/function.file-put-contents]: failed to open stream: Permission denied in /var/www/guide_on_the_side/lib/Cake/Log/Engine/FileLog.php on line 144, referer:
http://www.lib.siu.edu/guide_on_the_side/tutorials/edit_content/17My first attempt was to give universal access to debug.log and error.log and try the changes again. I looked in debug.log afterwards. The only entries in debug.log (there are many) are all variants of this:
2015-01-13 13:39:07 Notice: Notice (8): Undefined index: Role in [/var/www/guide_on_the_side/app/Controller/AppController.php, line 39]
Trace:
AppController::beforeFilter() - APP/Controller/AppController.php, line 39
TutorialsController::beforeFilter() - APP/Controller/TutorialsController.php, line 25
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 674
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 184
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 98
The last entry in error.log is:
2015-01-13 13:35:50 Error: [Zend_Search_Lucene_Exception] fopen(/var/www/guide_on_the_side/app/tmp/lucene/_rx.fdx) [
http://php.net/function.fopen]: failed to open stream: Permission denied
Request URL: /guide_on_the_side/tutorials/edit_content/17
Stack Trace:
#0 /var/www/guide_on_the_side/app/Vendor/Zend/Search/Lucene/Storage/Directory/Filesystem.php(184): Zend_Search_Lucene_Storage_File_Filesystem->__construct('/var/www/guide_...', 'w+b')
#1 /var/www/guide_on_the_side/app/Vendor/Zend/Search/Lucene/Index/SegmentWriter.php(229): Zend_Search_Lucene_Storage_Directory_Filesystem->createFile('_rx.fdx')
#2 /var/www/guide_on_the_side/app/Vendor/Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php(180): Zend_Search_Lucene_Index_SegmentWriter->addStoredFields(Array)
#3 /var/www/guide_on_the_side/app/Vendor/Zend/Search/Lucene/Index/Writer.php(244): Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter->addDocument(Object(Zend_Search_Lucene_Document))
#4 /var/www/guide_on_the_side/app/Vendor/Zend/Search/Lucene.php(1410): Zend_Search_Lucene_Index_Writer->addDocument(Object(Zend_Search_Lucene_Document))
#5 /var/www/guide_on_the_side/app/Vendor/Zend/Search/Lucene/Proxy.php(500): Zend_Search_Lucene->addDocument(Object(Zend_Search_Lucene_Document))
#6 /var/www/guide_on_the_side/app/Plugin/LuceneSource/Model/Datasource/ZendSearchLuceneSource.php(95): Zend_Search_Lucene_Proxy->addDocument(Object(Zend_Search_Lucene_Document))
#7 /var/www/guide_on_the_side/lib/Cake/Model/Model.php(1827): ZendSearchLuceneSource->create(Object(SearchIndex), Array, Array)
#8 /var/www/guide_on_the_side/app/Model/Tutorial.php(552): Model->save(Array)
#9 [internal function]: Tutorial->afterSave(false, Array)
#10 /var/www/guide_on_the_side/lib/Cake/Event/CakeEventManager.php(246): call_user_func_array(Array, Array)
#11 /var/www/guide_on_the_side/lib/Cake/Model/Model.php(1856): CakeEventManager->dispatch(Object(CakeEvent))
#12 /var/www/guide_on_the_side/app/Controller/TutorialsController.php(618): Model->save(Array)
#13 [internal function]: TutorialsController->edit_content('17')
#14 /var/www/guide_on_the_side/lib/Cake/Controller/Controller.php(490): ReflectionMethod->invokeArgs(Object(TutorialsController), Array)
#15 /var/www/guide_on_the_side/lib/Cake/Routing/Dispatcher.php(187): Controller->invokeAction(Object(CakeRequest))
#16 /var/www/guide_on_the_side/lib/Cake/Routing/Dispatcher.php(162): Dispatcher->_invoke(Object(TutorialsController), Object(CakeRequest), Object(CakeResponse))
#17 /var/www/guide_on_the_side/app/webroot/index.php(98): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#18 {main}
Server configs have not changed, file permissions are the same as they
were when it worked, and server has no disk space or other operational
issues that I know of.
Any ideas on things I should check? Happy to send any logs or configs which will help!
Since I'm posting anyway, I may as well repost a snippet of our config.yml - re: no email being sent (even though other server apps send mail just fine)
application_title: Guide on the Side
theme: GuideOnTheSide
database:
datasource: Database/Mysql
host: localhost
login: gotsuser
password: removedforposting
database: guide_on_the_side
email:
send_from:
dsim...@spam.lib.siu.edusend_all_feedback_to:
dsim...@spam.lib.siu.eduThanks for any help offered,
Doug Simmons
Morris Library Systems
SIUC