Can't create new/admin account on self-hosted docker instance

Please fill in the questionnaire below.

Technical Help Questionnaire

Have you read and followed the instructions at: *READ ME FIRST* Technical Help FAQs - #2 by nigel ?

Answer: Yes

Self-Hosted Installation and Setup Questions

How have you self-hosted Baserow.

Using the “Quckstart” docker-compose file provided in the installation documentation. I have BASEROW_PUBLIC_URL pointed at http://hosts-static-local-ip. I’ve set the three mandatory variables in the example .env file provided. Have tried running via Portainer and the CLI.

What are the specs of the service or server you are using to host Baserow.

Quad-core ARM64 CPU @ 1.8Ghz with 8GB RAM

Which version of Baserow are you using.

1.22.3, but have also tried 1.22.2 and encountered the same issue

How have you configured your self-hosted installation?

version: "3.4"
    container_name: baserow
    image: baserow/baserow:1.22.3
      - "8888:80"
      - "4444:443"
      - /my/data/dir:/baserow/data

What commands if any did you use to start your Baserow server?

In portainer, deploy stack. In CLI, in the directory containing the docker-compose.yml and the .env files, docker compose up -d

Describe the problem

The container starts and is listed as “healthy.” When I point my browser at the public URL using the chosen port, I’m taken to the admin account creation screen. After completing the sign-up form and clicking the sign-up button, nothing happens. Looking in the browser console, I get the following error:

Object { message: "Invalid token specified", stack: "@\nf@\n@\n@\nf@\n@\nf@\n@\n@\nf@\n@\nf@\nt@\nr@\n@\n" }f64db50.js:2:57211

I’m able to access http://my_url:port/api/redoc/ without any issues.

Please attach full logs from all of Baserow’s services

 [EXPORT_WORKER][2024-02-06 09:10:03] [2024-02-06 09:10:03,965: INFO/ForkPoolWorker-1] Task[b36d9c86-eee5-440e-be6b-613164554426] succeeded in 0.10117633099434897s: None  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:03,972: INFO/MainProcess] Task[e77c713e-ac65-40c6-bef3-bcacd11a2180] received  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,101: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:04.101|INFO| - Updated a unknown number of rows in table 226's tsvs with optional field filter of [2108].  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,102: INFO/ForkPoolWorker-1] Task[3a743100-1c21-424d-98e8-27ff33f63beb] succeeded in 0.12848487299925182s: None  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,112: INFO/MainProcess] Task[88ececc1-e950-4efc-b11d-11eda8d0a887] received  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,205: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:04.204|INFO| - Updated a unknown number of rows in table 225's tsvs with optional field filter of [2100, 2102].  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,207: INFO/ForkPoolWorker-1] Task[c60b75a5-732f-482c-826d-606b4e258982] succeeded in 0.09919426700071199s: None  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,215: INFO/MainProcess] Task[e474ad7e-1c96-494b-b9e6-5e0f392e668b] received  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,304: INFO/MainProcess] Task[5063c76a-4945-4d4f-8a09-2c6e79c27318] received  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,344: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:04.343|INFO| - Updated a unknown number of rows in table 227's tsvs with optional field filter of [2114].  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,345: INFO/ForkPoolWorker-1] Task[e1084714-830e-4078-ab38-21f8d437b457] succeeded in 0.12779060900356853s: None  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,465: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:04.464|INFO| - Updated a unknown number of rows in table 228's tsvs with optional field filter of [2122].  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,466: INFO/ForkPoolWorker-1] Task[e77c713e-ac65-40c6-bef3-bcacd11a2180] succeeded in 0.11305859100684756s: None  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,473: INFO/MainProcess] Task[5e8eaab9-90f8-4d50-867a-c9e527ee644f] received  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,646: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:04.646|INFO| - Updated a unknown number of rows in table 224's tsvs with optional field filter of [2079].  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,647: INFO/ForkPoolWorker-1] Task[88ececc1-e950-4efc-b11d-11eda8d0a887] succeeded in 0.17251877099624835s: None  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,655: INFO/MainProcess] Task[643d47f2-76c9-4309-b22b-665c30da0d5a] received  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,820: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:04.820|INFO| - Updated a unknown number of rows in table 224's tsvs with optional field filter of [2090].  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,821: INFO/ForkPoolWorker-1] Task[e474ad7e-1c96-494b-b9e6-5e0f392e668b] succeeded in 0.1677259649950429s: None  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,833: INFO/MainProcess] Task[75a5f4dc-8ce2-48f3-bccb-97e3e067b2dc] received  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,927: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:04.926|INFO| - Updated a unknown number of rows in table 426's tsvs with optional field filter of [3972].  
 [EXPORT_WORKER][2024-02-06 09:10:04] [2024-02-06 09:10:04,927: INFO/ForkPoolWorker-1] Task[5063c76a-4945-4d4f-8a09-2c6e79c27318] succeeded in 0.09128918400529074s: None  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:04,935: INFO/MainProcess] Task[ad9b4e0f-6c73-4227-93fc-9d851207f3d5] received  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:05,070: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:05.069|INFO| - Updated a unknown number of rows in table 427's tsvs with optional field filter of [3978].  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:05,070: INFO/ForkPoolWorker-1] Task[5e8eaab9-90f8-4d50-867a-c9e527ee644f] succeeded in 0.13327231199946254s: None  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:05,079: INFO/MainProcess] Task baserow.core.notifications.tasks.singleton_send_instant_notifications_summary_by_email[87bc0389-14b3-4394-bc1a-6b258da01189] received  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:05,204: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:05.203|INFO| - Updated a unknown number of rows in table 429's tsvs with optional field filter of [4006].  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:05,205: INFO/ForkPoolWorker-1] Task[643d47f2-76c9-4309-b22b-665c30da0d5a] succeeded in 0.12481624600331997s: None  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:05,337: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:05.336|INFO| - Updated a unknown number of rows in table 428's tsvs with optional field filter of [3993].  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:05,337: INFO/ForkPoolWorker-1] Task[75a5f4dc-8ce2-48f3-bccb-97e3e067b2dc] succeeded in 0.12761728899931768s: None  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:05,462: WARNING/ForkPoolWorker-1] 417|2024-02-06 09:10:05.462|INFO| - Updated a unknown number of rows in table 495's tsvs with optional field filter of [4599].  
 [EXPORT_WORKER][2024-02-06 09:10:05] [2024-02-06 09:10:05,464: INFO/ForkPoolWorker-1] Task[ad9b4e0f-6c73-4227-93fc-9d851207f3d5] succeeded in 0.12154901000030804s: None  
 [BACKEND][2024-02-06 09:10:14] - "GET /api/_health/ HTTP/1.1" 200  
 [BACKEND][2024-02-06 09:10:34] - "GET /api/_health/ HTTP/1.1" 200  
 [BACKEND][2024-02-06 09:10:47] - "GET /api/_health/ HTTP/1.1" 200  
 [BACKEND][2024-02-06 09:10:55] - "GET /api/_health/ HTTP/1.1" 200  
 [CADDY][2024-02-06 09:10:56] {"level":"error","ts":1707210536.577482,"logger":"tls.obtain","msg":"will retry","error":"[localhost.doesnotexist.baserow] Obtain: [localhost.doesnotexist.baserow] creating new order: attempt 1: HTTP 400 urn:ietf:params:acme:error:rejectedIdentifier - Invalid DNS identifier [localhost.doesnotexist.baserow] (ca=","attempt":2,"retrying_in":120,"elapsed":67.420530645,"max_duration":2592000}  
 [CADDY][2024-02-06 09:10:56] {"level":"error","ts":1707210656.9375648,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"localhost.doesnotexist.baserow","issuer":"","error":"HTTP 400 urn:ietf:params:acme:error:rejectedIdentifier - Error creating new order :: Cannot issue for \"localhost.doesnotexist.baserow\": Domain name does not end with a valid public suffix (TLD)"}  
 [CADDY][2024-02-06 09:10:57] {"level":"warn","ts":1707210656.9386716,"logger":"tls.issuance.zerossl","msg":"missing email address for ZeroSSL; it is strongly recommended to set one for next time"}  
 [BEAT_WORKER][2024-02-06 09:11:00] [2024-02-06 09:10:00,042: INFO/MainProcess] Scheduler: Sending due task baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email() (baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email)  
 [EXPORT_WORKER][2024-02-06 09:11:00] [2024-02-06 09:10:05,528: INFO/ForkPoolWorker-1] Task baserow.core.notifications.tasks.singleton_send_instant_notifications_summary_by_email[87bc0389-14b3-4394-bc1a-6b258da01189] succeeded in 0.05856651700014481s: None  
 [EXPORT_WORKER][2024-02-06 09:11:00] [2024-02-06 09:11:00,029: INFO/MainProcess] Task baserow.core.notifications.tasks.beat_send_instant_notifications_summary_by_email[dbaf160d-cc2a-44ec-8966-cc3343e78877] received  

Fixed it. Switched over to a different browser and got a more useful error in the console there:

Access to XMLHttpRequest at '' from origin '' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

In the compose.yml file, I appended the port 8888 to BASE_PUBLIC_URL. All is well, now, both when accessing Baserow from my local IP and using a custom domain via a Caddy revers proxy

Hey @forkberg, welcome to the Baserow community!

Glad to hear you were able to fix the issue, and thank you for sharing the solution. It could be helpful for future readers. :pray: