Coder Social home page Coder Social logo

depa.tech doesn't work about patzilla HOT 9 OPEN

ip-tools avatar ip-tools commented on May 20, 2024
depa.tech doesn't work

from patzilla.

Comments (9)

amotl avatar amotl commented on May 20, 2024

Dear @think-nice-things,

thank you for writing in.

Introduction

I installed patzilla as from pip (0.169.3).

Wow, did it work well? We are currently working on a refresh which will be converged into 0.170.0 soon and had quite a bunch of things to resolve.

I've aquired a depa.tech account.

Sweet. @herrkrueger and @mtcberlin will like it.

Problem report

I didn't manage to use depa.tech.

Bummer. We believe it works well on the hosted instance at https://patzilla.ip-tools.io/ 1.

Let's try to make it work on your end as well. When depa.tech is successfully enabled, you should be able to spot those lines in the log:

2022-04-27 14:24:05,517 INFO     [patzilla.access.depatech.clientpool     ][MainThread] Using depa.tech API at https://api.depa.tech
2022-04-27 14:24:05,517 INFO     [patzilla.access.depatech.clientpool     ][MainThread] Creating upstream client pool for depa.tech

Investigation

If this is not the case, there might be some configuration flaw.

The relevant config entries look like this:

# [datasource:depatech]

That could already be the culprit. Section headers of .ini configuration files should not be prefixed with # .

Let us know if that helps already.

With kind regards,
Andreas.

Footnotes

  1. We will be happy to provide you an account on the hosted instance of PatZilla we are operating. Let us know if you are interested about it.

from patzilla.

amotl avatar amotl commented on May 20, 2024

Another detail we just spotted within the configuration snippet you shared with us:

[ip_naviator]
datasources = ops, depatisnet, depatech

There is a typo here, it should be [ip_navigator] - one g is missing.

from patzilla.

think-nice-things avatar think-nice-things commented on May 20, 2024

thanks for your rapid reponse.
No unfortunatly everything is correct in my config, seems that I was just sloppy in my orignal post.
So the config reads in fact

[ip_navigator]
datasources = ops, depatisnet, depatech

[datasource:depatech]                                                                                                                                                                                                                                                                                                                                  
api_uri      = {depatech_api_uri}                                                                                                                                                            
api_username = {depatech_api_username}                                                                                                                                                       
api_password = {depatech_api_password}     

still not working.

How do I enable logging (e.g. to stdout / stderr)?

from patzilla.

amotl avatar amotl commented on May 20, 2024

Hi again,

your configuration snippet looks reasonable, assuming that you replaced all the right-hand values {depatech_*} correctly.

How do I enable logging (e.g. to stdout / stderr)?

You don't see anything on stderr? How are you starting PatZilla?

With kind regards,
Andreas.

from patzilla.

think-nice-things avatar think-nice-things commented on May 20, 2024

pserve patzilla.ini

and I'm seeing

Starting server in PID 1187.
Serving on http://localhost:6543

The interface only shows these buttons:

image

I even installed patzilla in two totally different environments (1. ubuntu on windows wsl behind a firewall and with proxy and 2. debian linux w/o firewall) and depa.tech doesn't work on neither of them.

from patzilla.

amotl avatar amotl commented on May 20, 2024

Thanks for those insights. We will have to dig deeper.

On my machine, I receive those kinds of log messages when PatZilla is starting up 1:

2022-04-27 14:24:04,832 INFO     [patzilla.navigator.settings             ][MainThread] Root configuration file:       /path/to/patzilla/patzilla/config/development-local.ini
2022-04-27 14:24:04,832 INFO     [patzilla.util.config                    ][MainThread] Requested configuration files: /path/to/patzilla/patzilla/config/development-local.ini
2022-04-27 14:24:04,835 INFO     [patzilla.util.config                    ][MainThread] Effective configuration files: /path/to/patzilla/patzilla/config/development-local.ini
2022-04-27 14:24:05,357 INFO     [patzilla.access                         ][MainThread] Enabling data sources: ops, depatisnet, ificlaims, depatech, allpat
2022-04-27 14:24:05,495 INFO     [patzilla.access.epo.ops.client          ][MainThread] Creating upstream client pool for EPO/OPS
2022-04-27 14:24:05,513 INFO     [patzilla.access.ificlaims.clientpool    ][MainThread] Using IFI CLAIMS API at https://cdws21.ificlaims.com
2022-04-27 14:24:05,513 INFO     [patzilla.access.ificlaims.clientpool    ][MainThread] Creating upstream client pool for IFI CLAIMS
2022-04-27 14:24:05,517 INFO     [patzilla.access.depatech.clientpool     ][MainThread] Using depa.tech API at https://api.depa.tech
2022-04-27 14:24:05,517 INFO     [patzilla.access.depatech.clientpool     ][MainThread] Creating upstream client pool for depa.tech
2022-04-27 14:24:06,894 INFO     [patzilla                                ][MainThread] Application is ready to serve requests. Enjoy your research.
Starting server in PID 68128.
Serving on http://0.0.0.0:6543

It looks like the logging subsystem is not configured correctly on your end.

a) Your patzilla.ini has been created with patzilla make-config development?
b) Maybe you can share your full configuration file, without personal access credentials and tokens?

Footnotes

  1. My environment is slightly different. a) I am working within a development sandbox. b) I am working on the development branch. However, only some messages might slightly deviate and not too much is special with the development sandbox. Logging to stderr should work in general without further ado.

from patzilla.

amotl avatar amotl commented on May 20, 2024

Hi again,

we tried to reproduce the problem but ran into another one, see #52. However, we can confirm that a) logging to stderr and b) activating the depa.tech data source seem to work out of the box with the recipe shared at #52.

With kind regards,
Andreas.

from patzilla.

amotl avatar amotl commented on May 20, 2024

Hi again,

thanks for your hint at #52 (comment)

but yet depatech not working

We can confirm the situation. While the system pretends to bring up the data source, both on the backend/middleware and the frontend side, ....

image

image

in fact, it doesn't. Apologies!

We should soon release a new version of PatZilla which will hopefully improve the situation. In the meanwhile, can we humbly ask you if you would feel capable enough to work with the development version and a corresponding sandbox setup?

If so, you can use the latest progress from the more-tests branch 1. On this matter, there is also a detailed and updated installation document 2. Please let us know if you need further guidance.

With kind regards,
Andreas.

Footnotes

  1. https://github.com/ip-tools/patzilla/tree/more-tests

  2. https://github.com/ip-tools/patzilla/blob/more-tests/docs/install/sandbox.rst

from patzilla.

amotl avatar amotl commented on May 20, 2024

Dear @think-nice-things,

How do I enable logging (e.g. to stdout / stderr)?

You don't see anything on stderr? How are you starting PatZilla?

While working on #49, we discovered the reason why stdout/stderr might have been silent on your end. It will be fixed with d619020. Thank you!

With kind regards,
Andreas.

from patzilla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.