-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Followers disappearing after upgrade to 6.0 #6131
Comments
From what I see from my instance it look like lon.tv has some issues
I would check if private/public keys are there as I had similar errors after upgrade to 6.0
select * from actor where "preferredUsername" = 'peertube' and "serverId" is null;
create js script example script.js const options = {
modulusLength: 2048,
publicKeyEncoding: {
type: 'spki',
format: 'pem'
},
privateKeyEncoding: {
type: 'pkcs1',
format: 'pem'
}
}
require('crypto').generateKeyPair('rsa', options, (err, publicKey, privateKey) => {
if (err) return console.error(err)
console.log('Public key')
console.log(publicKey)
console.log('Private key')
console.log(privateKey)
}) After you run this it should give priv pub keys
UPDATE actor
SET "publicKey" = 'your_public_key_string', "privateKey" = 'your_private_key_string'
WHERE id = 1; That should fix federation. |
Hi, @kodwana is right: we can't follow the But I think there's a different issue there, because Can you ask the admin to provide some logs? |
Thanks both for answers, I've messaged the instance owner and asked if they can supply logs. |
Hi everyone thanks for offering to help figure this out. I am happy to provide logs, just let me know which logs you're looking for. Also of note - I am running Peertube via Docker. -Lon |
I also run via Docker. |
Please paste warn logs from You can also paste failed |
I have a bunch of these, looks like there's a key it's missing:
|
Yes that what i suspected you got private key issue one I got. |
@lonseidman so if you run peertube inside docker you need to ssh into pogester container for your instance docker exec -it [name of your postgres docker container] /bin/bash Once you get terminal from container you need to open psql tool: psql -d DATABASENAME -U username Then I recomend sending this command first (it makes output more readable in terminal You will get infor that Expanded display is on Then you want to check for channels with missing private public keys: select * from actor where "preferredUsername" = 'peertube' and "serverId" is null; You might want to save id for channel without keys. If any channel has key missing you need to generate priv public key with the script I have shared WHERE id = 1; |
@lonseidman Looks like there are still issues :)
|
Yeah I haven't had time to address this.. Hopefully next week.
…On Thu, Jan 11, 2024 at 1:27 AM kodxana ***@***.***> wrote:
@lonseidman <https://github.com/lonseidman> Looks like there are still
issues :)
{
"payload": {
"host": "peertube.lon.tv:443",
"name": "peertube",
"followerActorId": 1
},
"err": {
"stack": "Error: Cannot fetch remote actor https://peertube.lon.tv/accounts/peertube\n at getOrCreateAPActor (file:///app/dist/core/lib/activitypub/actors/get.js:18:19)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.processActivityPubFollow [as activitypub-follow] (file:///app/dist/core/lib/job-queue/handlers/activitypub-follow.js:23:23)\n at async Object.wrapPromiseFun (file:///app/dist/core/lib/plugins/hooks.js:8:24)\n at async Worker.processJob (/app/node_modules/bullmq/dist/cjs/classes/worker.js:350:28)\n at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:535:24)",
"message": "Cannot fetch remote actor https://peertube.lon.tv/accounts/peertube"
}
}
—
Reply to this email directly, view it on GitHub
<#6131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AORPSHE6TVXLM7WVW3ZI7FLYN6WAZAVCNFSM6AAAAABA5II33OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBWG4YDMMJXHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
----------
Lon Seidman
860-577-0566
***@***.***
|
So I finally had some time to tackle this - as expected the keys were missing from the database record which I generated and inserted. I've recycled the Docker containers too - hopefully this rectifies it! |
Make sure to check if keys are there if not you need to generate them manually |
Yes I generated them - if you can test and see if we're able to connect properly that would be helpful! |
Describe the current behavior
I'm posting on behalf of instance owner https://peertube.lon.tv/a/lonseidman/video-channels, they have recently upgraded to PeerTube 6.0 and their followers started disappearing. They were on around 100 followers or so before the upgrade?
Steps to reproduce
(Not applicable)
Describe the expected behavior
The follower numbers should only drop if people unfollow. As far as I can tell, people have not been unfollowing.
Additional information
PeerTube instance: peertube.lon.tv
Browser name, version and platforms on which you could reproduce the bug:
Link to browser console log if relevant:
Link to server log if relevant (
journalctl
or/var/www/peertube/storage/logs/
):I can request logs from owner if it would be useful?
The text was updated successfully, but these errors were encountered: