You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like I'm probably missing something simple here.
I have been using remark42 for a while now and everything is working fine. But now I finally decided to take care of automating backups/restores and am running into an issue:
When I try to run this command:
docker exec -it remark42 backup -s mysite
It says that mandatory parameter --admin-passwd is missing.
I assumed I didn't need an admin password in my production instance since in the docs it is said:
make sure you don't keep ADMIN_PASSWD=something... for any non-development deployments
But now it seems it is required by the backup command.
Anyway, I updated my docker-compose.yml to include an admin password and yet, when I tried to pass it to the command, I am getting a 401 Unauthorized error.
yes, the admin password is indeed required to secure the backup/restore endpoints. This is done to allow access to protected /admin/export and /admin/import APIs.
Btw, you should have automated backups active already, making a backup file every 24h and keeping up to MAX_BACKUP_FILES (default 10) in BACKUP_PATH location (default ./var/backup)
regarding "tried to pass it to the command, I am getting a 401 Unauthorized error." - are you sure you have restarted the container after the change?
you can see all the variables you set with `docker exec -it -it remark42 sh -c "export"
you can also try to run the command directly, and pass the password, like this docker exec -it remark42 /srv/remark42 backup --site=your-site --admin-passwd=password
Hello,
I feel like I'm probably missing something simple here.
I have been using remark42 for a while now and everything is working fine. But now I finally decided to take care of automating backups/restores and am running into an issue:
When I try to run this command:
docker exec -it remark42 backup -s mysite
It says that mandatory parameter
--admin-passwd
is missing.I assumed I didn't need an admin password in my production instance since in the docs it is said:
Anyway, I updated my
docker-compose.yml
to include an admin password and yet, when I tried to pass it to the command, I am getting a 401 Unauthorized error.Here's my
docker-compose.yml
:All the referenced environment variables are in a
remark42.env
file next todocker-compose.yml
.I'm sure I'm missing something simple but I don't know what it is. Please advise.
Thanks in advance.
Regards.
The text was updated successfully, but these errors were encountered: