Advertisement
Guest User

12

a guest
May 18th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1.  
  2.  
  3. ./trytond --logconf /home/gnuhealth/gnuhealth/tryton/server/config/gnuhealth_log.conf -v
  4. gnuhealth@kubuntu:~/gnuhealth/tryton/server/trytond-3.4.3/bin $ ./trytond --logconf /home/gnuhealth/gnuhealth/tryton/server/config/gnuhealth_log.conf
  5. [Mon May 18 13:46:52 2015] INFO:server:using /home/gnuhealth/gnuhealth/tryton/server/config/gnuhealth_log.conf as logging configuration file
  6. [Mon May 18 13:46:52 2015] INFO:trytond.server:using /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf as configuration file
  7. [Mon May 18 13:46:52 2015] INFO:trytond.server:initialising distributed objects services
  8. [Mon May 18 13:46:53 2015] INFO:trytond.server:starting JSON-RPC protocol on *:8069
  9.  
  10.  
  11.  
  12. In [5]: config.set_xmlrpc('http://444nh4:admin@localhost:8069/gnuhealth')
  13. ---------------------------------------------------------------------------
  14. ProtocolError Traceback (most recent call last)
  15. <ipython-input-5-f4177dfb408c> in <module>()
  16. ----> 1 config.set_xmlrpc('http://444nh4:admin@localhost:8069/gnuhealth')
  17.  
  18. /usr/local/lib/python2.7/dist-packages/proteus/config.pyc in set_xmlrpc(url)
  19. 323 def set_xmlrpc(url):
  20. 324 'Set XML-RPC as backend'
  21. --> 325 _CONFIG.current = XmlrpcConfig(url)
  22. 326 return _CONFIG.current
  23. 327
  24.  
  25. /usr/local/lib/python2.7/dist-packages/proteus/config.pyc in __init__(self, url)
  26. 293 # TODO add user
  27. 294 self.user = None
  28. --> 295 self._context = self.server.model.res.user.get_preferences(True, {})
  29. 296 __init__.__doc__ = object.__init__.__doc__
  30. 297
  31.  
  32. /usr/lib/python2.7/xmlrpclib.pyc in __call__(self, *args)
  33. 1222 return _Method(self.__send, "%s.%s" % (self.__name, name))
  34. 1223 def __call__(self, *args):
  35. -> 1224 return self.__send(self.__name, args)
  36. 1225
  37. 1226 ##
  38.  
  39. /usr/lib/python2.7/xmlrpclib.pyc in __request(self, methodname, params)
  40. 1576 self.__handler,
  41. 1577 request,
  42. -> 1578 verbose=self.__verbose
  43. 1579 )
  44. 1580
  45.  
  46. /usr/lib/python2.7/xmlrpclib.pyc in request(self, host, handler, request_body, verbose)
  47. 1262 for i in (0, 1):
  48. 1263 try:
  49. -> 1264 return self.single_request(host, handler, request_body, verbose)
  50. 1265 except socket.error, e:
  51. 1266 if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED, errno.EPIPE):
  52.  
  53. /usr/lib/python2.7/xmlrpclib.pyc in single_request(self, host, handler, request_body, verbose)
  54. 1310 host + handler,
  55. 1311 response.status, response.reason,
  56. -> 1312 response.msg,
  57. 1313 )
  58. 1314
  59.  
  60. ProtocolError: <ProtocolError for 444nh4:admin@localhost:8069/gnuhealth: 500 Internal Server Error>
  61.  
  62. In [6]:
  63.  
  64. root@kubuntu:~# cat /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf
  65. [database]
  66. uri = postgresql://localhost:5432
  67. path = /home/gnuhealth/attach
  68.  
  69. [jsonrpc]
  70. #listen = *:8000
  71. listen = *:8069
  72.  
  73. [session]
  74. super_pwd = f5ezwRSdeQ6KU
  75.  
  76. [options]
  77. #admin_passwd = admin
  78. #ble auto-reload of modules if changed
  79. #auto_reload = True
  80.  
  81. #jsondata_path = /var/www/localhost/tryton
  82. xmlrpc = localhost:8069
  83. #jsonrpc = localhost:8000
  84. #jsonrpc = localhost:8069
  85.  
  86. gnuhealth@kubuntu:~/gnuhealth/tryton/server/trytond-3.4.3/bin $ cat /home/gnuhealth/gnuhealth/tryton/server/config/gnuhealth_log.conf
  87. [formatters]
  88. keys: simple
  89.  
  90. [handlers]
  91. keys: rotate, console
  92.  
  93. [loggers]
  94. keys: root
  95.  
  96. [formatter_simple]
  97. format: [%(asctime)s] %(levelname)s:%(name)s:%(message)s
  98. datefmt: %a %b %d %H:%M:%S %Y
  99.  
  100. [handler_rotate]
  101. class: handlers.TimedRotatingFileHandler
  102. args: ('/home/gnuhealth/gnuhealth/logs/gnuhealth.log', 'D', 1, 30)
  103. formatter: simple
  104.  
  105. [handler_console]
  106. class: StreamHandler
  107. formatter: simple
  108. args: (sys.stdout,)
  109.  
  110. [logger_root]
  111. level: NOTSET
  112. handlers: rotate, console
  113. gnu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement