Skip to content
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

Relay usage “Rejected Announce activity” #10324

Closed
mahescho opened this issue Mar 20, 2019 · 12 comments
Closed

Relay usage “Rejected Announce activity” #10324

mahescho opened this issue Mar 20, 2019 · 12 comments

Comments

@mahescho
Copy link

As https://discourse.joinmastodon.org didn't help I'm writing here:

I try to use relays and I get log entries like this:

mastrodon bundle[11676]: Rejected Announce activityhttps://relay.mastodon.host/activities/a7296176-ffa7-4dd2-a8db-f43fef892e24 from https://relay.mastodon.host/actor

mastrodon bundle[11676]: Rejected Announce activity https://relay.social.seattle.wa.us/activities/a95b88f8-0bf5-44bd-9a2f-7276107542c8 from https://relay.social.seattle.wa.us/actor

what am I doing wrong?

The logs read actor but I subscribed inbox …

What I'm talking about is this:

Relays

@KScabledog
Copy link

I thought I'd give the relay feature a try but it's not working for me either. I'm running v2.7.4 and tried the same relays and a few others and seeing the same messages in my logs as well.

@TheEpTic
Copy link

I'm kinda curious about this too, does someone have any idea what would cause this? 👀

@Gargron
Copy link
Member

Gargron commented Mar 26, 2019

This is a bit odd, because I don't believe the pub-relay sends Announce activities, it just forwards signed ones:

https://source.joinmastodon.org/mastodon/pub-relay/blob/master/src/web_server/inbox_handler.cr#L61-65

The messages in your logs have an Announce type and an ID that refers to the relay itself, which the pub-relay does not create.

I don't know what code those relays are running, but it's not what we expect.

@TheEpTic
Copy link

They seem to be running https://git.pleroma.social/pleroma/relay which claims to be Mastodon compatible, I guess it's not?

@IzaliaMae
Copy link

IzaliaMae commented Mar 27, 2019

I put up a 2.7.0 instance and it worked fine with my relay as well as the one at relay.mastodon.host, so clearly some commit between then and now botched pleroma relay support. Gonna continue to narrow down when it broke.

Btw are there any known masto relays that I could try? Just curious if relay support in general is broken

Edit: It broke at 2.7.2

Edit2: The problem is commit 6c11f0f. It's the oldest commit that caused all fedi tl activity to stop. I have no ruby experience though, so I still don't know the exact problem

@TheEpTic
Copy link

TheEpTic commented Mar 27, 2019 via email

@Gargron
Copy link
Member

Gargron commented Mar 27, 2019

Right, the abuse filter added in 2.7.2 did not foresee Announces from relays, since that's now how pub-relay works. But there's nothing wrong with doing it via Announces, so I will submit a fix.

@kaniini
Copy link
Contributor

kaniini commented Mar 27, 2019

Thanks @Gargron for the quick fix!

@TheEpTic
Copy link

Thank you for the quick fix Gargron! I just manually applied it to my instance and it's perfect!

If anyone else wants to do the same, just apply the changes ^ to your local install and restart ❤️

@mahescho
Copy link
Author

Thanks, works for me!

@IzaliaMae
Copy link

While this does get pleroma relays working again, it spams sidekiq with errors. Here's the full error

