前提・実現したいこと
mastodonをインストールした直後にこのようなエラーが発生しました。
このスクリプトを実行しています。
Mastodon インスタンスをコマンド一発で建てる(Docker不使用、CentOS7.x@さくらVPS
発生している問題・エラーメッセージ
502 Bad Gateway
pstream, client: **.**.**.**, server: ****.net, request: "GET /about HTTP/2.0", upstream: "http://127.0.0.1:3000/500.html", host: "****.net"
id Nov 14 18:16:01 ****.net bundle[17434]: LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation Nov 14 18:16:01 ****.net bundle[17434]: WHERE a.attrelid = '"accounts"'::regclass Nov 14 18:16:01 ****.net bundle[17434]: AND a.attnum > 0 AND NOT a.attisdropped Nov 14 18:16:01 ****.net bundle[17434]: ORDER BY a.attnum Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord- Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:47:in`permit_concurrent_loads' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:62:in `block in query' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:61:in `query' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:757:in `column_definitions' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/schema_statements.rb:113:in `columns' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/schema_cache.rb:69:in `columns' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/schema_cache.rb:75:in `columns_hash' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/model_schema.rb:466:in `load_schema!' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/attributes.rb:234:in `load_schema!' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/attribute_decorators.rb:51:in `load_schema!' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/model_schema.rb:459:in `block in load_schema' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/model_schema.rb:456:in `load_schema' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/model_schema.rb:346:in `attribute_types' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/model_schema.rb:370:in `type_for_attribute' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/table_metadata.rb:33:in `type' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/predicate_builder.rb:51:in `build' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/predicate_builder.rb:112:in `block in expand_from_hash' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/app/models/account.rb:92:in `block in <class:Account>' Nov 14 18:16:01 ****.net bundle[17434]: /home/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' code=exited, status=1/FAILURE Nov 14 18:16:46 ****.net systemd[1]: Unit mastodon-web.service entered failedstate. Nov 14 18:16:46 ****.net systemd[1]: mastodon-web.service failed. Nov 14 18:16:46 ****.net systemd[1]: mastodon-web.service holdoff time over, scheduling restart. Nov 14 18:16:46 ****.net systemd[1]: Stopped mastodon-web. -- Subject: Unit mastodon-web.service has finished shutting down
該当のソースコード
nginxのコンフィグです。
Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { worker_connections 1024;} http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; # Load modular configuration files from the /etc/nginx/conf.d directory. # See http://nginx.org/en/docs/ngx_core_module.html#include # for more information. include /etc/nginx/conf.d/*.conf; server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /usr/share/nginx/html; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location ^~ /.well-known/acme-challenge/ {} location / { return 301 https://$host$request_uri; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } } # Settings for a TLS enabled server. # # server { # listen 443 ssl http2 default_server; # listen [::]:443 ssl http2 default_server; # server_name _; # root /usr/share/nginx/html; # # ssl_certificate "/etc/pki/nginx/server.crt"; # ssl_certificate_key "/etc/pki/nginx/private/server.key"; # ssl_session_cache shared:SSL:1m; # ssl_session_timeout 10m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # # # Load configuration files for the default server block. # include /etc/nginx/default.d/*.conf; # # location / { # } # # error_page 404 /404.html; # location = /40x.html { # } # # error_page 500 502 503 504 /50x.html; # location = /50x.html { # } # } }
試したこと
全てのサービスを3回再起動します。OSはしていません
補足情報(FW/ツールのバージョンなど)
さくらのVPS
CentOS 7 x86_64
mastodon 2.0?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。