linuxserver / budge

GNU General Public License v3.0
635 stars 18 forks source link

Not able to enter budget value #27

Open bergziege opened 2 years ago

bergziege commented 2 years ago

Hi, I am running 0.0.8 via Docker and I am not be able to enter a value into the "Budgeted" column of my envelope. It always reverts back to 0.

Settings changed from default: Currency set to EUR Browser: Edge and Firefox Running via Docker:

version: "2.1"
services:
  budge:
    image: lscr.io/linuxserver/budge:latest
    container_name: budge
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
    volumes:
      - ./config:/config
    ports:
      - 7080:80
      - 7443:443
    restart: unless-stopped
alex-phillips commented 2 years ago

Can you share your docker logs after this issue occurs?

Kjeldgaard commented 2 years ago

I'm having the same issues (this issue and https://github.com/linuxserver/budge/issues/28) as bergziege. My logs show

Error: You must be logged in to do that
    at /app/budge/backend/build/src/middleware/authentication.js:41:23
    at Generator.next (<anonymous>)
    at /app/budge/backend/build/src/middleware/authentication.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/app/budge/backend/build/src/middleware/authentication.js:4:12)
    at expressAuthentication (/app/budge/backend/build/src/middleware/authentication.js:22:12)
    at /app/budge/backend/build/routes.js:1245:97
    at Generator.next (<anonymous>)
    at /app/budge/backend/build/routes.js:8:71
    at new Promise (<anonymous>) {
  status: 401
}

when I attempt to enter a value.

If bergziege logs show this is another issue, I'll open a different issue.

bergziege commented 2 years ago

Can you share your docker logs after this issue occurs?

Those are the same as in #28 minus the transaction message :-) So no, there are no errors in the logs when trying to enter a value. But I can confirm I too get the logged in error, but not in a timely manner that would correlate with any budged entering actions.

But speaking about time ... wouldn't it be nice if those logs had some sort of timestamp at the beginning of each log entry ;-)

alex-phillips commented 2 years ago

Could either of you share the console logs from the browser? Unless there is another error in the docker logs, this may be a UI / client-side error.

bergziege commented 2 years ago

Well, maybe we are onto something.

image

Note the 6 second delay until I finally get a 504.

And why is August defined as last day of July and not first of August?

Edit: Some more screens containing the console output

image

image

bergziege commented 2 years ago

One strange thing I just discovered is that the budge container is using 20%-30% CPU load ... when doing nothing (at least nothing I can think of).

image

alex-phillips commented 2 years ago

What happens when you just go to the URL http://192.168.1.105:7080/api/ping? Also, can you share your docker-compose or docker run command?

bergziege commented 2 years ago

image Also tried it with Adblock and Ghostery turned off ... no change.

version: "2.1"
services:
  budge:
    image: lscr.io/linuxserver/budge:latest
    container_name: budge
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - ./config:/config
    ports:
      - 7100:80
      - 7143:443
    restart: unless-stopped

Latest ngix log (from the config mount):

192.168.2.31 - - [08/Jun/2022:16:02:28 -0400] "GET /api/ping HTTP/1.1" 404 143 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0"

The only thing that appears running is adding accounts and adding transactions into accounts. So its not totaly dead ;-)

Kjeldgaard commented 2 years ago

One strange thing I just discovered is that the budge container is using 20%-30% CPU load ... when doing nothing (at least nothing I can think of).

image

I'm seeing the same, one core is utilized 100% and constantly writing too disk. I only noticed because my SSD temperature rose above the warning level.

Tritiumnzlol commented 2 years ago

I also ran into the original message's issue when editing the budget column... it reverts back to 0.

I can see in my browser network log the PUT request that gets triggered is timing out.

When trying my equivalent of hitting /api/ping as suggested above I'm returned the message:

Cannot GET /ping

As others have found, I can add transactions and other actions okay, so its not completely broken.

Fairly usual install, TZ=Pacific/Auckland, and changed the currency to NZD.

stojg commented 2 years ago

Same as above, NZD and same TZ, current month is december (?) and I can jump to today. Can add an account but that is about what I can do. Exactly the same setup and 20-25% cpu usage with this docker-swarm / composer install frmo linuxserver.io.

Tritiumnzlol commented 1 year ago

NZD and same TZ

Implies it is related to how we do dd-MM-yyyy date format. :(