umputun / remark42

comment engine
https://remark42.com
MIT License
4.87k stars 377 forks source link

Unable to import from WordPress #1749

Closed ashishb closed 4 weeks ago

ashishb commented 6 months ago
  1. Start Remark42 following the docker-compose instructions here (with SECRET="testing" and REMARK_URL=http://localhost:8080)
  2. Importing from WordPress via instructions here https://remark42.com/docs/backup/migration/ return
    remark42 | 2024/03/12 00:49:52.294 [DEBUG] {middleware/auth.go:75 middleware.(*Authenticator).auth.func1} auth failed, can't get token: token cookie was not presented: http: named cookie not present

How should I provide the auth cookie for WordPress import?

paskal commented 6 months ago

Can you please post the docker-compose.yml and logs of remark42 from start to unsuccessful import, and commands you are running, with the redacted domain name and secrets? https://pastebin.com would be a good place for it.

ashishb commented 4 weeks ago

This works once the ADMIN_PASSWORD is set.

paskal commented 3 weeks ago

For the future generations, https://remark42.com/docs/backup/migration/ is the documentation which clarifies how to import comments from WordPress. I oversaw that it was missing in the original issue, as it mentions the necessity of the ADMIN_PASSWORD variable to be present.