Difference between revisions of "Can't open GUI"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 19: Line 19:


  apt-get install libopenssl-ruby
  apt-get install libopenssl-ruby
/etc/init.d/apache2 restart


----
----

Revision as of 14:31, 21 December 2007

Troubleshooting

  • Check for error msg when trying to open GUI
  • Check GUI log just after window fails to open.



Error

Forbidden You don't have permission to access /mor/ on this server.

Possible reason: Apache is misconfigured and does not describe MOR page.

Solution not described yet...


LoadError (Expected /home/mor/app/controllers/callc_controller.rb to define CallcController)

apt-get install libopenssl-ruby
/etc/init.d/apache2 restart

LoadError (Expected /home/mor/app/controllers/stats_controller.rb to define StatsController)

Execute:

gem install pdf-writer -y --no-rdoc --no-ri 

rrno::EACCES (Permission denied - /tmp/mor_debug.txt)

Login to bash and execute:

chmod 777 tmp



NoMethodError (undefined method `in_place_edit_for' for CallcController:Class)

The problem is that overnight Rails 2.0 was released. That ruined MOR running properly.

To fix this you need to execute:

gem install rails -v=1.2.6

then go to /home/mor/config/environment.rb

and add line:

RAILS_GEM_VERSION = '1.2.6'

save and restart apache – it should work.

MOR code will be fixed to be Rails 2.0 compatible.



FCGI info is shown in text format

If you see something like this:

#!/usr/bin/ruby
#
# You may specify the path to the FastCGI crash log (a log of unhandled
# exceptions which forced the FastCGI instance to exit, great for debugging)
# and the number of requests to process before running garbage collection.
#
# By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
# and the GC period is nil (turned off).  A reasonable number of requests
# could range from 10-100 depending on the memory footprint of your app.
#
# Example:
#   # Default log path, normal GC behavior.
#   RailsFCGIHandler.process!
#
#   # Default log path, 50 requests between GC.
#   RailsFCGIHandler.process! nil, 50
#
#   # Custom log path, normal GC behavior.
#   RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
#
require File.dirname(__FILE__) + "/../config/environment"
require 'fcgi_handler'
RailsFCGIHandler.process!

That means mod_fcgid is not installed for Apache.

Install mod_fcgid



Errno::EACCES (Permission denied - /tmp/mor_cf_xxxx or /var/spool/asterisk/outgoing/mor_cf_xxxx)

Bad permissions on /var/spool/asterisk/outgoing/

Fix:

chmod 777 /var/spool/asterisk/outgoing

Error sending email or when user registers

Can't send email


ActiveRecord::RecordNotFound (Couldn't find User with ID=0)

Execute to DB:

UPDATE users SET id = 0 WHERE username = 'admin';



Interlaced PNG images are not currently supported

This happens when generating PDF Invoice. Make sure your PNG image is not interlaced and does not have transparency. Also you can save your logo as JPG.




No route matches "/" with {:method=>:get}

Reason: MOR GUI files are not copied to /home/mor

Solution:

cp -r /usr/src/mor/gui/* /home/mor/