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

ActiveRecord::RecordInvalid: Validation failed: Visibility is reserved #10409

Closed
yingziwu opened this issue Mar 28, 2019 · 12 comments
Closed

ActiveRecord::RecordInvalid: Validation failed: Visibility is reserved #10409

yingziwu opened this issue Mar 28, 2019 · 12 comments

Comments

@yingziwu
Copy link

Expected behaviour

No error.

Actual behaviour

After upgrade to master version (24d5b6f), I got error ActiveRecord::RecordInvalid: Validation failed: Visibility is reserved.

image

image

After disable relays, I try to retry failed tasks and got no error.
But if relays are enabled, retry failed tasks is no use.

log file:
mastodon_relay.log.zip

relay list:

Steps to reproduce the problem

Enable relays.

Specifications

Mastodon 2.7.4 24d5b6f9e39d2ac62a9657c7d19bc8c437b0735b
Ruby 2.6.1p33
PostgreSQL 9.6.11
Redis 3.2.6
@yingziwu
Copy link
Author

@IzaliaMae
I also meet this problem.

@ClearlyClaire
Copy link
Contributor

This is, arguably, a bug in the relay software, which sends the Announce to an undefined collection.
I don't think there's much we can or should do here, except avoid retrying jobs that trigger validation errors.

@kaniini
Copy link
Contributor

kaniini commented Mar 29, 2019

What do you mean 'undefined collection'? Do I need to actually return JSON-LD there or something?

@ClearlyClaire
Copy link
Contributor

ClearlyClaire commented Mar 29, 2019 via email

@kaniini
Copy link
Contributor

kaniini commented Mar 29, 2019

Ah, yeah. I merged the change.

@IzaliaMae
Copy link

Looks like this fixed the issue. Thanks :3

@yingziwu
Copy link
Author

Thanks :3

@ashfurrow
Copy link
Contributor

I'm seeing this on Mastodon 2.8.0, but only from https://relay.selfhosting.rocks. Could this be an error on their end? Anyone else seeing this?

@ClearlyClaire
Copy link
Contributor

ClearlyClaire commented May 2, 2019 via email

@ashfurrow
Copy link
Contributor

Ah, interesting. So I shouldn't be seeing retries on these jobs at all? I am seeing them retried. Any extra data I can provide here?

Which PR are you referring to? I don't see any listed in GitHub.

@ClearlyClaire
Copy link
Contributor

ClearlyClaire commented May 2, 2019 via email

@ashfurrow
Copy link
Contributor

Got it. Thank you 🙇

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

5 participants