Todoist migration not working (tls: failed to verify certificate)

Hello all!

I’ve been trying to get todoist migration working for quite a while but I am failling.
Now I am stalling after clicking “get started”. Below I will provide the logs.

But there is another thing. The migrantion won’t work but after the first time I click “get started” I cannot try it again for the same user because I get “A migration is currently in progress. Please wait until it is done.” So every time I wanna try something else I have to create a new user…

Logs:

2024-03-08T18:35:15.367323134Z: WEB 	▶ 200.149.199.1  GET 304 /sw.js 420.148µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:15.759493952Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/tasks/all?sort_by[]=due_date&sort_by[]=id&order_by[]=asc&order_by[]=desc&filter_by[]=done&filter_value[]=false&filter_comparator[]=equals&filter_concat=and&filter_include_nulls=false&page=1 29.644652ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:16.660985258Z: WEB 	▶ 200.149.199.1  GET 304 /assets/Migration-BjKbnmVG.css 771.372µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:16.661032058Z: WEB 	▶ 200.149.199.1  GET 304 /assets/Migration-DTLLLvFn.js 689.705µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:18.530437658Z: WEB 	▶ 200.149.199.1  POST 200 /api/v1/user/token 2.606981ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:18.550915337Z: DEBUG	▶ initials/GetAvatar 16d Serving initials avatar for user 7 and size 50 from cache
2024-03-08T18:35:18.551057855Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/avatar/tcpr7?size=50&=1709922918533 3.074099ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:18.551856538Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/user 3.095543ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:18.562498554Z: DEBUG	▶ initials/GetAvatar 170 Serving initials avatar for user 7 and size 50 from cache
2024-03-08T18:35:18.56264026Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/avatar/tcpr7?size=50&=1709922918547 3.243633ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:18.605350191Z: WEB 	▶ 200.149.199.1  GET 200 / 377.406µs - Uptime-Kuma/1.23.11
2024-03-08T18:35:21.109195284Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/migration/todoist/auth 489.316µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:23.592225375Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/notifications?page=1 6.418511ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.033858526Z: WEB 	▶ 200.149.199.1  GET 200 /migrate/todoist?code=de56f939da775e515548568e544d0a89da62ad22&state=3YZpsZferYO7fFf7gjiLXopWfsILvHZL 965.015µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.062050735Z: WEB 	▶ 200.149.199.1  GET 304 /assets/index-DzHKVZL6.js 440.389µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.064334555Z: WEB 	▶ 200.149.199.1  GET 304 /assets/index-yR7rFHjp.css 352.382µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.197584101Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/info 406.711µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.202304069Z: WEB 	▶ 200.149.199.1  GET 304 /assets/MigrationHandler-BOaXmHEr.css 412.791µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.203397141Z: WEB 	▶ 200.149.199.1  GET 304 /assets/migrators-DW38E8TT.js 549.754µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.203455541Z: WEB 	▶ 200.149.199.1  GET 304 /assets/MigrationHandler-B7_njJ2N.js 530.605µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.220931197Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/user 2.892662ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.22430782Z: WEB 	▶ 200.149.199.1  GET 304 /manifest.webmanifest 429.037µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.267137543Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/migration/todoist/auth 456.06µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.270175727Z: DEBUG	▶ initials/GetAvatar 175 Serving initials avatar for user 7 and size 50 from cache
2024-03-08T18:35:27.270379759Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/avatar/tcpr7?size=50&=1709922927217 3.70712ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.276213791Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/notifications?page=1 8.776413ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.283537219Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/migration/todoist/status 3.466247ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.299212052Z: WEB 	▶ 200.149.199.1  POST 200 /api/v1/migration/todoist/migrate 3.44309ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.299642709Z: DEBUG	▶ [EVENTS] 17f Sending msg to subscriber, message_uuid=d54af52e-d1d9-45d0-93cc-910af61b72a5, topic=migration.requested
2024-03-08T18:35:27.300046346Z: DEBUG	▶ [EVENTS] 180 Received message, message_uuid=d54af52e-d1d9-45d0-93cc-910af61b72a5
2024-03-08T18:35:27.300973584Z: DEBUG	▶ [EVENTS] 181 Sent message to subscriber, message_uuid=d54af52e-d1d9-45d0-93cc-910af61b72a5, topic=migration.requested
2024-03-08T18:35:27.30503166Z: DEBUG	▶ handler/Handle 183 [Migration] Starting migration 37 from todoist for user 7
2024-03-08T18:35:27.305447065Z: DEBUG	▶ todoist/Migrate 184 [Todoist Migration] Starting migration for user 7
2024-03-08T18:35:27.314543431Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/labels?page=1 47.802819ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.319951285Z: WEB 	▶ 200.149.199.1  GET 200 /api/v1/projects?is_archived=true&page=1 52.453956ms - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:27.525209213Z: DEBUG	▶ handler/Handle 191 [Migration] Starting migration 38 from todoist for user 7
2024-03-08T18:35:27.525385623Z: DEBUG	▶ todoist/Migrate 192 [Todoist Migration] Starting migration for user 7
2024-03-08T18:35:27.572354474Z: ERROR	▶ [EVENTS] 193 Error occurred, retrying: Post "https://todoist.com/oauth/access_token": tls: failed to verify certificate: x509: certificate signed by unknown authority, max_retries=5, wait_time=179.477028ms, elapsed_time=231.096756ms, retry_no=1
2024-03-08T18:35:27.66211976Z: DEBUG	▶ handler/Handle 195 [Migration] Starting migration 39 from todoist for user 7
2024-03-08T18:35:27.662273196Z: DEBUG	▶ todoist/Migrate 196 [Todoist Migration] Starting migration for user 7
2024-03-08T18:35:27.693323217Z: ERROR	▶ [EVENTS] 197 Error occurred, retrying: Post "https://todoist.com/oauth/access_token": tls: failed to verify certificate: x509: certificate signed by unknown authority, max_retries=5, wait_time=83.536386ms, elapsed_time=352.132425ms, retry_no=2
2024-03-08T18:35:28.266290292Z: DEBUG	▶ handler/Handle 199 [Migration] Starting migration 40 from todoist for user 7
2024-03-08T18:35:28.266405609Z: DEBUG	▶ todoist/Migrate 19a [Todoist Migration] Starting migration for user 7
2024-03-08T18:35:28.303558504Z: ERROR	▶ [EVENTS] 19b Error occurred, retrying: Post "https://todoist.com/oauth/access_token": tls: failed to verify certificate: x509: certificate signed by unknown authority, retry_no=3, max_retries=5, wait_time=568.253584ms, elapsed_time=962.364617ms
2024-03-08T18:35:28.884900444Z: WEB 	▶ 200.149.199.1  GET 304 /sw.js 461.958µs - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
2024-03-08T18:35:29.523958051Z: DEBUG	▶ handler/Handle 19d [Migration] Starting migration 41 from todoist for user 7
2024-03-08T18:35:29.524171581Z: DEBUG	▶ todoist/Migrate 19e [Todoist Migration] Starting migration for user 7
2024-03-08T18:35:29.557646405Z: ERROR	▶ [EVENTS] 19f Error occurred, retrying: Post "https://todoist.com/oauth/access_token": tls: failed to verify certificate: x509: certificate signed by unknown authority, elapsed_time=2.216435928s, retry_no=4, max_retries=5, wait_time=1.215545385s
2024-03-08T18:35:29.949396646Z: DEBUG	▶ handler/Handle 1a1 [Migration] Starting migration 42 from todoist for user 7
2024-03-08T18:35:29.949562964Z: DEBUG	▶ todoist/Migrate 1a2 [Todoist Migration] Starting migration for user 7
2024-03-08T18:35:29.980621555Z: ERROR	▶ [EVENTS] 1a3 Error occurred, retrying: Post "https://todoist.com/oauth/access_token": tls: failed to verify certificate: x509: certificate signed by unknown authority, wait_time=386.931609ms, elapsed_time=2.639401966s, retry_no=5, max_retries=5
2024-03-08T18:35:29.980801127Z: DEBUG	▶ [EVENTS] 1a4 Message acked, message_uuid=d54af52e-d1d9-45d0-93cc-910af61b72a5
2024-03-08T18:35:29.980928857Z: DEBUG	▶ [EVENTS] 1a5 Sending msg to subscriber, message_uuid=d54af52e-d1d9-45d0-93cc-910af61b72a5, topic=poison
2024-03-08T18:35:29.981097333Z: DEBUG	▶ [EVENTS] 1a7 Sent message to subscriber, topic=poison, message_uuid=d54af52e-d1d9-45d0-93cc-910af61b72a5
2024-03-08T18:35:29.980958514Z: DEBUG	▶ [EVENTS] 1a6 Message acked, message_uuid=d54af52e-d1d9-45d0-93cc-910af61b72a5, topic=migration.requested
2024-03-08T18:35:29.981315343Z: DEBUG	▶ [EVENTS] 1a8 Received message, message_uuid=d54af52e-d1d9-45d0-93cc-910af61b72a5
2024-03-08T18:35:29.981385032Z: ERROR	▶ events/func1 1a9 Error while handling message d54af52e-d1d9-45d0-93cc-910af61b72a5, handler_poisoned=migration.requested.migration.listener, subscriber_poisoned=gochannel.GoChannel, reason_poisoned=Post "https://todoist.com/oauth/access_token": tls: failed to verify certificate: x509: certificate signed by unknown authority, topic_poisoned=migration.requested,  payload={"migrator":{"code":"de56f939da775e515548568e544d0a89da62ad22"},"user":{"id":7,"name":"","username":"tcpr7","email":"xxx+tcpr7@gmail.com","created":"0001-01-01T00:00:00Z","updated":"0001-01-01T00:00:00Z"},"migrator_kind":"todoist"}

Any idea how can I fix it? Thanks!

Which Vikunja version are you using?

Version: v0.23.0+94-a99e7f9aa3

That has been fixed in e42a605597, please update to the latest unstable build.

It worked! Thanks!

Just one other thing now… The old users stiil gets “A migration is currently in progress. Please wait until it is done.". I tryied to delete those accounts, but I am getting the message that was sucessful although it won’t actually delete it. Must I have emailing setup to be able to confirm?
Is there another way to easily reset accounts? Some config file to delete or edit?

Again, thank you! I am really happy to get it working.

User deletion happens with a three day grace period. Check out the cli if you want to delete users right away.

All good. Thanks, again!