Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./trytond --logconf /home/gnuhealth/gnuhealth/tryton/server/config/gnuhealth_log.conf -v
- gnuhealth@kubuntu:~/gnuhealth/tryton/server/trytond-3.4.3/bin $ ./trytond --logconf /home/gnuhealth/gnuhealth/tryton/server/config/gnuhealth_log.conf
- [Mon May 18 13:46:52 2015] INFO:server:using /home/gnuhealth/gnuhealth/tryton/server/config/gnuhealth_log.conf as logging configuration file
- [Mon May 18 13:46:52 2015] INFO:trytond.server:using /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf as configuration file
- [Mon May 18 13:46:52 2015] INFO:trytond.server:initialising distributed objects services
- [Mon May 18 13:46:53 2015] INFO:trytond.server:starting JSON-RPC protocol on *:8069
- In [5]: config.set_xmlrpc('http://444nh4:admin@localhost:8069/gnuhealth')
- ---------------------------------------------------------------------------
- ProtocolError Traceback (most recent call last)
- <ipython-input-5-f4177dfb408c> in <module>()
- ----> 1 config.set_xmlrpc('http://444nh4:admin@localhost:8069/gnuhealth')
- /usr/local/lib/python2.7/dist-packages/proteus/config.pyc in set_xmlrpc(url)
- 323 def set_xmlrpc(url):
- 324 'Set XML-RPC as backend'
- --> 325 _CONFIG.current = XmlrpcConfig(url)
- 326 return _CONFIG.current
- 327
- /usr/local/lib/python2.7/dist-packages/proteus/config.pyc in __init__(self, url)
- 293 # TODO add user
- 294 self.user = None
- --> 295 self._context = self.server.model.res.user.get_preferences(True, {})
- 296 __init__.__doc__ = object.__init__.__doc__
- 297
- /usr/lib/python2.7/xmlrpclib.pyc in __call__(self, *args)
- 1222 return _Method(self.__send, "%s.%s" % (self.__name, name))
- 1223 def __call__(self, *args):
- -> 1224 return self.__send(self.__name, args)
- 1225
- 1226 ##
- /usr/lib/python2.7/xmlrpclib.pyc in __request(self, methodname, params)
- 1576 self.__handler,
- 1577 request,
- -> 1578 verbose=self.__verbose
- 1579 )
- 1580
- /usr/lib/python2.7/xmlrpclib.pyc in request(self, host, handler, request_body, verbose)
- 1262 for i in (0, 1):
- 1263 try:
- -> 1264 return self.single_request(host, handler, request_body, verbose)
- 1265 except socket.error, e:
- 1266 if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED, errno.EPIPE):
- /usr/lib/python2.7/xmlrpclib.pyc in single_request(self, host, handler, request_body, verbose)
- 1310 host + handler,
- 1311 response.status, response.reason,
- -> 1312 response.msg,
- 1313 )
- 1314
- ProtocolError: <ProtocolError for 444nh4:admin@localhost:8069/gnuhealth: 500 Internal Server Error>
- In [6]:
- root@kubuntu:~# cat /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf
- [database]
- uri = postgresql://localhost:5432
- path = /home/gnuhealth/attach
- [jsonrpc]
- #listen = *:8000
- listen = *:8069
- [session]
- super_pwd = f5ezwRSdeQ6KU
- [options]
- #admin_passwd = admin
- #ble auto-reload of modules if changed
- #auto_reload = True
- #jsondata_path = /var/www/localhost/tryton
- xmlrpc = localhost:8069
- #jsonrpc = localhost:8000
- #jsonrpc = localhost:8069
- gnuhealth@kubuntu:~/gnuhealth/tryton/server/trytond-3.4.3/bin $ cat /home/gnuhealth/gnuhealth/tryton/server/config/gnuhealth_log.conf
- [formatters]
- keys: simple
- [handlers]
- keys: rotate, console
- [loggers]
- keys: root
- [formatter_simple]
- format: [%(asctime)s] %(levelname)s:%(name)s:%(message)s
- datefmt: %a %b %d %H:%M:%S %Y
- [handler_rotate]
- class: handlers.TimedRotatingFileHandler
- args: ('/home/gnuhealth/gnuhealth/logs/gnuhealth.log', 'D', 1, 30)
- formatter: simple
- [handler_console]
- class: StreamHandler
- formatter: simple
- args: (sys.stdout,)
- [logger_root]
- level: NOTSET
- handlers: rotate, console
- gnu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement