-
Notifications
You must be signed in to change notification settings - Fork 57
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
Local only posting does not seem to work after migration from Mastodon #1159
Comments
@flavio2018 can you confirm how you're trying to select local-only? It's a little tricky because it's an additional posting type you can use in combination with the other types, so it's not in the dropdown list. That is, you could conceivably post a local-only post that is also followers-only (i.e. "local followers only"). Click on the chain image next to the CW button: Does this work? |
hmm yeah that definitely doesn't look right. |
@hughrun do you have any suggestions on how I can better understand what is going on? |
I also don't know much about Ruby but I notice that your "latest commit" is this one which was created for v3.5.1, not 3.4.6. I expect this may be the source of the problem. However if |
Just wanted to check in and see how this is going, @flavio2018 . Did you manage to figure it out? |
Hi @dariusk, thanks for stopping by :) |
Okay so I believe the bundler errors are fixed in #1163. As for the lack of local-only posting UI, I am puzzled. My thought is that maybe the asset compilation step isn't finishing all the way so you're getting plain Mastodon UI. Going to look into this more. |
hi. i am also a novice ruby/git person.
which i fixed by running `gem install bundler:1.17.2 during the db migrate step i was hit with this warning repeatedly:
running the precompile step so have the same issues as the OP, no local-only posting in the compose toot menu but all the other HomeTown features appear to be present in the admin panel. i went through Mastodon upgrade from 3.4.6 -> 3.5.2 then the migration, so I am wondering if I should abandon ship and go back to the snapshot I took before starting, or try to fix in place. |
I suspect this is fixed in the new version. I haven't tagged it yet but could you possibly do the following:
and then restart Mastodon services? |
output is: |
after the first git pull hometown hometown-dev, here is the rest of what i've got:
and then the services restarting seems to not have worked. another thing i noticed is the error page (while trying to refresh my instance before the services are fully back up) just says 'Hometown' in unformatted blue and it links to example.org. so seems like something is up there. willing to accept that the issue might be me having screwed up a step during the upgrades, or migration and now my whole environment is just messed up. |
Oh! How much RAM do you have? Sometimes a silent "Compilation failed" occurs because you have run out of memory. Usually what I do is try to stop all Mastodon processes, then run the compilation step, then bring it back up. Eventually I got tired of my server being down and upgraded the RAM. |
2GB. I'll try to stop mastodon and then try again. |
Yeah 2GB is right on the line. 4GB is pretty much what you need for more
than a single user server.
…On Sun, May 8, 2022, 1:32 PM biglifedecision ***@***.***> wrote:
2GB. I'll try to stop mastodon and then try again.
—
Reply to this email directly, view it on GitHub
<#1159 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACBBVU5DOQWLMB5JBG7ERLVJAQF7ANCNFSM5UFABXTA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
i am worried that this happened during upgrade from 3.4.6-3.5.2 which i did today immediately preceding this. which would mean the mastodon upgrades may not have compiled properly, meaning maybe everything is toast. running again with services stopped:
which looks good (success is in green!) but doesn't suggest to me that it's actually compiled again? how to i force it to compile again? |
I'll reply to this in detail in a couple minutes when I'm back at my desk!
…On Sun, May 8, 2022, 1:38 PM biglifedecision ***@***.***> wrote:
i am worried that this happened during upgrade from 3.4.6-3.5.2 which i
did today immediately preceding this. which would mean the mastodon
upgrades may not have compiled properly, meaning maybe everything is toast.
running again with services stopped:
yarn install v1.22.18
[1/6] Validating package.json...
[2/6] Resolving packages...
success Already up-to-date.
Done in 1.61s.
Everything's up-to-date. Nothing to do
which looks good (success is in green!) but doesn't suggest to me that
it's actually compiled again? how to i force it to compile again?
—
Reply to this email directly, view it on GitHub
<#1159 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACBBVSVWQVIBTGG2S6XAOTVJAQ5ZANCNFSM5UFABXTA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@biglifedecision From your
This will add a blank line to the end of one of the CSS files. Then run
And it should do a compile step. Then do
which reverts the file to its original state. |
wow that is a cruel workaround. thanks rails i guess? or bundle? i followed this: rails/webpacker#955 and modified my webpacker.yml just so i would get output from a failed compilation. seems like this low memory thing is common. so now i get:
followed by a very very lengthy output of i assume the compilation process(because of the mod to my webpacker config) in which i see a few warnings but seems normal? restarting the services and our instance looks like Hometown proper. so i think it worked? is it a coincidence that the OP hit the same combination of bundler version error + low memory? 2GB has actually been more than enough for our small but multi-user instace and all the upgrades i've gone though upgrading mainline mastodon so far. maybe the current 3.5.2 version and it's compilation has crossed some threshold for your average 2GB VPS running out of memory, and this will happen to others? or maybe it's just a coincidence? |
Yes I am 99% sure that the OP also had this low memory problem. It's actually quite common. As far back as v2 I found that you needed to stop all processes, compile, and then start, if you have 2GB of memory. Gonna close this, very very glad to hear it worked. @flavio2018 please see the above thread, I think what you need to do is:
|
Hi, just writing here again to confirm that the issue was indeed the lack of memory and the bundler version error. Today I upgraded to Mastodon 3.5.2 and then migrated to Hometown and everything seems to be working fine. |
Great to hear it! |
Hi all! I just migrated from Mastodon to Hometown following the guide in the Wiki. The migration seems to have happened successfully, since the name of the homepage of my instance is now 'Hometown', and in the public page I can see Hometown-related messages. However, I cannot seem to create local only posts (main feature I wish to migrate for). I have very little experience with Ruby on Rails and/or website hosting in general, however I think I could follow steps or provide additional information. Any suggestion is very much appreciated!
Expected behaviour
I should be able to create local only posts.
Actual behaviour
The local-only post icon in the post creation box does not appear. Even using the :local_only: emoji does not seem to work. In my Preferences > Other tab I can see the Allow my posts to reach other instances by default option.
Steps to reproduce the problem
I followed the steps listed in the Wiki. A couple of things that diverged from what was written there are:
642528f45513acb823a7291f32fb07377bd2b621
and notee513a6a3bc9f144a4d85132da898964987e5059
as written in the Wiki (however, the output ofgit describe --tags
was correct)production
in the last two lines in the instructions, as they seemed to me the correct ones based on the output ofdeclare | grep -i rails
, which was justRAILS_ENV=production
RAILS_ENV=production bundle exec rails db:migrate
, an error was printed stating that I didn't have the correct version ofbundle
installed. I installed it usinggem
. Then, another error said thatrails
was not installed, so I installed it usingbundle
. Then I was able to execute the last two lines in the instructions.The text was updated successfully, but these errors were encountered: