budge icon indicating copy to clipboard operation
budge copied to clipboard

Not able to enter budget value

Open bergziege opened this issue 2 years ago • 12 comments

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.

  • Click a field in the "budgeted" column
  • Changes to an input field with "0"
  • Typing "50" + ENTER
  • Changes back to normal text and showing "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

bergziege avatar Jun 06 '22 07:06 bergziege

Can you share your docker logs after this issue occurs?

alex-phillips avatar Jun 06 '22 15:06 alex-phillips

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.

Kjeldgaard avatar Jun 07 '22 09:06 Kjeldgaard

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 ;-)

bergziege avatar Jun 08 '22 04:06 bergziege

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.

alex-phillips avatar Jun 08 '22 16:06 alex-phillips

Well, maybe we are onto something.

  • set month to August
  • clear log
  • click in "Rent" - "Budgeted"
  • enter "50"
  • press Enter

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 avatar Jun 08 '22 17:06 bergziege

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

bergziege avatar Jun 08 '22 18:06 bergziege

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?

alex-phillips avatar Jun 08 '22 19:06 alex-phillips

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 ;-)

bergziege avatar Jun 08 '22 20:06 bergziege

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.

Kjeldgaard avatar Jun 09 '22 05:06 Kjeldgaard

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.

Tritiumnzlol avatar Sep 25 '22 10:09 Tritiumnzlol

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.

stojg avatar Nov 02 '22 05:11 stojg

NZD and same TZ

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

Tritiumnzlol avatar Nov 19 '22 23:11 Tritiumnzlol