-
Hi all. I'm a "power user" but not fully educated on these matters so chances are I've been missing some small pieces which are hindering me from successfully run FF3 & DataImporter. Environment
Symptoms
[2025-07-11 11:42:11] local.DEBUG: Query parameters are {"client_id":2,"redirect_uri":"https://importer.my.firefly.cloud/callback","response_type":"code","scope":"","state":"upFpBuZvNTWyMZSIPG2bL8wI8dw1k8RC25OSFzTP","code_challenge":"FFrjLiCTEnNvbbIO9bW3T_e2PAXejcOd05AsvY6g1Bc","code_challenge_method":"S256"} No error is logged, but the callback is never triggered
config filesdocker-compose.yamlservices:
app:
image: fireflyiii/core:latest
hostname: firefly_iii_core
container_name: firefly_iii_core
networks:
firefly_net:
ipv4_address: 172.18.0.4
restart: always
volumes:
- firefly_iii_upload:/var/www/html/storage/upload
env_file: .env
ports:
- '8080:8080'
depends_on:
- db
db:
image: mariadb:lts
hostname: db
container_name: firefly_iii_db
networks:
- firefly_net
restart: always
env_file: .db.env
volumes:
- firefly_iii_db:/var/lib/mysql
importer:
image: fireflyiii/data-importer:latest
hostname: importer
restart: always
container_name: firefly_iii_importer
environment:
- NGINX_ENABLE_HTTPS=true
- NGINX_SSL_HEADERS=on
- PROXY_FORCE_HTTPS=true
- TRUSTED_PROXIES=**
networks:
- firefly_net
ports:
- '81:8080'
depends_on:
- app
env_file: .importer.env
cron:
image: alpine
container_name: firefly_iii_cron
restart: always
command: sh -c "
apk add tzdata
&& ln -s /usr/share/zoneinfo/${TZ} /etc/localtime
| echo \"0 3 * * * wget -qO- http://firefly_iii_core:8080/api/v1/cron/some_static_token;echo\"
| crontab -
&& crond -f -L /dev/stdout"
networks:
- firefly_net
volumes:
firefly_iii_upload:
firefly_iii_db:
networks:
firefly_net:
driver: bridge
ipam:
config:
- subnet: "172.18.0.0/16" # Subnet explícita
gateway: 172.18.0.1
.env (mostly untouched, here are only the edited params)TRUSTED_PROXIES=**
STATIC_CRON_TOKEN=same token as in docker-compose.yml
FORCE_HTTPS=true
PROXY_FORCE_HTTPS=true
SESSION_SECURE_COOKIE=true
.importer.envFIREFLY_III_URL=http://172.18.0.4:8080
VANITY_URL=https://my.firefly.cloud
FIREFLY_III_ACCESS_TOKEN=
FIREFLY_III_CLIENT_ID=
EXPECT_SECURE_URL=true
# Custom to make the reverse proxy (apache2) work
PROXY_FORCE_HTTPS=true
SESSION_SECURE_COOKIE=true
SKIP_CONNECTION_CHECK=true
FIREFLY_III_HEADERS='{"Accept": "application/json", "Content-Type": "application/json"}'
Client on FF3ID:2 logs on data importer while trying to enter the client ID[2025-07-11 12:29:36] local.DEBUG: Now at App\Http\Controllers\TokenController::submitClientId
[2025-07-11 12:29:36] local.DEBUG: Submitted data: {"client_id":"2"}
[2025-07-11 12:29:36] local.DEBUG: [a] Base URL is "http://172.18.0.4:8080" (based on "FIREFLY_III_URL")
[2025-07-11 12:29:36] local.DEBUG: [b] Vanity URL is now "http://172.18.0.4:8080" (based on "FIREFLY_III_URL")
[2025-07-11 12:29:36] local.DEBUG: [c] Vanity URL is now "https://my.firefly.cloud" (based on "VANITY_URL")
[2025-07-11 12:29:36] local.DEBUG: Now in App\Http\Controllers\TokenController::redirectForPermission(request, "http://172.18.0.4:8080", "https://my.firefly.cloud", 2)
[2025-07-11 12:29:36] local.DEBUG: Query parameters are {"client_id":2,"redirect_uri":"https://importer.my.firefly.cloud/callback","response_type":"code","scope":"","state":"3Qujh6Re6j9TMdBjzHSEvdRLQar6U6gYSMbgusRL","code_challenge":"6rgDrH4BNQRQ3bNjRHJqBUd5VshJaDUMYQE9d1rw8XQ","code_challenge_method":"S256"}
[2025-07-11 12:29:36] local.DEBUG: Now redirecting to "https://my.firefly.cloud/oauth/authorize?" (params omitted)
172.18.0.1 - - [11/Jul/2025:12:29:36 -0300] "POST /token/client_id HTTP/1.1" 302 1486 "https://importer.my.firefly.cloud/token" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2" Any clue? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Hey, thanks for starting this discussion. You say you're on latest, but latest is 6.2.20, not 5.7.x. Could you verify you're actually on the latest release? Cheers, |
Beta Was this translation helpful? Give feedback.
-
Alright, what does Firefly III log about the incoming request? Are you send back and forward properly? |
Beta Was this translation helpful? Give feedback.
-
@JC5 for your information I've just pulled the new version 1.7.6 of Data Importer. The problem still persists. Used client 2, same as above. Importer logs✅ NGINX + PHP-FPM is running correctly.
[2025-07-15 10:21:59] local.DEBUG: [1.7.6] Now in App\Http\Controllers\IndexController::index
[2025-07-15 10:21:59] local.DEBUG: App\Services\Shared\Authentication\SecretManager::hasValidSecrets
[2025-07-15 10:21:59] local.DEBUG: No access token in session, will return header or config variable.
[2025-07-15 10:21:59] local.DEBUG: Access token in header is empty, will be ignored.
[2025-07-15 10:21:59] local.DEBUG: Access token is null, use config instead.
[2025-07-15 10:21:59] local.DEBUG: No valid secrets, redirect to token.index
172.18.0.1 - - [15/Jul/2025:10:21:59 -0300] "GET / HTTP/1.1" 302 430 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
[2025-07-15 10:22:00] local.DEBUG: Now at App\Http\Controllers\TokenController::index
[2025-07-15 10:22:00] local.DEBUG: No access token in session, will return header or config variable.
[2025-07-15 10:22:00] local.DEBUG: Access token in header is empty, will be ignored.
[2025-07-15 10:22:00] local.DEBUG: Access token is null, use config instead.
[2025-07-15 10:22:00] local.DEBUG: No client id in hasClientId() session, will return config variable.
[2025-07-15 10:22:00] local.DEBUG: No base url in getBaseUrl() session, will return config variable.
[2025-07-15 10:22:00] local.DEBUG: No vanity url in getVanityUrl() session, will return config variable.
[2025-07-15 10:22:00] local.INFO: [1.7.6] The following configuration information was found:
[2025-07-15 10:22:00] local.INFO: Personal Access Token: "" (limited to 25 chars if present)
[2025-07-15 10:22:00] local.INFO: Client ID : "0"
[2025-07-15 10:22:00] local.INFO: Base URL : "http://172.18.0.4:8080"
[2025-07-15 10:22:00] local.INFO: Vanity URL : "https://my.firefly.cloud"
172.18.0.1 - - [15/Jul/2025:10:22:00 -0300] "GET /token HTTP/1.1" 200 4725 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
[2025-07-15 10:22:19] local.DEBUG: Now at App\Http\Controllers\TokenController::submitClientId
[2025-07-15 10:22:19] local.DEBUG: Submitted data: {"client_id":"2"}
[2025-07-15 10:22:19] local.DEBUG: [a] Base URL is "http://172.18.0.4:8080" (based on "FIREFLY_III_URL")
[2025-07-15 10:22:19] local.DEBUG: [b] Vanity URL is now "http://172.18.0.4:8080" (based on "FIREFLY_III_URL")
[2025-07-15 10:22:19] local.DEBUG: [c] Vanity URL is now "https://my.firefly.cloud" (based on "VANITY_URL")
[2025-07-15 10:22:19] local.DEBUG: Now in App\Http\Controllers\TokenController::redirectForPermission(request, "http://172.18.0.4:8080", "https://contas.jecogeo.cloud", 2)
[2025-07-15 10:22:19] local.DEBUG: Query parameters are {"client_id":2,"redirect_uri":"https://importer.my.firefly.cloud/callback","response_type":"code","scope":"","state":"kx90o6CazfaS99pCg5ppzEDuG9dkGM6cjVgZ6Kxy","code_challenge":"H5YQYizvXudtKQd0Mx-A25CPUXcb4Ap4i2oOaOnu-LU","code_challenge_method":"S256"}
[2025-07-15 10:22:19] local.DEBUG: Now redirecting to "https://my.firefly.cloud/oauth/authorize?" (params omitted)
172.18.0.1 - - [15/Jul/2025:10:22:19 -0300] "POST /token/client_id HTTP/1.1" 302 1486 "https://importer.my.firefly.cloud/token" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
FF3 logs✅ NGINX + PHP-FPM is running correctly.
172.18.0.1 - - [15/Jul/2025:10:21:30 -0300] "GET / HTTP/1.1" 302 394 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:30 -0300] "GET /login HTTP/1.1" 200 1674 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:36 -0300] "POST /login HTTP/1.1" 302 370 "https://my.firefly.cloud/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:36 -0300] "GET / HTTP/1.1" 200 6141 "https://my.firefly.cloud/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:38 -0300] "GET /v1/jscript/variables?ext=.js&v=6.2.20 HTTP/1.1" 200 3183 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:38 -0300] "GET /chart/account/frontpage HTTP/1.1" 200 290 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:38 -0300] "GET /chart/budget/frontpage HTTP/1.1" 200 146 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:39 -0300] "GET /chart/account/expense HTTP/1.1" 200 33 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:39 -0300] "GET /chart/category/frontpage HTTP/1.1" 200 33 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:39 -0300] "GET /chart/account/revenue HTTP/1.1" 200 33 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:39 -0300] "GET /json/frontpage/piggy-banks HTTP/1.1" 200 42 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:39 -0300] "GET /manifest.webmanifest?v=3e8AboOwbd HTTP/1.1" 200 2347 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:21:39 -0300] "GET /api/v1/summary/basic?start=2025-07-01&end=2025-07-31 HTTP/1.1" 200 352 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:22:07 -0300] "GET /profile HTTP/1.1" 200 6986 "https://my.firefly.cloud/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:22:08 -0300] "GET /v1/jscript/variables?ext=.js&v=6.2.20 HTTP/1.1" 200 3183 "my.firefly.cloud/profile" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:22:09 -0300] "GET /oauth/tokens HTTP/1.1" 200 33 "https://my.firefly.cloud/profile" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:22:09 -0300] "GET /oauth/personal-access-tokens HTTP/1.1" 200 320 "https://my.firefly.cloud/profile" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:22:09 -0300] "GET /oauth/clients HTTP/1.1" 200 252 "https://my.firefly.cloud/profile" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
172.18.0.1 - - [15/Jul/2025:10:22:09 -0300] "GET /oauth/scopes HTTP/1.1" 200 33 "https://my.firefly.cloud/profile" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" "179.228.89.2"
|
Beta Was this translation helpful? Give feedback.
-
Alright does your browser console give you mixed content warnings? Because none of those screens look the way they're supposed to. |
Beta Was this translation helpful? Give feedback.
Oh boy... how good it is to be able to "talk" to someone. Thanks to your question I realized the issue was all about the CSP policies configuration of both of sites. They're hindering the proper communication between applications.
For future reference, the CSP of the Apache virtual hosts needs to allow forms and scripts (maybe?) between domains.
CSP on FF3 virtual host
Header always set Content-Security-Policy "default-src 'self' https://importer.my.firefly.cloud; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://importer.my.firefly.cloud; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' https: data:; connect-src 'self' https://importer.my.firefly.cloud…