SvbZ3r0 Posted February 29 Share Posted February 29 (edited) I have had firefly installed for quite a while, but haven't used it in over a year. I just got back and see this: Is this normal? The image used is fireflyiii/core:latest, and unRaid assures me there are no pending updates. There's placeholder text everywhere, in case it's not apparent. And not just on this page either. Edited February 29 by SvbZ3r0 Quote Link to comment
SvbZ3r0 Posted March 1 Share Posted March 1 23 hours ago, SvbZ3r0 said: I have had firefly installed for quite a while, but haven't used it in over a year. I just got back and see this: Is this normal? The image used is fireflyiii/core:latest, and unRaid assures me there are no pending updates. There's placeholder text everywhere, in case it's not apparent. And not just on this page either. To anybody else who has this problem, it was because I had FIREFLY_III_LAYOUT set to v2. The v2 layout has been merged into the main branch, so this is unneccessary. Just leave the variable empty in the template. Quote Link to comment
maddog Posted April 29 Share Posted April 29 i was trying to move to docker compose version: '3.3' services: app: image: fireflyiii/core:latest hostname: app container_name: firefly_iii_core networks: - firefly restart: always volumes: - firefly_iii_upload:/var/www/html/storage/upload env_file: .env ports: - '7500:8080' depends_on: - db2 db2: image: mariadb:lts hostname: db2 container_name: firefly_iii_db networks: - firefly restart: always env_file: .env volumes: - firefly_iii_db:/var/lib/mysql cron: # # To make this work, set STATIC_CRON_TOKEN in your .env file or as an environment variable and replace REPLACEME below # The STATIC_CRON_TOKEN must be *exactly* 32 characters long # image: alpine container_name: firefly_iii_cron restart: always command: sh -c "echo \"0 3 * * * wget -qO- http://app:7500/api/v1/cron/STATIC_CRON_TOKEN\" | crontab - && crond -f -L /dev/stdout" networks: - firefly volumes: firefly_iii_upload: firefly_iii_db: networks: firefly: driver: bridge env file APP_ENV=local APP_DEBUG=true APP_KEY=<key> TZ=America/Los_Angeles MARIADB_RANDOM_ROOT_PASSWORD=true MYSQL_RANDOM_ROOT_PASSWORD=true DB_CONNECTION=mysql DB_HOST=db DB_PORT=3306 DB_DATABASE=firefly2 DB_USERNAME=firefly_user DB_PASSWORD=<pwd> STATIC_CRON_TOKEN=<token> but still getting this error on UI page: Could not poll the database: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: Name or service not known (Connection: mysql, SQL: select `id`, `name`, `data` from `configuration` where `name` = is_demo_site and `configuration`.`deleted_at` is null limit 1) in logs (multilple similar errors) [previous exception] [object] (PDOException(code: 0): PDO::__construct(): php_network_getaddresses: getaddrinfo for db failed: Name or service not known at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65) DB pod is running, can log into it. what am i missing? Quote Link to comment
007craft Posted May 21 Share Posted May 21 (edited) Edit: Solved my own issue (Which is what usually happens). Anyway, the solution was to uncheck "Confidential" when creating a new client in Firefly 3. I spun up firefly 3 docker. got it working Spun up firefly3 data importer docker, but this is where the problem begins. I have to enter 2 fields here: Firefly III URL: Client ID: So I head over to my firefly3 instance, click profile, click oauth and create a client using the callback url I was given from the importer (http://192.168.1.102:8401/callback) Ok back to Importer. Client ID appears to be 2. Not sure what to enter for Firefly III url? I enter the url for my firefly 3 instance (seems obvious). I enter: http://192.168.1.102:8400 Ok got the info I need: Firefly III URL: http://192.168.1.102:8400 Client ID: 2 I push submit. It appears to work because if I put other data, I get nothing, but putting the data as is, I get this: Firefly III v6.1.16 Authorization Request Application "firefly" is requesting permission to access your financial administration. Would you like to authorize firefly to access these records? You will be redirected to http://192.168.1.102 which will then be able to access your Firefly III data. I click Authorize, but then get a 500 Server Error Log shows this: [2024-05-20 21:55:14] production.ERROR: Client exception when decoding response: Client error: `POST http://192.168.1.102:8400/oauth/token` resulted in a `401 Unauthorized` response: {"error":"invalid_client","error_description":"Client authentication failed","message":"Client authentication failed"} [2024-05-20 21:55:14] production.ERROR: Response from server: "{"error":"invalid_client","error_description":"Client authentication failed","message":"Client authentication failed"}" [2024-05-20 21:55:14] production.ERROR: View [error] not found. {"exception":"[object] (InvalidArgumentException(code: 0): View [error] not found. at /var/www/html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:139) Edited June 3 by 007craft 1 Quote Link to comment
ddloads Posted June 16 Share Posted June 16 On 5/20/2024 at 11:55 PM, 007craft said: Edit: Solved my own issue (Which is what usually happens). Anyway, the solution was to uncheck "Confidential" when creating a new client in Firefly 3. I spun up firefly 3 docker. got it working Spun up firefly3 data importer docker, but this is where the problem begins. I have to enter 2 fields here: Firefly III URL: Client ID: So I head over to my firefly3 instance, click profile, click oauth and create a client using the callback url I was given from the importer (http://192.168.1.102:8401/callback) Ok back to Importer. Client ID appears to be 2. Not sure what to enter for Firefly III url? I enter the url for my firefly 3 instance (seems obvious). I enter: http://192.168.1.102:8400 Ok got the info I need: Firefly III URL: http://192.168.1.102:8400 Client ID: 2 I push submit. It appears to work because if I put other data, I get nothing, but putting the data as is, I get this: Firefly III v6.1.16 Authorization Request Application "firefly" is requesting permission to access your financial administration. Would you like to authorize firefly to access these records? You will be redirected to http://192.168.1.102 which will then be able to access your Firefly III data. I click Authorize, but then get a 500 Server Error Log shows this: [2024-05-20 21:55:14] production.ERROR: Client exception when decoding response: Client error: `POST http://192.168.1.102:8400/oauth/token` resulted in a `401 Unauthorized` response: {"error":"invalid_client","error_description":"Client authentication failed","message":"Client authentication failed"} [2024-05-20 21:55:14] production.ERROR: Response from server: "{"error":"invalid_client","error_description":"Client authentication failed","message":"Client authentication failed"}" [2024-05-20 21:55:14] production.ERROR: View [error] not found. {"exception":"[object] (InvalidArgumentException(code: 0): View [error] not found. at /var/www/html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:139) I'm getting the same issue as you but I already unchecked the "Confidential" box Quote Link to comment
plantsandbinary Posted August 9 Share Posted August 9 Could someone please tell me how they set up cronjobs for Firefly III using this container? I have just started using it and I put in a whole bunch of automations but it's telling me that the cronjob has never run. It would be really nice if when the container was made, some kind of cron could be expressed in the container template. I've checked the documentation but there's 10 different ways to do this so I am not sure which I should pick because obviously I need it to be persistent and survive docker updates. Thanks for any information! Quote Link to comment
Bruceflix Posted 21 hours ago Share Posted 21 hours ago On 8/9/2024 at 10:21 PM, plantsandbinary said: Could someone please tell me how they set up cronjobs for Firefly III using this container? Creat a user script to run this command: docker exec --user www-data Firefly-III /usr/local/bin/php /var/www/html/artisan firefly-iii:cron Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.