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

Issue with cld3-ruby in latest versions when upgrading #1258

Closed
phobos-dthorga opened this issue Jan 4, 2020 · 6 comments
Closed

Issue with cld3-ruby in latest versions when upgrading #1258

phobos-dthorga opened this issue Jan 4, 2020 · 6 comments

Comments

@phobos-dthorga
Copy link

Hello everyone!

We at GekkoFyre Networks made an attempted upgrade to the latest version of glitch-soc for Mastodon and ended up having to restore the virtual private server from a backup in the end. Some of the issues we experienced are detailed in this blog article we published about the matter, notifying our immediate community about the backup restoration.

Basically, we pulled the latest version of glitch-soc from GitHub as of last night (Australian EST), and during mid-compilation with Ruby we experienced a critical error related to the cld3-ruby library.

We've found some other issues about it here and there in the Mastodon community, but for the most part, it is preventing us from upgrading further than the current version which is at least 2-3 months old.

We're seeking advice on how to proceed from here, please, and although we did forget to capture the exact error message that occurred since backup restoration, we can go one better. We are happy to offer a development server containing our instance to anyone that can be trusted/vouched for.

Thank you.

@ClearlyClaire
Copy link

ClearlyClaire commented Jan 4, 2020 via email

@phobos-dthorga
Copy link
Author

Hello @ThibG,

It's good to hear directly from you. I believe I was using Ruby 2.6.1, since that's what the original instructions had mentioned. I'm rather certain of that.

If I can be of any further help, please let me know.

@ClearlyClaire
Copy link

Hm, if that's not a Ruby 2.7 compatibility issue, I'm not sure what that can be… I'd need to know the exact error to investigate further.

If the error occurs during bundle install, I think a way to save some time when updating then rolling back would be to copy the vendor directory, update, and simply revert to the old commit then revert to the copied vendor directory, rather than restoring the whole VM. This should avoid any downtime if you don't stop the services before upgrading.

As for Ruby 2.7 compatibility, I'll merge the necessary changes in glitch-soc when they hit upstream, which should be really soon.

@phobos-dthorga
Copy link
Author

Hello again @ThibG,

Please let me know once the newer updates for Ruby 2.7 are ready to be git clone'ed by the wider public, thank you.

@ClearlyClaire
Copy link

Hm actually the issue should not be with Ruby 2.7, since Mastodon's Gemfile is still specifying ruby '>= 2.4.0', '< 2.7.0'

Anyway, the version bump for cld3 (among other things), has been merged.

If you have any issue with the upgrade, please do report at which step and what the error is!

@ClearlyClaire
Copy link

Closing for lack of update. Feel free to reopen if you still have the issue and any additional information. (Also, consider updating your instance ASAP, there have been important fixes lately)

jwbjnwolf pushed a commit to jwbjnwolf/mastodon that referenced this issue Apr 13, 2023
There is now a toggle under Administration -> Server Settings ->
Hometown that lets an admin make new accounts default to local-only
privacy for posts. It does not affect current accounts.


![image](https://user-images.githubusercontent.com/266454/209882528-5edd4bd7-5002-4104-8058-f6e638f89453.png)

Fixes glitch-soc#704
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

2 participants