Recently I migrated my site to a new server. I have been trying to get it online at 100% since. However the ActivityPub module doesn't seem to want to cooperate.
I have managed to get it visable through Fedidb.com but I can't get it to see the old accounts or for new posts to be seen.
One message I have gotten is
Outbox exception to https://social.mechanizedarmadillo.com/inbox for 777 to https://social.mechanizedarmadillo.com/inbox: Client error: `POST https://social.mechanizedarmadillo.com/inbox` resulted in a `401 Unauthorized` response: {"error":"Could not refresh public key https://hybridized-concepts.com/user/1/activitypub/CWSmith#main-key"}
When I check the backup file it seems that no keys migrated along with the files and now the old server is erased.
Could use some suggestions. Worried file permissions may be an issue as well.
Issue fork activitypub-3584349
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
swentel commentedOh, your keys don't exist anymore then? Crap, yeah, the UI doesn't check that, I'll try to fix that.
I've committed code that adds a drush command, but that won't work if you are not on the latest dev version, so underneath is the code that should work if you add that to ActivityPubCommands.php:
To run: drush activitypub:generate-keys {name}
name is the name of the actor you configured at user/1/activitypub/settings , without the domain. e.g. in my case, it's just 'swentel'.
Comment #6
swentel commentedThis has been committed to dev.
It should be save to install the dev version which allows you to (re)generate the keys via the ui too (on user/x/activitypub/settings)
Or use the drush command in the previous comment.
However, do not enable the api modules, that's still in very active development!