Code Monkey home page Code Monkey logo

Comments (28)

nicofrand avatar nicofrand commented on July 26, 2024

Without any logs it's hard to tell what's wrong. Maybe #162.

You'll have to check the apps logs, through CLI I guess.

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

OK @nicofrand , I can connect as admin via ssh in a terminal.
Which command should I type that would be the most informative to help debug this ?

I've found this log file thus far: /var/log/kresus/kresus.log

It's attached too
kresus.log

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

OK, Kresus seems to be running.

What is the output of curl http://127.0.0.1:9876 -v ?

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

This, does it help?

image

Looks like the port is open

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

What about curl http://[::1]:9876 then?

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

This one fails:

image

It's not mentionned in the Yunohost port-forwarding page:
https://yunohost.org/en/isp_box_config

What does it correspond to ? how shall I configure it ?

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

I just wanted to see if it was reachable through IP6.
What is the output of netstat -plnt | grep 9876?

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

image

Does that help ?

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

We are now sure Kresus is running, on localhost and port 9876. It's a shame we don't see past the "LISTEN" part. I guess it is "node"?

That also means the curl http://127.0.0.1:9876 should work. Can you try again? You are doing it from the raspberry right?
What about nc -zv 127.0.0.1 9876?

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

So I'm doing everything from the raspberry (I connect to it via ssh from my pc).

There was nothing after the "LISTEN" in the previous screenshot, I've done it again below:
image

In that test I had to interrupt the curl http://127.0.0.1:9876 because nothing was happening (I waited ~30 seconds). This particular command does not seem to work.

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

Ah, can you try running the netstat command as sudo please?

That should look like this:

tcp        0      0 127.0.0.1:33060         0.0.0.0:*               LISTEN      1365/mysqld  

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

It's indeed listening to something:

image

If I try to sudo the curl command however it still does not work (nothing happens and after a while I interrupt it with ctrl+C

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

@nicofrand any chance there is a solution to this ?

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

Does it occur every time you try to install it? As far as I can tell from the logs, Kresus in running alright. The issue comes from your network I guess but I don't know what is going on…
You might want to try to get some help on the Yunohost room on Matrix, or on the forum.

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

So I tried uninstalling and re-installing => same behaviour.

Like you suggested @nicofrand, I understand this may to do with how my network and / or yunohost is configured.
I tried reaching out to the yunohost folks both on the Matrix chatroom and on the forum.
It's been 22 days now and I haven't received a single answer, I'm not even sure anyone has actually looked at the messages.
I think I'll give up, I'm stuck and don't know how to solve the probem.

Do you know any other good open source client-side app for personal finance that does not require to run on a server ?
Thanks for your help,

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

ok, looks like someone (you?) just answered on Matrix after I re-posted the same message again, thanks

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

Yup, it was me.
Can you try curl -4 http://127.0.0.1:9876?
And service kresus status?

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

done, posted on Matrix,

Thanks for your help ! very appreciated

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

Answers from Matrix:

  • curl -4 http://127.0.0.1:47603 (port has changed meanwhile) hangs as well
  • curl http://[::1]:47603 returns "connection refused"
  • service kresus status is OK

I still don't know why the request times out.

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

Can you try curl http://127.0.0.1:47603/kresus please?
Also the content of /etc/nginx/conf.d/warren.nohost.me.d/kresus.conf (or something like that).

from kresus_ynh.

bnjbvr avatar bnjbvr commented on July 26, 2024

Do you have set a firewall?

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

curl http://127.0.0.1:47603/kresus

image

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

content of /etc/nginx/conf.d/warren.nohost.me.d/kresus.conf

 rewrite ^/kresus$ /kresus/ permanent;
location /kresus/ {
  alias /var/www/kresus/build/client/;
  try_files $uri $uri/index.html @kresus;

  # Include SSOWAT user panel.
  include conf.d/yunohost_panel.conf.inc;
}

location ~ /kresus/\.(css|js|png|jpe?g|svg|eot|woff2?)$ {
  more_set_headers 'Cache-Control: max-age=2592000, must-revalidate, public';
  gzip_types text/plain text/css application/javascript text/javascript;
  try_files $uri $uri/index.html @kresus;
}

location @kresus {
  client_max_body_size  8M;
  send_timeout          600;
  proxy_connect_timeout 600;
  proxy_send_timeout    600;
  proxy_read_timeout    600;
  proxy_set_header      Host $host;

  proxy_pass http://127.0.0.1:47603;
  proxy_redirect off;
}

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

Do you have set a firewall?

Not sure actually.
I did not install one myself, that's for sure.
Maybe my Internet Service Provider (ISP) implements one in the router by default ?
I'm living in the USA since 4 month, not sure what the habits are here, I'll ask some colleagues

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

Also here the logs from the diagnostics (someone asked for it on Matrix):

https://paste.yunohost.org/raw/ociyonizup

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

OK, I think I see what's going on and it has nothing to do with this package nor Kresus.

How do you access your YunoHost admin?
Please try accessing https://warren.nohost.me from a different network.
If that works please take a look at https://yunohost.org/en/dns_local_network.

from kresus_ynh.

Didou09 avatar Didou09 commented on July 26, 2024

OK, thanks

  • I tried accessing it via my mobile phone using the 4G network => it worked
  • Hence it does not work only when I try to access it via my local PC which is on the same local domestic network (router) as the raspberry pi
  • My ISP does not seem to allow me to implement a custom domain name in the DNS (or I don't understand how to do it)
  • But I could modify my /etc/hosts file to include the local IP vs domain correspondence => it works now πŸ‘

Now I can access Kresus and try to create a first account / connection to my bank
Thanks a lot

I have a new question directly concerning Kresus:
I see that to create a direct connection to my bank I nee to give my login and password.
How are these credentials saved in Kresus ? Are they crypted ? how can I be sure they are not saved in plain text ?

Also, is there an option to manually enter them everytime I want to update / download data from the bank instead of storing them permanently ?

image

from kresus_ynh.

nicofrand avatar nicofrand commented on July 26, 2024

OK, I'll close this issue then.

For any question directly related to Kresus please refer to the FAQ (https://kresus.org/en/faq.html#how-is-my-banking-data-stored-in-kresus) or the forum (https://community.kresus.org).

You can also see open issues/feature requests on Kresus' repository: https://framagit.org/kresusapp/kresus/.

from kresus_ynh.

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.