unable connect to other instances - Ruby mastodon

ubuntu: 20+
docker: no

I build a mastodon instance:https://nofan.xyz

but unable use like: abc@nofan.xyz account to follow xxx@mastodon.cc account or reply / repost other instance message.

image

the weird thing is, the xxx@mastodon.cc user able to mention @abc@nofan.xyz and open the profile,but cant follow / reply / repost.

I try to use journalctl -u mastodon-web but can't have any useful info.

nginx log isn't have exception.

so please help how to fix this error, or catch the error log / position.

I am not a english native speaker, thank you for your watching!

Asked Oct 10 '21 23:10
avatar twoheartliu
twoheartliu

5 Answer:

Please do post what you see in journalctl -u mastodon-web, I don't know where else you'd get information about what's happening…

1
Answered Feb 27 '21 at 20:08
avatar  of ClearlyClaire
ClearlyClaire
root@nofan:~# journalctl -u mastodon-web
-- Logs begin at Sat 2021-02-27 06:53:46 UTC, end at Sun 2021-02-28 06:52:28 UTC. --
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2558 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/error.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2559 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/base.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2560 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2561 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionview-5.2.4.4/lib/action_view/view_paths.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2562 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/rendering.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2563 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/translation.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2564 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/asset_paths.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2565 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/helpers.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2566 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/url_for.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2567 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/url_for.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2568 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/logger.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2569 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/redirecting.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2570 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionview-5.2.4.4/lib/action_view/rendering.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2571 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionview-5.2.4.4/lib/action_view/layouts.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2572 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/rendering.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2573 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/head.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2574 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/conditional_get.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2575 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/etag_with_template_>
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2576 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/etag_with_flash.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2577 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/caching.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2578 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/collector.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2579 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/mime_responds.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2580 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/basic_implicit_rend>
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2581 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/implicit_render.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2582 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/parameter_encoding.>
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2583 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/cookies.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2584 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/flash.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2585 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/form_builder.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2586 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/content_security_po>
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2587 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/force_ssl.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2588 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/chunked.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2589 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/streaming.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2590 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/data_streaming.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2591 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/http_authentication>
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2592 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/rescue.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2593 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/instrumentation.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2594 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionview-5.2.4.4/lib/action_view/path_set.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2595 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/caching/fragments.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2596 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/abstract_controller/caching.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2597 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/renderer.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2598 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/responders-3.0.1/lib/action_controller/respond_with.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2599 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/responders-3.0.1/lib/action_controller/responder.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2600 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/actionpack-5.2.4.4/lib/action_controller/base.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2601 /home/mastodon/live/vendor/bundle/ruby/2.7.0/bundler/gems/health_check-0b799ead604f/lib/health_check/health_check_co>
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2602 /home/mastodon/live/vendor/bundle/ruby/2.7.0/bundler/gems/health_check-0b799ead604f/lib/health_check/health_check_ro>
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2603 /home/mastodon/live/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/auth/abstract/request.rb
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2604 /home/mastodon/live/vendor/bundle/ruby/2.7.0/bundler/gems/health_check-0b799ead604f/lib/health_check/middleware_heal>
Feb 27 06:53:46 nofan.xyz bundle[348802]:  2605 /home/mastodon/live/vendor/bundle/ruby/2.7.0/bundler/gems/health_check-0b799ead604f/lib/health_check.rb

I cant see any meaning log……

1
Answered Feb 28 '21 at 06:53
avatar  of twoheartliu
twoheartliu

uh, that's weird, i don't even know what would produce such an output…

Try journalctl -u mastodon-web --follow then attempt the follow and see what happens in the logs.

1
Answered Mar 01 '21 at 09:18
avatar  of ClearlyClaire
ClearlyClaire
root@nofan:~# journalctl -u mastodon-web --follow
-- Logs begin at Sun 2021-02-28 16:44:28 UTC. --
Mar 02 01:32:06 nofan.xyz bundle[454445]: 7f0f1db8d000-7f0f1db8e000 r--p 00000000 fc:01 11614                      /usr/lib/x86_64-linux-gnu/ld-2.32.so
Mar 02 01:32:06 nofan.xyz bundle[454445]: 7f0f1db8e000-7f0f1dbb2000 r-xp 00001000 fc:01 11614                      /usr/lib/x86_64-linux-gnu/ld-2.32.so
Mar 02 01:32:06 nofan.xyz bundle[454445]: 7f0f1dbb2000-7f0f1dbbb000 r--p 00025000 fc:01 11614                      /usr/lib/x86_64-linux-gnu/ld-2.32.so
Mar 02 01:32:06 nofan.xyz bundle[454445]: 7f0f1dbbb000-7f0f1dbbc000 r--p 0002d000 fc:01 11614                      /usr/lib/x86_64-linux-gnu/ld-2.32.so
Mar 02 01:32:06 nofan.xyz bundle[454445]: 7f0f1dbbc000-7f0f1dbbe000 rw-p 0002e000 fc:01 11614                      /usr/lib/x86_64-linux-gnu/ld-2.32.so
Mar 02 01:32:06 nofan.xyz bundle[454445]: 7fffff1c1000-7fffff9c0000 rw-p 00000000 00:00 0                          [stack]
Mar 02 01:32:06 nofan.xyz bundle[454445]: 7fffff9d3000-7fffff9d7000 r--p 00000000 00:00 0                          [vvar]
Mar 02 01:32:06 nofan.xyz bundle[454445]: 7fffff9d7000-7fffff9d9000 r-xp 00000000 00:00 0                          [vdso]
Mar 02 01:32:06 nofan.xyz bundle[454445]: ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0                  [vsyscall]
Mar 02 01:32:06 nofan.xyz bundle[386095]: [386095] - Worker 1 (PID: 454652) booted, phase: 0
1
Answered Mar 02 '21 at 01:32
avatar  of twoheartliu
twoheartliu

I resolve this, after delete live dir,and redownload mastodon resource and reconnect sql and eg..

1
Answered Mar 02 '21 at 09:10
avatar  of twoheartliu
twoheartliu