-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Initiate Suma Server following INSTALL.md #1
Comments
Thanks for trying out Suma. This kind of feedback to extremely helpful as we continue to try to improve the Suma install process. Have you copied this index.php file somewhere else in your web directory, or are you accessing
|
@cazzerson Wow what a quick response! Thank you! We would like to use this tool here at Northeastern University Libraries as well. Unfortunately I was just told this morning to put it on the back burner for the time being but thank you so much for your help. --Steven |
Working w/ bassetts to get Suma up and working here at NU libraries. By making the suggested change within index.php, "setBaseUrl('/sumaserver') // set the base url" The orginal error message went away. Only to be replace with a warning: Warning: require_once(models/SessionModel.php): failed to open stream: No such file or directory in /var/www/app/Suma/service/controllers/AdminController.php on line 4 |
Sorry, I missed another issue in the file included above. In this line:
(it should be line 7 or 8 of the service/web/index.php file), the string |
Made the recommended changes to index.php It got rid of "Warning: require_once(models/SessionModel.php): failed to open stream: No such file or directory in /var/www/app/Suma/service/controllers/AdminController.php on line 4" But ... Replaced it with "Warning: require_once(Zend/Loader.php): failed to open stream: No such file or directory in /var/www/app/Suma/service/web/index.php on line 11 " I checked my include statement in php.ini (shown below): The index.php now reflects your recommended changes: setControllerDirectory('/var/www/app/Suma/service/controllers') ->setBaseUrl('/sumaserver') // set the base url ->throwExceptions(true); // Go $front->dispatch(); |
OK, we're getting there. Could you look around in By the way, the version of index.php you pasted still has the default |
No change in the warning. There's only one file on the system named Loader.php. The path is as follows: [root@libdev /]# find -name Loader.php Also changed the SUMA_SERVER_PATH string on line 8 within my index.php file, the line now reads ... // Set paths Thank-you for your help. |
Thanks, this is helpful. It looks like there is an include_path issue for Zend. Looking at the include_path from your php.ini, the Zend path is included, but not the parent diretory. The Suma code assumes that
The second option would probably be the easiest way to test this, and then you could make the php.ini change if it works. |
Yes! We have login web page and upon logon can see a menu selection. But, another Zend error msg: Fatal error: Uncaught exception 'Zend_Exception' with message 'File "Zend/Db/Adapter/Pdo/Mysql.php" does not exist or class "Zend_Db_Adapter_Pdo_Mysql" was not found in the file' in /usr/share/php/Zend/Loader.php:87 Stack trace: #0 /usr/share/php/Zend/Db.php(263): Zend_Loader::loadClass('Zend_Db_Adapter...') #1 /var/www/app/Suma/service/config/Globals.php(30): Zend_Db::factory('Pdo_Mysql', Array) #2 /var/www/app/Suma/service/models/LocationModel.php(216): Globals::getDBConn() #3 /var/www/app/Suma/service/controllers/AdminController.php(272): LocationModel::getLocTreeRoots() #4 /usr/share/php/Zend/Controller/Action.php(516): AdminController->locationsAction() #5 /usr/share/php/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('locationsAction') #6 /usr/share/php/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #7 /var/www/app/Suma/service/web/index.php(26): Zend_Controller_Front->dispatch() in /usr/share/php/Zend/Loader.php on line 87 Did a search for Mysql.php. Not found anywhere on the machine. |
This is strange. Did you install this version of Zend Framework 1 recently? If you look at the ZF1 mirror, it should be there: https://github.com/breerly/zf1/tree/master/library/Zend/Db/Adapter/Pdo If you compare |
I did a YUM install for Zend Framework and it looks like I also need to install the php-ZendFramework-Db-Adapter-Pdo-Mysql package as well. |
Ah, that's good to know. I think in our next development cycle we will package Zend Framework with Suma. |
Getting close. I get the Suma Administrative Tools login page, which works. I get menu page but none the links work except for the "Direct JSON Import" link. That brings up 'Enter JSON in textarea below and click "Submit". ' All the other links bring a blank page. No errors, warnings, nothing. |
Oh, I installed the php-ZendFramework-Db-Adapter-Pdo-Mysql package and can find the Mysql.php file . |
Could you take a look at the Suma log file? If it doesn't exist, you'll need to point to a path that is writable by the web server in |
In the sumaserver.log: 2013-01-24T15:10:59-05:00 ERR (3): ADMIN fetch initiatives error: File "Zend/Db/Adapter/Pdo/Mysql.php" does not exist or class "Zend_Db_Adapter_Pdo_Mysql" was not found in the file Yet, when I do a find, it's there. [root@libdev Pdo]# ls -l Mysql.php |
It looks like that log line is from 3:10pm--is it possible that it was written before you added the PDO package? if you check the log again after trying to view one of the broken admin tools, are there any new entries? |
Good point. I've logged in several times since and there's only one entry. I just tried it again, still only one entry. |
I suspect that there may be a problem related to database access, since every admin view except the JSON input queries the database on load, but I'm having trouble recreating this exact problem (where no exceptions are displayed). I just sent you an email. |
Just a snippet from the mysqld.log file 130110 14:10:03 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure Not sure if this is related to the Suma installation. Recognize anything? |
In response to: After doing so, I get this when I click on the links: Fatal error: Cannot redeclare class Zend_Log_Filter_Abstract in /usr/share/php/Zend/Log/Filter/Abstract.php on line 38 On a different note. Your specs call for ZendFramework 1.11 I'm using version 1.12.1. Does this matter? Do you know ZendFramework 2 will work? Karl |
We're getting a different error msg: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'sumaproduser'@'localhost' for table 'location'' in /usr/share/php/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /usr/share/php/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /usr/share/php/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) #2 /usr/share/php/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array) #3 /usr/share/php/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array) #4 /usr/share/php/Zend/Db/Select.php(686): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select)) #5 /var/www/app/Suma/service/models/LocationModel.php(228): Zend_Db_Select->query() #6 /var/www/app/Suma/service/controllers/AdminController.php(272): LocationModel::getLocTreeRoots() #7 /usr/share/php/Zend/Controller/Action.php(513): AdminController->locationsAction() #8 /usr/share/php/Zend/Controller/Di in /usr/share/php/Zend/Db/Statement/Pdo.php on line 234 It hints at a database access issue. Going to try granting all rights to the database user and see what happens. |
Zend Framework 2 won't work, but 1.12.1. should be fine. Out offline communications indicate that this was fixed with a fresh Zend Framework install along with updated database permissions. |
Jason. We have Suma up and running, SumaServer, Suma Client, and the analytics! Thank-you to you and your team for the generous, expert help. We couldn't have done it without you. |
It's our pleasure. Keep us posted and, of course, all suggestions and pull requests are welcome. |
Add a couple of notes to the session.yaml docs
Trying to initiate a test install of the Suma project. We are getting an error every time we try to load the Suma server admin interface. Zend is unable to load the controller.
Error Message
Index.php File
/var/www/app/Suma/service/web/index.php
The text was updated successfully, but these errors were encountered: