budge icon indicating copy to clipboard operation
budge copied to clipboard

Account transaction not showing up in envelope

Open bergziege opened this issue 2 years ago • 3 comments

Hi, I am running 0.0.8 via Docker and I am not be able to see that a trasaction has any influence on my envelope.

  • Created a envelope "A"
  • Created a transaction "-50" for "A" for 6/6/2022 (or any other month)
  • Cleared the transaction
  • Viewing envelopes
  • The Transaction does not show up (no matter what month I select)

Expected:

  • Envelope "A" should show "-50" as activity

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

Could you share your docker logs? I'm curious if there is an API error happening. Following the steps described above with a new deployment / account, I do see a negative 50 value for that envelope.

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

Getting some transaction errors when trying to change the envelope a an existing transaction.

But also some other strange stuff going on. If I add a transaction on 6/6/22 it will show up on the right hand side bar but not in the table - but for the wrong month (showing in July instead of June).

In general everything seems to be very slow. Page updates, transactions appearing in the transaction table and so on. One last thing: As I am viewing the frontend on a german windows the Date/Year component (top left) does show the month names in german (but english in the popup) and showing "Juli" for both "June" and "July".

Even just made a quick reinstall and keept the timezone info at "America/New_York" but nothing changed.

> [email protected] start
> node build/src/server.js
!!!WARNING!!! Running in development mode!

TransactionAlreadyStartedError: Transaction already started for the given connection, commit current transaction before starting a new one.
    at TransactionAlreadyStartedError.TypeORMError [as constructor] (/app/budge/backend/node_modules/typeorm/error/TypeORMError.js:9:28)
    at new TransactionAlreadyStartedError (/app/budge/backend/node_modules/typeorm/error/TransactionAlreadyStartedError.js:12:23)
    at SqliteQueryRunner.<anonymous> (/app/budge/backend/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.js:60:35)
    at step (/app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:143:27)
    at Object.next (/app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:124:57)
    at /app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:117:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:113:16)
    at SqliteQueryRunner.AbstractSqliteQueryRunner.startTransaction (/app/budge/backend/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.js:54:24)
    at EntityManager.<anonymous> (/app/budge/backend/node_modules/typeorm/entity-manager/EntityManager.js:83:62)
TypeError: Cannot read property 'budgeted' of undefined
    at CategoryMonthSubscriber.<anonymous> (/app/budge/backend/build/src/subscribers/CategoryMonthSubscriber.js:75:48)
    at Generator.next (<anonymous>)
    at fulfilled (/app/budge/backend/build/src/subscribers/CategoryMonthSubscriber.js:11:58)
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
}
TransactionAlreadyStartedError: Transaction already started for the given connection, commit current transaction before starting a new one.
    at TransactionAlreadyStartedError.TypeORMError [as constructor] (/app/budge/backend/node_modules/typeorm/error/TypeORMError.js:9:28)
    at new TransactionAlreadyStartedError (/app/budge/backend/node_modules/typeorm/error/TransactionAlreadyStartedError.js:12:23)
    at SqliteQueryRunner.<anonymous> (/app/budge/backend/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.js:60:35)
    at step (/app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:143:27)
    at Object.next (/app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:124:57)
    at /app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:117:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:113:16)
    at SqliteQueryRunner.AbstractSqliteQueryRunner.startTransaction (/app/budge/backend/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.js:54:24)
    at EntityManager.<anonymous> (/app/budge/backend/node_modules/typeorm/entity-manager/EntityManager.js:83:62)
    at step (/app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:143:27)

    at Object.next (/app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:124:57)

    at /app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:117:75

    at new Promise (<anonymous>)

    at Object.__awaiter (/app/budge/backend/node_modules/typeorm/node_modules/tslib/tslib.js:113:16)

    at SqliteQueryRunner.AbstractSqliteQueryRunner.startTransaction (/app/budge/backend/node_modules/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.js:54:24)

    at EntityManager.<anonymous> (/app/budge/backend/node_modules/typeorm/entity-manager/EntityManager.js:83:62)

bergziege avatar Jun 06 '22 15:06 bergziege

Just set my browser (Firefox) to "en-us" now showing correct month names ... but "July" for "June" AND "July" ;-)

Everything from above still applies.

bergziege avatar Jun 06 '22 15:06 bergziege