[genropy] Re: Utlizzo Package Editor per recupero applicazione legacy

  • From: Giovanni Porcari <giovanni.porcari@xxxxxxxxx>
  • To: genropy <genropy@xxxxxxxxxxxxx>
  • Date: Fri, 9 Oct 2015 11:05:12 +0200


Il giorno 09 ott 2015, alle ore 10:43, Silvano Valleferro
<s.valleferro@xxxxxxxxxxx> ha scritto:

Ciao,

Sto provando ad ultimare le prove effettuate la settimana scorsa per
recuperare con Package Editor un'applicazione legacy.

Avevo effettuato la creazione delle tabelle e l'importazione dei dati dal
vecchio DB.
Avevo controllato nel DB Postgres e il programma aveva importato
correttamente tutti i dati.

Qui mi ero fermato.

Oggi ho aggiunto il menu'.
Avevo aperto i vari modelli delle tabelle create con l'importazione, e
vedendo che riportavano il legame alla tabella legacy ho cancellato
quest'ultimo,
es: ,legacy_name='dbo.CRM_CategorieImpresa',legacy_db='OS1_3C', in modo che
il modello punti solo al nuovo DB e alla nuova tabella.
E' Corretto ?


Non esiste una ragione per eliminare questa info immediatamente dato che magari
potresti avere la necessità di reimportare i dati e questo è l'elemento che
consente all'importatore di funzionare.

Se invece sei assolutamente certo di non dover più effettuare un'importazione,
allora è ok.

Lanciando il programma dà però il seguente errore che non riesco a capire da
cosa dipenda:

op-interno-3c@op-interno-3c-VirtualBox:~$ gnruwsgi crm3 ---debug -v
---remote_edit
Starting UWSGI server on port 8080

Processes: 1
[uWSGI] getting INI configuration from
/home/op-interno-3c/.gnr/uwsgi/vassals/crm3.ini
Thread: 8
Stats on: http://127.0.0.1:9080
*** Starting uWSGI 2.0.10 (32bit) on [Fri Oct 9 10:31:27 2015] ***
compiled with version: 4.8.2 on 27 June 2015 17:09:29
os: Linux-3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:23:46 UTC 2014
nodename: op-interno-3c-VirtualBox
machine: i686
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /home/op-interno-3c
writing pidfile to /home/op-interno-3c/.gnr/uwsgi/vassals/crm3.pid
Connect on: http://127.0.0.1:8080
detected binary path: /usr/local/bin/uwsgi
*** dumping internal routing table ***
[rule: 0] subject: path_info regexp: ^/websocket action:
httpdumb:/home/op-interno-3c/.gnr/sockets/crm3.tornado
*** end of the internal routing table ***
your processes number limit is 14119
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on :8080 fd 4
uwsgi socket 0 bound to TCP address 127.0.0.1:34802 (port auto-assigned) fd 3
Python version: 2.7.6 (default, Mar 22 2014, 23:03:14) [GCC 4.8.2]
Python main interpreter initialized at 0x8cb12c0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 1 seconds
mapped 231744 bytes (226 KB) for 8 cores
*** Operational MODE: threaded ***
[uwsgi-signal] signum 0 registered (wid: 0 modifier1: 0 target: default, any
worker)
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x8cb12c0 pid:
3713 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 3713)
spawned uWSGI worker 1 (pid: 3720, cores: 8)
*** Stats server enabled on 127.0.0.1:9080 fd: 14 ***
spawned 1 offload threads for uWSGI worker 1
spawned uWSGI http 1 (pid: 3722)
[uwsgi-daemons] spawning "gnrasync crm3" (uid: 1000 gid: 1000)
Traceback (most recent call last):
File "/usr/local/bin/gnrasync", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/home/op-interno-3c/Genropy/genropy/scripts/gnrasync", line 28, in
<module>
server=GnrAsyncServer(port=getattr(options,'port',None),instance=args[0])
File "/home/op-interno-3c/Genropy/genropy/gnrpy/gnr/web/gnrasync.py", line
384, in __init__
super(GnrAsyncServer, self).__init__(*args, **kwargs)
File "/home/op-interno-3c/Genropy/genropy/gnrpy/gnr/web/gnrasync.py", line
351, in __init__
self.gnrsite=GnrWsgiSite(instance)
File "/home/op-interno-3c/Genropy/genropy/gnrpy/gnr/web/gnrwsgisite.py",
line 244, in __init__
self.gnrapp = self.build_gnrapp(options=options)
File "/home/op-interno-3c/Genropy/genropy/gnrpy/gnr/web/gnrwsgisite.py",
line 992, in build_gnrapp
app = GnrWsgiWebApp(instance_path, site=self,restorepath=restorepath)
File "/home/op-interno-3c/Genropy/genropy/gnrpy/gnr/web/gnrwebapp.py", line
16, in __init__
super(GnrWsgiWebApp, self).__init__(*args, **kwargs)
File "/home/op-interno-3c/Genropy/genropy/gnrpy/gnr/app/gnrapp.py", line
626, in __init__
self.init(forTesting=forTesting,restorepath=restorepath)
File "/home/op-interno-3c/Genropy/genropy/gnrpy/gnr/app/gnrapp.py", line
730, in init
for pkgid, attrs in self.config['packages'].digest('#k,#a'):
AttributeError: 'NoneType' object has no attribute 'digest'
[uwsgi-daemons] throttling "gnrasync crm3" for 1 seconds
[uwsgi-daemons] respawning "gnrasync crm3" (uid: 1000 gid: 1000)


Da cosa potrebbe dipendere ?

Inoltre non mi ricordo più come si lancia la pagina di un modello
direttamente dal browser (senza necessariamente avere la scelta a menu'.

Grazie


Per questa cosa forse dovremmo avere più informazioni a meno che Michele
non abbia un'idea specifica.

la line incriminata è :

for pkgid, attrs in self.config['packages'].digest('#k,#a'):

cioè sembra che non riesca a leggere la configurazione e precisamente
i packages della configurazione.


Prova a verificare tutto ed eventualmente facci avere più informazioni.


Ciao

G



Other related posts: