Benvenuto!

Questa comunità è dedicata alle persone interessate ai nostri prodotti e ai nostri servizi. Partecipa alle discussioni della nostra comunità, compila il tuo profilo personale contribuisci alla crescita di Seedoo

0

Problema con stampa etichetta

Da
Pasquale
su 16/10/18, 08:11 66 visualizzazioni

Salve a tutti,
la stampa dell'etichetta non viene effettuata. Non viene generato nemmeno il PDF.

Cliccando su stampa etichetta viene aperta una nuova finestra con il seguente URL: http://192.168.1.178:8069/seedoo/etichetta/2   e il seguente messaggio di errore:

Internal Server Error

he server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application..


Dove sbaglio?


0
Pasquale
On 24/10/18, 10:06

2018-10-24 09:46:32,276 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:46:32] "GET /seedoo/etichetta/3 HTTP/1.1" 500 -

2018-10-24 09:46:32,491 1928 ERROR seedoo werkzeug: Error on request:

Traceback (most recent call last):

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi

    execute(self.server.app)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute

    application_iter = app(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/service/server.py", line 294, in app

    return self.app(e, s)

  File "/home/cms/seedoo/ocb/openerp/service/wsgi_server.py", line 216, in application

    return application_unproxied(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/service/wsgi_server.py", line 202, in application_unproxied

    result = handler(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1299, in __call__

    return self.dispatch(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1273, in __call__

    return self.app(environ, start_wrapped)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/wsgi.py", line 588, in __call__

    return self.app(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1453, in dispatch

    result = ir_http._dispatch()

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 175, in _dispatch

    return self._handle_exception(e)

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception

    return request._handle_exception(exception)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 675, in _handle_exception

    return super(HttpRequest, self)._handle_exception(exception)

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch

    result = request.dispatch()

  File "/home/cms/seedoo/ocb/openerp/http.py", line 693, in dispatch

    r = self._call_function(**self.params)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 319, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/home/cms/seedoo/ocb/openerp/service/model.py", line 118, in wrapper

    return f(dbname, *args, **kwargs)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 316, in checked_call

    return self.endpoint(*a, **kw)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 812, in __call__

    return self.method(*args, **kw)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 412, in response_wrap

    response = f(*args, **kw)

  File "/home/cms/seedoo/seedoo-core/seedoo_protocollo_dematerializzazione/controller/etichetta.py", line 95, in object

    writer=writer)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/barcode/__init__.py", line 77, in get

    return barcode(code, writer)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/barcode/ean.py", line 53, in __init__

    raise IllegalCharacterError('Code can only contain numbers.')

IllegalCharacterError: Code can only contain numbers.

2018-10-24 09:46:32,609 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:46:32] "GET /favicon.ico HTTP/1.1" 404 -

2018-10-24 09:52:18,621 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:18] "GET /web/binary/pdf?model=protocollo.protocollo&id=3&field=preview&t=1540374236401 HTTP/1.1" 200 -

2018-10-24 09:52:32,881 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:32] "POST /web/dataset/call_button HTTP/1.1" 200 -

2018-10-24 09:52:32,948 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:32] "POST /web/menu/load_needaction HTTP/1.1" 200 -

2018-10-24 09:52:32,996 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:32] "GET /robots.txt HTTP/1.1" 404 -

2018-10-24 09:52:33,061 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:33] "GET /seedoo/etichetta/3 HTTP/1.1" 500 -

2018-10-24 09:52:33,073 1928 ERROR seedoo werkzeug: Error on request:

Traceback (most recent call last):

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi

    execute(self.server.app)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute

    application_iter = app(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/service/server.py", line 294, in app

    return self.app(e, s)

  File "/home/cms/seedoo/ocb/openerp/service/wsgi_server.py", line 216, in application

    return application_unproxied(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/service/wsgi_server.py", line 202, in application_unproxied

    result = handler(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1299, in __call__

    return self.dispatch(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1273, in __call__

    return self.app(environ, start_wrapped)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/wsgi.py", line 588, in __call__

    return self.app(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1453, in dispatch

    result = ir_http._dispatch()

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 175, in _dispatch

    return self._handle_exception(e)

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception

    return request._handle_exception(exception)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 675, in _handle_exception

    return super(HttpRequest, self)._handle_exception(exception)

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch

    result = request.dispatch()

  File "/home/cms/seedoo/ocb/openerp/http.py", line 693, in dispatch

    r = self._call_function(**self.params)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 319, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/home/cms/seedoo/ocb/openerp/service/model.py", line 118, in wrapper

    return f(dbname, *args, **kwargs)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 316, in checked_call

    return self.endpoint(*a, **kw)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 812, in __call__

    return self.method(*args, **kw)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 412, in response_wrap

    response = f(*args, **kw)

  File "/home/cms/seedoo/seedoo-core/seedoo_protocollo_dematerializzazione/controller/etichetta.py", line 95, in object

    writer=writer)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/barcode/__init__.py", line 77, in get

    return barcode(code, writer)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/barcode/ean.py", line 53, in __init__

    raise IllegalCharacterError('Code can only contain numbers.')

IllegalCharacterError: Code can only contain numbers.

2018-10-24 09:52:48,900 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:48] "POST /web/dataset/call_button HTTP/1.1" 200 -

2018-10-24 09:52:48,957 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:48] "POST /web/menu/load_needaction HTTP/1.1" 200 -

2018-10-24 09:52:49,057 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:49] "GET /seedoo/etichetta/3 HTTP/1.1" 500 -

2018-10-24 09:52:49,089 1928 ERROR seedoo werkzeug: Error on request:

Traceback (most recent call last):

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi

    execute(self.server.app)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute

    application_iter = app(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/service/server.py", line 294, in app

    return self.app(e, s)

  File "/home/cms/seedoo/ocb/openerp/service/wsgi_server.py", line 216, in application

    return application_unproxied(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/service/wsgi_server.py", line 202, in application_unproxied

    result = handler(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1299, in __call__

    return self.dispatch(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1273, in __call__

    return self.app(environ, start_wrapped)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/wsgi.py", line 588, in __call__

    return self.app(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1453, in dispatch

    result = ir_http._dispatch()

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 175, in _dispatch

    return self._handle_exception(e)

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception

    return request._handle_exception(exception)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 675, in _handle_exception

    return super(HttpRequest, self)._handle_exception(exception)

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch

    result = request.dispatch()

  File "/home/cms/seedoo/ocb/openerp/http.py", line 693, in dispatch

    r = self._call_function(**self.params)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 319, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/home/cms/seedoo/ocb/openerp/service/model.py", line 118, in wrapper

    return f(dbname, *args, **kwargs)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 316, in checked_call

    return self.endpoint(*a, **kw)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 812, in __call__

    return self.method(*args, **kw)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 412, in response_wrap

    response = f(*args, **kw)

  File "/home/cms/seedoo/seedoo-core/seedoo_protocollo_dematerializzazione/controller/etichetta.py", line 95, in object

    writer=writer)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/barcode/__init__.py", line 77, in get

    return barcode(code, writer)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/barcode/ean.py", line 53, in __init__

    raise IllegalCharacterError('Code can only contain numbers.')

IllegalCharacterError: Code can only contain numbers.

2018-10-24 09:52:57,401 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:57] "POST /web/action/load HTTP/1.1" 200 -

2018-10-24 09:52:57,448 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:57] "POST /web/dataset/call_kw/protocollo.aggiungi.classificazione.step1.wizard/fields_view_get HTTP/1.1" 200 -

2018-10-24 09:52:57,496 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:57] "POST /web/dataset/call_kw/protocollo.aggiungi.classificazione.step1.wizard/default_get HTTP/1.1" 200 -

2018-10-24 09:52:57,528 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:57] "POST /web/dataset/call_kw/protocollo.aggiungi.classificazione.step1.wizard/onchange HTTP/1.1" 200 -

2018-10-24 09:52:57,543 1928 WARNING seedoo openerp.models: protocollo.classification.read() with unknown field 'False'

2018-10-24 09:52:57,547 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:57] "POST /web/dataset/search_read HTTP/1.1" 200 -

2018-10-24 09:52:57,560 1928 WARNING seedoo openerp.models: protocollo.classification.read() with unknown field 'False'

2018-10-24 09:52:57,564 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:57] "POST /web/dataset/search_read HTTP/1.1" 200 -

2018-10-24 09:52:57,572 1928 WARNING seedoo openerp.models: protocollo.classification.read() with unknown field 'False'

2018-10-24 09:52:57,575 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:57] "POST /web/dataset/search_read HTTP/1.1" 200 -

2018-10-24 09:52:59,650 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query draft 0.000562906265259 seconds ---

2018-10-24 09:52:59,651 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query created 0.000553131103516 seconds ---

2018-10-24 09:52:59,653 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query assigned_not_refused 0.00157999992371 seconds ---

2018-10-24 09:52:59,653 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query department  0.000131845474243 seconds ---

2018-10-24 09:52:59,653 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query ids_department_childs  9.70363616943e-05 seconds ---

2018-10-24 09:52:59,654 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query aoo  8.70227813721e-05 seconds ---

2018-10-24 09:52:59,657 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query aoo 2  0.00302696228027 seconds ---

2018-10-24 09:52:59,657 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query registrati_ass_ut_uff  0.000120162963867 seconds ---

2018-10-24 09:52:59,657 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query ass_uff_fig  9.29832458496e-05 seconds ---

2018-10-24 09:52:59,658 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query ass_ut_uff_fig  8.89301300049e-05 seconds ---

2018-10-24 09:52:59,658 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: ---Query ass_rif_ut_uff  8.70227813721e-05 seconds ---

2018-10-24 09:52:59,658 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: --- 1540374779.66 start ---

2018-10-24 09:52:59,658 1928 INFO seedoo openerp.addons.seedoo_protocollo.model.protocollo_permissions: --- 3 len ---

2018-10-24 09:52:59,773 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:59] "POST /web/dataset/call_kw/protocollo.protocollo/search_read HTTP/1.1" 200 -

2018-10-24 09:52:59,809 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:59] "POST /web/dataset/call_kw/protocollo.sender_receiver/read HTTP/1.1" 200 -

2018-10-24 09:52:59,843 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:59] "POST /web/dataset/call_kw/ir.attachment/read HTTP/1.1" 200 -

2018-10-24 09:52:59,851 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:59] "POST /web/dataset/call_kw/protocollo.assegnazione/read HTTP/1.1" 200 -

2018-10-24 09:52:59,872 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:59] "GET /web/binary/pdf?model=protocollo.protocollo&id=3&field=preview&t=1540374628626 HTTP/1.1" 200 -

2018-10-24 09:52:59,916 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:52:59] "POST /web/dataset/search_read HTTP/1.1" 200 -

2018-10-24 09:53:00,043 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:53:00] "POST /web/dataset/call_kw/mail.message/message_read HTTP/1.1" 200 -

2018-10-24 09:53:00,096 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:53:00] "POST /web/dataset/call_kw/mail.message/set_message_read HTTP/1.1" 200 -

2018-10-24 09:53:04,509 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:53:04] "POST /web/dataset/call_button HTTP/1.1" 200 -

2018-10-24 09:53:04,559 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:53:04] "POST /web/menu/load_needaction HTTP/1.1" 200 -

2018-10-24 09:53:04,658 1928 INFO seedoo werkzeug: 87.238.27.143 - - [24/Oct/2018 09:53:04] "GET /seedoo/etichetta/3 HTTP/1.1" 500 -

2018-10-24 09:53:04,692 1928 ERROR seedoo werkzeug: Error on request:

Traceback (most recent call last):

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi

    execute(self.server.app)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute

    application_iter = app(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/service/server.py", line 294, in app

    return self.app(e, s)

  File "/home/cms/seedoo/ocb/openerp/service/wsgi_server.py", line 216, in application

    return application_unproxied(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/service/wsgi_server.py", line 202, in application_unproxied

    result = handler(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1299, in __call__

    return self.dispatch(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1273, in __call__

    return self.app(environ, start_wrapped)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/werkzeug/wsgi.py", line 588, in __call__

    return self.app(environ, start_response)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 1453, in dispatch

    result = ir_http._dispatch()

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 175, in _dispatch

    return self._handle_exception(e)

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception

    return request._handle_exception(exception)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 675, in _handle_exception

    return super(HttpRequest, self)._handle_exception(exception)

  File "/home/cms/seedoo/ocb/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch

    result = request.dispatch()

  File "/home/cms/seedoo/ocb/openerp/http.py", line 693, in dispatch

    r = self._call_function(**self.params)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 319, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/home/cms/seedoo/ocb/openerp/service/model.py", line 118, in wrapper

    return f(dbname, *args, **kwargs)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 316, in checked_call

    return self.endpoint(*a, **kw)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 812, in __call__

    return self.method(*args, **kw)

  File "/home/cms/seedoo/ocb/openerp/http.py", line 412, in response_wrap

    response = f(*args, **kw)

  File "/home/cms/seedoo/seedoo-core/seedoo_protocollo_dematerializzazione/controller/etichetta.py", line 95, in object

    writer=writer)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/barcode/__init__.py", line 77, in get

    return barcode(code, writer)

  File "/home/cms/seedoo/venv/lib/python2.7/site-packages/barcode/ean.py", line 53, in __init__

    raise IllegalCharacterError('Code can only contain numbers.')

.legalCharacterError: Code can only contain numbers.redo sia questo:...



Credo sia una delle ultime commit poichè è stata installata meno di dieci giorni fa



0
Luca Cireddu
On 16/10/18, 12:45

Ciao Pasquale,
l'errore 500 un errore interno del server Odoo che potrebbe essere causato da diversi fattori.
Per risolvere il problema è fondamentale capire il punto esatto del codice dove si è verificato l'errore.
Servirebbe quindi il Traceback del problema.
Odoo ha un file di log che, se hai seguito la guida, puoi trovare nella HOME dell'utente chiamato "seedoo.log".

Potresti riportare qui sul forum tutta la parte relativa all'errore?

Se non dovessi riuscire a trovarlo, prova ad effettuare di nuovo l'operazione di Stampa Etichetta.
L'errore dovrebbe ripetersi e dovresti trovare la parte interessata alla fine del file.

Sarebbe utile, inoltre, sapere quale versione/commit stai usando, o più o meno il giorno in cui hai preso il codice, per essere sicuri che il problema non sia dovuto a vecchie versioni e non sia già stato risolto.


Resta informato su tutte le discussioni del forum

Resta informato su questa discussione del Forum

5 follower(s)

Statistiche

Richiesta: 16/10/18, 08:11
Visto il: 66 volte
Ultimo aggiornamento: 24/10/18, 10:06