fazer o stoq funcionar.
Pessoal,
eu peguei o STOQ para testar, mas não consigo faze-lo funcionar.
Eu uso debian woody/sarge.
Eu instalei o kiwi, o intl, a FiscalPrinter, e o standalonezodb, alem dos
outros pacotes mais padrões.
Ao instalar o StandalonePOS ele da um erro que não consegue iniciar o base de
dados. Dai eu terminei a instalação e tentei iniciar a base de dados.
[root@debian www.stoq.com.br]# zeoctl start
Attempting to start ZEO...[ok].
ZEO successfully started at debian:3679
Database size is 4 KBytes
[root@debian www.stoq.com.br]# zeoctl status
ZEO dead but pid file exists.
[root@debian www.stoq.com.br]#
Parece que ele inicia mas morre, dai ao tentar iniciar a aplicação não
funciona.
[root@debian www.stoq.com.br]# start-admin.sh
Could not open /tmp/pos-log.
Check your read/write permissions on the file,
or run as an user who can read/write on it.
Dai eu pensei que pudesse ser a impressora fiscal que não tava funcionando, e
ativei ela
[root@debian www.stoq.com.br]# /etc/init.d/rc.fprinter status
FiscalPrinter isn't running
[root@debian www.stoq.com.br]# /etc/init.d/rc.fprinter start
Fiscal Printer Server started!
[root@debian www.stoq.com.br]# /usr/lib/python2.2/FCNTL.py:7:
DeprecationWarning: the FCNTL module is deprecated; please use fcntl
DeprecationWarning)
vi que tem uma mensagem de erro ao iniciar a impressora, mas aparentemente ela
esta iniciada.
[root@debian www.stoq.com.br]# /etc/init.d/rc.fprinter status
FiscalPrinter server is running ->PID: 562
Mas ao tentar iniciar o zeo da outro erro.
[root@debian www.stoq.com.br]# zeoctl status
ZEO is stopped.
[root@debian www.stoq.com.br]# zeoctl start
Attempting to start ZEO...An error occurred while starting ZEO.
See /var/lib/SPOS/zeo.error for more details.
The following is an excerpt from the error logfile:
StorageSystemError: Could not lock the database file. There must be
another process that has opened the file.
<p>
[root@debian www.stoq.com.br]# zeoctl status
ZEO is stopped.
vejam o arquivo /var/lib/SPOS/zeo.error
--------------------------
Traceback (most recent call last):
File "./runzeo.py", line 289, in main
storages['1']=ZODB.FileStorage.FileStorage(fs)
File "/usr/lib/python2.2/site-packages/ZODB/FileStorage.py", line 208, in
__init__
lock_file(f)
File "/usr/lib/python2.2/site-packages/ZODB/lock_file.py", line 30, in
lock_file
raise error, (
StorageSystemError: Could not lock the database file. There must be
another process that has opened the file.
<p>
--------------------------
O que poderia ser?
Valeu
Ronaldo
--
There was a phone call for you.
--
|> // | \\ [***********************************]
| ( õ õ ) [Ronaldo Reis Júnior ]
|> V [UFV/DBA-Entomologia ]
| / \ [36571-000 Viçosa - MG ]
|> /(.''`.)\ [Fone: 31-3899-2532 ]
| /(: :' :)\ [chrysopa@insecta.ufv.br ]
|>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ]
| ( `- ) [***********************************]
|>> _/ \_Powered by GNU/Debian Woody/Sarge
Reply to: