Autor Tópico: Não consigo abrir o STOQ  (Lida 3771 vezes)

Offline NinaWEX

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Não consigo abrir o STOQ
« Online: 11 de Setembro de 2015, 11:58 »
Olá. Estou tentando abrir o programa STOQ e simplesmente aparece o iniciar com a versão e não dá continuidade, ele simplesmente fecha.
Alguém teve este problema, ou melhor alguém sabe como resolver este problema?

Creto

  • Visitante
Re:Não consigo abrir o STOQ
« Resposta #1 Online: 11 de Setembro de 2015, 19:15 »
Como instalou ele? Já tentou chamá-lo no terminal?
Código: [Selecionar]
$ stoq
E poste a saída aqui...

T+

Offline NinaWEX

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Re:Não consigo abrir o STOQ
« Resposta #2 Online: 06 de Janeiro de 2016, 08:34 »
wex@wex-atendimento ~ $ stoq
Traceback (most recent call last):
  File "/usr/bin/stoq", line 95, in <module>
    sys.exit(main.main(sys.argv))
  File "/usr/lib/pymodules/python2.7/stoq/main.py", line 88, in main
    shell.main(appname)
  File "/usr/lib/pymodules/python2.7/stoq/gui/shell/shell.py", line 433, in main
    self._dbconn.connect()
  File "/usr/lib/pymodules/python2.7/stoq/gui/shell/shell.py", line 68, in connect
    self._post_connect()
  File "/usr/lib/pymodules/python2.7/stoq/gui/shell/shell.py", line 117, in _post_connect
    self._check_schema_migration()
  File "/usr/lib/pymodules/python2.7/stoq/gui/shell/shell.py", line 125, in _check_schema_migration
    if needs_schema_update():
  File "/usr/lib/pymodules/python2.7/stoqlib/database/migration.py", line 500, in needs_schema_update
    migration = StoqlibSchemaMigration()
  File "/usr/lib/pymodules/python2.7/stoqlib/database/migration.py", line 164, in __init__
    self.default_store = get_default_store()
  File "/usr/lib/pymodules/python2.7/stoqlib/database/runtime.py", line 537, in get_default_store
    _default_store = db_settings.create_store()
  File "/usr/lib/pymodules/python2.7/stoqlib/database/settings.py", line 264, in create_store
    return self._get_store_internal(self.dbname)
  File "/usr/lib/pymodules/python2.7/stoqlib/database/settings.py", line 238, in _get_store_internal
    raise DatabaseError(e.args[0])
DatabaseError: could not connect to server: Não há rota para o host
   Is the server running on host "192.168.0.15" and accepting
   TCP/IP connections on port 5432?

Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/stoq/gui/shell/bootstrap.py", line 383, in _write_exception_hook
    d = show_dialog()
  File "/usr/lib/pymodules/python2.7/stoqlib/gui/dialogs/crashreportdialog.py", line 242, in show_dialog
    crd = CrashReportDialog(parent)
  File "/usr/lib/pymodules/python2.7/stoqlib/gui/dialogs/crashreportdialog.py", line 57, in __init__
    self._report_submitter = ReportSubmitter()
  File "/usr/lib/pymodules/python2.7/stoqlib/lib/crashreport.py", line 162, in __init__
    self._report = collect_report()
  File "/usr/lib/pymodules/python2.7/stoqlib/lib/crashreport.py", line 113, in collect_report
    default_store = get_default_store()
  File "/usr/lib/pymodules/python2.7/stoqlib/database/runtime.py", line 537, in get_default_store
    _default_store = db_settings.create_store()
  File "/usr/lib/pymodules/python2.7/stoqlib/database/settings.py", line 264, in create_store
    return self._get_store_internal(self.dbname)
  File "/usr/lib/pymodules/python2.7/stoqlib/database/settings.py", line 238, in _get_store_internal
    raise DatabaseError(e.args[0])
stoqlib.exceptions.DatabaseError: could not connect to server: Não há rota para o host
   Is the server running on host "192.168.0.15" and accepting
   TCP/IP connections on port 5432?


Original exception was:
Traceback (most recent call last):
  File "/usr/bin/stoq", line 95, in <module>
    sys.exit(main.main(sys.argv))
  File "/usr/lib/pymodules/python2.7/stoq/main.py", line 88, in main
    shell.main(appname)
  File "/usr/lib/pymodules/python2.7/stoq/gui/shell/shell.py", line 433, in main
    self._dbconn.connect()
  File "/usr/lib/pymodules/python2.7/stoq/gui/shell/shell.py", line 68, in connect
    self._post_connect()
  File "/usr/lib/pymodules/python2.7/stoq/gui/shell/shell.py", line 117, in _post_connect
    self._check_schema_migration()
  File "/usr/lib/pymodules/python2.7/stoq/gui/shell/shell.py", line 125, in _check_schema_migration
    if needs_schema_update():
  File "/usr/lib/pymodules/python2.7/stoqlib/database/migration.py", line 500, in needs_schema_update
    migration = StoqlibSchemaMigration()
  File "/usr/lib/pymodules/python2.7/stoqlib/database/migration.py", line 164, in __init__
    self.default_store = get_default_store()
  File "/usr/lib/pymodules/python2.7/stoqlib/database/runtime.py", line 537, in get_default_store
    _default_store = db_settings.create_store()
  File "/usr/lib/pymodules/python2.7/stoqlib/database/settings.py", line 264, in create_store
    return self._get_store_internal(self.dbname)
  File "/usr/lib/pymodules/python2.7/stoqlib/database/settings.py", line 238, in _get_store_internal
    raise DatabaseError(e.args[0])
stoqlib.exceptions.DatabaseError: could not connect to server: Não há rota para o host
   Is the server running on host "192.168.0.15" and accepting
   TCP/IP connections on port 5432?


:: Obrigada pela atenção. Continuo tento problemas...

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re:Não consigo abrir o STOQ
« Resposta #3 Online: 06 de Janeiro de 2016, 09:45 »
Citar
DatabaseError: could not connect to server: Não há rota para o host
   Is the server running on host "192.168.0.15" and accepting
   TCP/IP connections on port 5432?

Olá

Já conferiu porque o servidor de BD não está fornecendo a conexão na porta 5432?

Alguma regra de firewall bloqueando?

As permissões de acesso estão corretas?

Offline NinaWEX

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Re:Não consigo abrir o STOQ
« Resposta #4 Online: 06 de Janeiro de 2016, 11:05 »
Tota,
Ontem usei o programa STOQ normalmente, encerrei o dia fechando o caixa e hoje ocorre isto novamente.
Da outra vez, precisou vir o ex-sócio para 'ajeitar' e hoje ocorre a mesma coisa.

Agora fui no terminal chamar o STOQ e dá:

~ $ Stoq
Stoq: comando não encontrado


Offline NinaWEX

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Re:Não consigo abrir o STOQ
« Resposta #5 Online: 06 de Janeiro de 2016, 12:10 »
Tota,
Tem como as portas mudarem assim sozinha?

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re:Não consigo abrir o STOQ
« Resposta #6 Online: 06 de Janeiro de 2016, 12:28 »
Não,  mas se o roteador ou firewall bloquear....

Offline Rockwave

  • Usuário Ubuntu
  • *
  • Mensagens: 223
    • Ver perfil
Re:Não consigo abrir o STOQ
« Resposta #7 Online: 06 de Janeiro de 2016, 13:18 »
Nessa segunda vez você chamou o programa utilizando letra maiscula:
Citar
~ $ Stoq
Stoq: comando não encontrado

Esse trecho do erro traz várias informações uteis:
Citar
stoqlib.exceptions.DatabaseError: could not connect to server: Não há rota para o host
   Is the server running on host "192.168.0.15" and accepting
   TCP/IP connections on port 5432?

A partir da máquina do stoq vc consegue dar ping no endereço 192.168.0.15? Em caso positivo tente usar o comando telnet para ver se a porta esta disponivel
Código: [Selecionar]
telnet 192.168.0.15 5432Você esta usando postgresql? O banco esta no ar e aceitando conexões?