Hi all, I checkout latest wnframework version, I tried to run "python cgi-bin/webnotes/install_lib/install.py mysql-root-user mysql-root-password database-name" but I ran into this error me…@metalbig-pad:/var/www/wnframework/wnframework/v170/cgi-bin$ python webnotes/install_lib/install.py root kakarot Framework
Traceback (most recent call last): File "webnotes/install_lib/install.py", line 119, in <module> from webnotes import defs File "webnotes/init.py", line 220, in <module>
setup_logging() File "webnotes/init.py", line 213, in setup_logging log_handler = logging.handlers.RotatingFileHandler(defs.log_file_name, maxBytes = defs.log_file_size, backupCount = defs.log_file_backup_count)
File "/usr/lib/python2.6/logging/handlers.py", line 112, in init BaseRotatingHandler.init(self, filename, mode, encoding, delay) File "/usr/lib/python2.6/logging/handlers.py", line 64, in init
logging.FileHandler.init(self, filename, mode, encoding, delay) File "/usr/lib/python2.6/logging/init.py", line 827, in init StreamHandler.init(self, self._open()) File "/usr/lib/python2.6/logging/init.py", line 846, in _open
stream = open(self.baseFilename, self.mode) IOError: [Errno 2] No such file or directory: '/var/www/wnframework/wnframework/v170/cgi-bin/logs/error_log.txt'
so what I did is I created a user, database, granted all privileges and import the Framework.sql.
When I tried to navigate into www-wnframework-path I get this refer screenshot-1.png error. when I login I get the this screen refer screenshot.png.
You can either comment out the logging in defs.py or you will have to give permissions to the logs folder to allow to create the log files.
- Rushabh
On Apr 17, 2011, at 8:09 AM, Ranjith Kumar wrote:
Hi all, I checkout latest wnframework version, I tried to run "python cgi-bin/webnotes/install_lib/install.py mysql-root-user mysql-root-password database-name" but I ran into this error me...@metalbig-pad:/var/www/wnframework/wnframework/v170/cgi-bin$ python webnotes/install_lib/install.py root kakarot Framework Traceback (most recent call last): File "webnotes/install_lib/install.py", line 119, in <module> from webnotes import defs File "webnotes/__init__.py", line 220, in <module> setup_logging() File "webnotes/__init__.py", line 213, in setup_logging log_handler = logging.handlers.RotatingFileHandler(defs.log_file_name, maxBytes = defs.log_file_size, backupCount = defs.log_file_backup_count) File "/usr/lib/python2.6/logging/handlers.py", line 112, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.6/logging/handlers.py", line 64, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.6/logging/__init__.py", line 827, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.6/logging/__init__.py", line 846, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 2] No such file or directory: '/var/www/wnframework/wnframework/v170/cgi-bin/logs/error_log.txt'
so what I did is I created a user, database, granted all privileges and import the Framework.sql.
When I tried to navigate into www-wnframework-path I get this refer screenshot-1.png error. when I login I get the this screen refer screenshot.png.
============================================== The man who is really serious, with the urge to find out what truth is, has no style at all. He lives only in what is. ~Bruce Lee
On 17 April 2011 10:20, Rushabh Mehta <rm…@gmail.com> wrote:
Hi Ranjit,
You can either comment out the logging in defs.py or you will have to give permissions to the logs folder to allow to create the log files.
- Rushabh
On Apr 17, 2011, at 8:09 AM, Ranjith Kumar wrote:
Hi all, I checkout latest wnframework version, I tried to run "python cgi-bin/webnotes/install_lib/install.py mysql-root-user mysql-root-password database-name" but I ran into this error
me…@metalbig-pad:/var/www/wnframework/wnframework/v170/cgi-bin$ python webnotes/install_lib/install.py root kakarot Framework Traceback (most recent call last): File "webnotes/install_lib/install.py", line 119, in <module>
from webnotes import defs<br> File "webnotes/__init__.py", line 220, in <module><br> setup_logging()<br> File "webnotes/__init__.py", line 213, in setup_logging<br> log_handler = logging.handlers.RotatingFileHandler(defs.log_file_name, maxBytes = defs.log_file_size, backupCount = defs.log_file_backup_count) <br>
File "/usr/lib/python2.6/logging/handlers.py", line 112, in init BaseRotatingHandler.init(self, filename, mode, encoding, delay) File "/usr/lib/python2.6/logging/handlers.py", line 64, in init
logging.FileHandler.__init__(self, filename, mode, encoding, delay)<br> File "/usr/lib/python2.6/logging/__init__.py", line 827, in __init__<br> StreamHandler.__init__(self, self._open())<br> File "/usr/lib/python2.6/logging/__init__.py", line 846, in _open<br>
stream = open(self.baseFilename, self.mode)<br>IOError: [Errno 2] No such file or directory: '/var/www/wnframework/wnframework/v170/cgi-bin/logs/error_log.txt'<br><br>so what I did is I created a user, database, granted all privileges and import the Framework.sql.<br>
When I tried to navigate into www-wnframework-path I get this refer screenshot-1.png error. when I login I get the this screen refer screenshot.png.
I tried both ways the error_logs.txt was already created automatically, and as Metha suggested I tried commenting out the logging. This is the I created a dummy databases and imported Framework.sql. Still it not fully functional.