Mar 28 04:49:35 mastodon bundle[3954]: 2019-03-28T08:49:35.415Z 3954 TID-osl1hp2t2 ActivityPub::ProcessingWorker JID-4c949fe3131b03a148db9805 INFO: start
Mar 28 04:49:35 mastodon bundle[3954]: 2019-03-28T08:49:35.426Z 3954 TID-osl1hp2t2 ActivityPub::ProcessingWorker JID-4c949fe3131b03a148db9805 INFO: fail: 0.011 sec
Mar 28 04:49:35 mastodon bundle[3954]: 2019-03-28T08:49:35.426Z 3954 TID-osl1hp2t2 WARN: {"context":"Job raised exception","job":{"class":"ActivityPub::ProcessingWorker","args":[10152,"{\"object\": \"https://mstdn.foxfam.club/users/d3vnull/statuses/101827406893785353\", \"to\": [\"https://relay.mastodon.host/actor/followers\"], \"type\": \"Announce\", \"@context\": \"https://www.w3.org/ns/activitystreams\", \"id\": \"https://relay.mastodon.host/activities/7bb3c2f3-e777-4532-8447-6fbe5fde5416\", \"actor\": \"https://relay.mastodon.host/actor\"}",null],"retry":true,"queue":"default","backtrace":true,"jid":"4c949fe3131b03a148db9805","created_at":1553762930.736327,"enqueued_at":1553762975.4148498,"error_message":"Validation failed: Visibility is reserved","error_class":"ActiveRecord::RecordInvalid","failed_at":1553762933.366201,"retry_count":0,"error_backtrace":["/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/validations.rb:80:in `raise_validation_error'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/validations.rb:52:in `save!'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:315:in `block in save!'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:259:in `block in transaction'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'","/home/zoey/.rbenv/versions/2.6.1/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2
Mar 28 04:49:35 mastodon bundle[3954]: .2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:259:in `transaction'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:212:in `transaction'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:315:in `save!'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/suppressor.rb:48:in `save!'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/persistence.rb:53:in `create!'","/home/zoey/mastodon/app/lib/activitypub/activity/announce.rb:15:in `perform'","/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:43:in `process_item'","/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `block in process_items'","/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `reverse_each'","/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `each'","/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `map'","/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `process_items'","/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:21:in `call'","/home/zoey/mastodon/app/workers/activitypub/processing_worker.rb:9:in `perform'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:185:in `execute_job'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:167:in `block (2 levels) in process'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-unique-jobs-6.0.12/lib/sidekiq_unique_jobs/server/middl
Mar 28 04:49:35 mastodon bundle[3954]: eware.rb:23:in `call'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:133:in `invoke'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:166:in `block in process'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/job_retry.rb:108:in `local'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/rails.rb:43:in `block in call'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/reloader.rb:73:in `block in wrap'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/reloader.rb:72:in `wrap'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/rails.rb:42:in `call'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:243:in `stats'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/job_logger.rb:8:in `call'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch'","/
Mar 28 04:49:35 mastodon bundle[3954]: home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/job_retry.rb:73:in `global'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:125:in `block in dispatch'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/logging.rb:48:in `with_context'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/logging.rb:42:in `with_job_hash_context'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:124:in `dispatch'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:165:in `process'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:83:in `process_one'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:71:in `run'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/util.rb:16:in `watchdog'","/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/util.rb:25:in `block in safe_thread'"]},"jobstr":"{\"class\":\"ActivityPub::ProcessingWorker\",\"args\":[10152,\"{\\\"object\\\": \\\"https://mstdn.foxfam.club/users/d3vnull/statuses/101827406893785353\\\", \\\"to\\\": [\\\"https://relay.mastodon.host/actor/followers\\\"], \\\"type\\\": \\\"Announce\\\", \\\"@context\\\": \\\"https://www.w3.org/ns/activitystreams\\\", \\\"id\\\": \\\"https://relay.mastodon.host/activities/7bb3c2f3-e777-4532-8447-6fbe5fde5416\\\", \\\"actor\\\": \\\"https://relay.mastodon.host/actor\\\"}\",null],\"retry\":true,\"queue\":\"default\",\"backtrace\":true,\"jid\":\"4c949fe3131b03a148db9805\",\"created_at\":1553762930.736327,\"enqueued_at\":1553762975.4148498,\"error_message\":\"Validation failed: Visibility is reserved\",\"error_class\":\"ActiveRecord::RecordInvalid\",\"failed_at\":1553762933.366201,\"retry_count\":0,\"error_backtrace\":[\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/validations.rb:80
Mar 28 04:49:35 mastodon bundle[3954]: :in `raise_validation_error'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/validations.rb:52:in `save!'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:315:in `block in save!'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:259:in `block in transaction'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'\",\"/home/zoey/.rbenv/versions/2.6.1/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:259:in `transaction'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:212:in `transaction'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:315:in `save!'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/suppressor.rb:48:in `save!'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/persistence.rb:53:in `create!'\",\"/home/zoey/mastodon/app/lib/activitypub/activity/announce.rb:15:in `perform'\",\"/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:43:in `process_i
Mar 28 04:49:35 mastodon bundle[3954]: tem'\",\"/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `block in process_items'\",\"/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `reverse_each'\",\"/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `each'\",\"/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `map'\",\"/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `process_items'\",\"/home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:21:in `call'\",\"/home/zoey/mastodon/app/workers/activitypub/processing_worker.rb:9:in `perform'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:185:in `execute_job'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:167:in `block (2 levels) in process'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-unique-jobs-6.0.12/lib/sidekiq_unique_jobs/server/middleware.rb:23:in `call'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:133:in `invoke'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:166:in `block in process'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/job_retry.rb:108:in `local'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/rails.rb:43:in `block in call'\",\"/home/zoey/mastodon/
Mar 28 04:49:35 mastodon bundle[3954]: vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/reloader.rb:73:in `block in wrap'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/reloader.rb:72:in `wrap'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/rails.rb:42:in `call'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:243:in `stats'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/job_logger.rb:8:in `call'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/job_retry.rb:73:in `global'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:125:in `block in dispatch'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/logging.rb:48:in `with_context'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/logging.rb:42:in `with_job_hash_context'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:124:in `dispatch'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:165:in `process'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:83:in `process_one'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq
Mar 28 04:49:35 mastodon bundle[3954]: -5.2.5/lib/sidekiq/processor.rb:71:in `run'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/util.rb:16:in `watchdog'\",\"/home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/util.rb:25:in `block in safe_thread'\"]}"}
Mar 28 04:49:35 mastodon bundle[3954]: 2019-03-28T08:49:35.426Z 3954 TID-osl1hp2t2 WARN: ActiveRecord::RecordInvalid: Validation failed: Visibility is reserved
Mar 28 04:49:35 mastodon bundle[3954]: 2019-03-28T08:49:35.426Z 3954 TID-osl1hp2t2 WARN: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/validations.rb:80:in `raise_validation_error'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/validations.rb:52:in `save!'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:315:in `block in save!'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:259:in `block in transaction'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/.rbenv/versions/2.6.1/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:259:in `transaction'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:212:in `transaction'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/transactions.rb:315:in `save!'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/suppressor.rb:48:in `save!'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.2.1/lib/active_record/persistence.rb:53:in `create!'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/app/lib/activitypub/activity/announce.rb:15:in `perform'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:43:in `process_item'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `block in process_items'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `reverse_each'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `each'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `map'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:34:in `process_items'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/app/services/activitypub/process_collection_service.rb:21:in `call'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/app/workers/activitypub/processing_worker.rb:9:in `perform'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:185:in `execute_job'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:167:in `block (2 levels) in process'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-unique-jobs-6.0.12/lib/sidekiq_unique_jobs/server/middleware.rb:23:in `call'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:133:in `invoke'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:166:in `block in process'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/job_retry.rb:108:in `local'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/rails.rb:43:in `block in call'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/reloader.rb:73:in `block in wrap'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.2.1/lib/active_support/reloader.rb:72:in `wrap'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/rails.rb:42:in `call'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:243:in `stats'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/job_logger.rb:8:in `call'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/job_retry.rb:73:in `global'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:125:in `block in dispatch'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/logging.rb:48:in `with_context'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/logging.rb:42:in `with_job_hash_context'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:124:in `dispatch'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:165:in `process'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:83:in `process_one'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:71:in `run'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/util.rb:16:in `watchdog'
Mar 28 04:49:35 mastodon bundle[3954]: /home/zoey/mastodon/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.5/lib/sidekiq/util.rb:25:in `block in safe_thread'

@cham2019
Copy link

cham2019 commented May 4, 2023

Sorry to re-open this. I am experiencing same thing.
I'tm trying to add c.im relay: https://relay.c.im/inbox

I have hundreds of these "Rejected Announce activity" logs:

May  4 15:47:42 vm bundle[1935]: [a20] method=POST path=/inbox format=json controller=ActivityPub::InboxesController action=create status=202 duration=11.25 view=0.00 db=1.06 key=https://relay.c.im/actor#main-key

May  4 15:47:42 vm bundle[835]: Rejected Announce activity https://relay.c.im/activities/3427e630-1309-4a24-a389-b976cd514aca from https://relay.c.im/actor

I can't get this relay to be enabled. I remember it used to work before (when I had former version of Mastodon). Now I am running the last version (4.1.2). I opened ports 80,443 to that domain (relay.c.im), and I also tested to see if I can call URL statuses or users from c.im in the search field, and it worked.
So, not sure why the relay can't get connected :(

rel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants