Can't open GUI

From Kolmisoft Wiki
Revision as of 17:16, 21 February 2008 by Admin (talk | contribs)
Jump to navigationJump to search

Something went wrong.jpg

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)

Debian

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


Centos

In file /home/mor/controllers/callc_controller.rb

Comment line:

#require 'smtp_tls'

Restart Apache. If MOR GUI starts to work - that means your ruby does not support SMTP. Either ruby should be recompiled or appropriate package should be installed.


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/




uninitialized constant Gem::GemRunner

In file /usr/bin/gem add line:

require 'rubygems/gem_runner'


Errno::EXDEV (Invalid cross-device link)

/home/app/mor/controllers/functions_controller.rb

def create_call_file...

     #create file
     fout = File.open(tmp_file, "w")
     fout.puts cf
     fout.close
     #activate file
     File.rename(tmp_file, spool_file)

change to:

     #create file
     fout = File.open(spool_file, "w")
     fout.puts cf
     fout.close
     #activate file
     #File.rename(tmp_file, spool_file)

Restart Apache.



Folder content is shown

Disable SELinux

Also make sure apache configuration file describes mor folder and AllowOverwrite=All where necessary.




No such file or directory - /tmp/mysql.sock

Make symlink from original mysql.sock (found in /etc/mysql/my.cnf or /etc/my.cnf) to /tmp/mysql.sock

ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock





NoMethodError (undefined method `exchange_rate' for nil:NilClass)

Make sure you have all currencies for tariffs.

Example: if you have tariff in USD, but do not have USD in Currencies window - you will get this error. Create USD in Currencies window.




TypeError (PNG alpha channel transparency is not supported; only palette transparency is supported.)

Save your logo without transparency.




ActiveRecord::StatementInvalid (Mysql::Error: Got a packet bigger than 'max_allowed_packet' bytes:

In /etc/mysql/my.cnf enter bigger value for max_allowed_packet

Reference: http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html