https://docs.joinmastodon.org/admin/install/
[ Belladona ] [ /dev/pts/16 ] [~]
→ adduser --disabled-login mastodon
Adding user `mastodon' ...
Adding new group `mastodon' (1000) ...
Adding new user `mastodon' (1000) with group `mastodon (1000)' ...
Creating home directory `/home/mastodon' ...
Copying files from `/etc/skel' ...
Changing the user information for mastodon
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
Adding new user `mastodon' to supplemental / extra groups `users' ...
Adding user `mastodon' to group `users' ...
[ Belladona ] [ /dev/pts/16 ] [~]
→ su - mastodon
This account is currently not available.
[ Belladona ] [ /dev/pts/16 ] [~]
→ su - mastodon
This account is currently not available.
[ Belladona ] [ /dev/pts/16 ] [~]
→ sudo -u mastodon
usage: sudo -h | -K | -k | -V
usage: sudo -v [-ABkNnS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-ABkNnS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command [arg ...]]
usage: sudo [-ABbEHkNnPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] [VAR=value] [-i | -s] [command [arg ...]]
usage: sudo -e [-ABkNnS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ...
[ Belladona ] [ /dev/pts/16 ] [~]
→ sudo -u mastodon bash
mastodon@Belladona:/root$ pwd
/root
mastodon@Belladona:/root$ exit
exit
[ Belladona ] [ /dev/pts/16 ] [~]
→ mkdir /srv/mastodon
mkdir: cannot create directory ‘/srv/mastodon’: File exists
[ Belladona ] [ /dev/pts/16 ] [~]
→ sudo -u mastodon bash
mastodon@Belladona:/root$ id
uid=1000(mastodon) gid=1000(mastodon) groups=1000(mastodon),100(users)
mastodon@Belladona:/root$ ls
ls: cannot open directory '.': Permission denied
mastodon@Belladona:/root$ exit
exit
[ Belladona ] [ /dev/pts/16 ] [~]
→ mkdir /home/mastodon
mkdir: cannot create directory ‘/home/mastodon’: File exists
[ Belladona ] [ /dev/pts/16 ] [~]
→ sudo -u mastodon bash
mastodon@Belladona:/root$ cd /home/mastodon
mastodon@Belladona:~$ ls
mastodon@Belladona:~$ ls -lash
total 24K
4.0K drwx------ 2 mastodon mastodon 4.0K Mar 23 15:24 .
4.0K drwxr-xr-x 3 root root 4.0K Mar 23 15:22 ..
4.0K -rw------- 1 mastodon mastodon 20 Mar 23 15:24 .bash_history
4.0K -rw-r--r-- 1 mastodon mastodon 220 Mar 23 15:22 .bash_logout
4.0K -rw-r--r-- 1 mastodon mastodon 3.5K Mar 23 15:22 .bashrc
0 -rw-r--r-- 1 mastodon mastodon 0 Mar 23 15:22 .cloud-locale-test.skip
4.0K -rw-r--r-- 1 mastodon mastodon 807 Mar 23 15:22 .profile
mastodon@Belladona:~$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
Cloning into '/home/mastodon/.rbenv'...
remote: Enumerating objects: 3270, done.
remote: Counting objects: 100% (420/420), done.
remote: Compressing objects: 100% (218/218), done.
remote: Total 3270 (delta 234), reused 327 (delta 188), pack-reused 2850
Receiving objects: 100% (3270/3270), 662.28 KiB | 5.56 MiB/s, done.
Resolving deltas: 100% (2024/2024), done.
mastodon@Belladona:~$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
mastodon@Belladona:~$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
mastodon@Belladona:~$ exec bash
mastodon@Belladona:~$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
Cloning into '/home/mastodon/.rbenv/plugins/ruby-build'...
remote: Enumerating objects: 15923, done.
remote: Counting objects: 100% (4057/4057), done.
remote: Compressing objects: 100% (363/363), done.
remote: Total 15923 (delta 3854), reused 3819 (delta 3682), pack-reused 11866
Receiving objects: 100% (15923/15923), 3.11 MiB | 15.55 MiB/s, done.
Resolving deltas: 100% (11360/11360), done.
mastodon@Belladona:~$ RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.2.3
==> Downloading ruby-3.2.3.tar.gz...
-> curl -q -fL -o ruby-3.2.3.tar.gz https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19.6M 100 19.6M 0 0 18.7M 0 0:00:01 0:00:01 --:--:-- 18.7M
==> Installing ruby-3.2.3...
-> ./configure "--prefix=$HOME/.rbenv/versions/3.2.3" --enable-shared --with-ext=openssl,psych,+ --with-jemalloc
-> make -j 12
-> make install
==> Installed ruby-3.2.3 to /home/mastodon/.rbenv/versions/3.2.3
NOTE: to activate this Ruby version as the new default, run: rbenv global 3.2.3
mastodon@Belladona:~$ rbenv global 3.2.3
mastodon@Belladona:~$ gem install bundler --no-document
Fetching bundler-2.5.7.gem
Successfully installed bundler-2.5.7
1 gem installed
A new release of RubyGems is available: 3.4.19 → 3.5.7!
Run `gem update --system 3.5.7` to update your installation.
mastodon@Belladona:~$ exit
exit
[ Belladona ] [ /dev/pts/16 ] [~]
→ sudo -u postgres psql
psql (16.2 (Debian 16.2-1.pgdg120+2))
Type "help" for help.
postgres=# CREATE USER mastodon CREATEDB;
CREATE ROLE
postgres=# \q
[ Belladona ] [ /dev/pts/16 ] [~]
→ su - mastodon
This account is currently not available.
[ Belladona ] [ /dev/pts/16 ] [~]
→ sudo -u mastodon bash
mastodon@Belladona:/root$ cd /home/mastodon
mastodon@Belladona:~$ git clone https://github.com/mastodon/mastodon.git live && cd live
Cloning into 'live'...
remote: Enumerating objects: 190880, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 190880 (delta 0), reused 1 (delta 0), pack-reused 190863
Receiving objects: 100% (190880/190880), 228.45 MiB | 14.19 MiB/s, done.
Resolving deltas: 100% (141462/141462), done.
mastodon@Belladona:~/live$ git checkout $(git tag -l | grep '^v[0-9.]*$' | sort -V | tail -n 1)
Note: switching to 'v4.2.8'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at bdb6650eb Bump version to v4.2.8 (#29370)
mastodon@Belladona:~/live$ bundle config deployment 'true'
mastodon@Belladona:~/live$ bundle config without 'development test'
mastodon@Belladona:~/live$ bundle install -j$(getconf _NPROCESSORS_ONLN)
Bundler 2.5.7 is running, but your lockfile was generated with 2.4.13. Installing Bundler 2.4.13 and restarting using that version.
Fetching gem metadata from https://rubygems.org/.
Fetching bundler 2.4.13
Installing bundler 2.4.13
Fetching gem metadata from https://rubygems.org/.........
Fetching https://github.com/stanhu/omniauth-cas.git
Fetching https://github.com/mastodon/rails-settings-cached.git
Fetching https://github.com/ClearlyClaire/webpush.git
Fetching rake 13.0.6
Installing rake 13.0.6
Fetching date 3.3.4
Fetching mini_mime 1.1.5
Fetching minitest 5.19.0
Fetching concurrent-ruby 1.2.3
Fetching erubi 1.12.0
Fetching racc 1.7.3
Fetching crass 1.0.6
Fetching rack 2.2.8.1
Fetching nio4r 2.7.0
Fetching websocket-extensions 0.1.5
Fetching marcel 1.0.2
Fetching builder 3.2.4
Installing erubi 1.12.0
Installing crass 1.0.6
Installing websocket-extensions 0.1.5
Installing mini_mime 1.1.5
Fetching timeout 0.4.1
Installing builder 3.2.4
Installing marcel 1.0.2
Installing date 3.3.4 with native extensions
Installing racc 1.7.3 with native extensions
Fetching jsonapi-renderer 0.2.2
Installing timeout 0.4.1
Installing minitest 5.19.0
Installing nio4r 2.7.0 with native extensions
Fetching public_suffix 5.0.3
Installing jsonapi-renderer 0.2.2
Fetching aes_key_wrap 1.1.0
Installing rack 2.2.8.1
Fetching android_key_attestation 0.3.0
Installing aes_key_wrap 1.1.0
Fetching encryptor 3.0.0
Fetching attr_required 1.0.1
Installing android_key_attestation 0.3.0
Installing public_suffix 5.0.3
Installing concurrent-ruby 1.2.3
Installing attr_required 1.0.1
Fetching awrence 1.2.1
Fetching aws-eventstream 1.2.0
Installing awrence 1.2.1
Fetching aws-partitions 1.809.0
Installing aws-eventstream 1.2.0
Fetching jmespath 1.6.2
Fetching faraday-em_http 1.0.0
Fetching faraday-em_synchrony 1.0.0
Installing encryptor 3.0.0
Installing faraday-em_http 1.0.0
Installing jmespath 1.6.2
Installing aws-partitions 1.809.0
Installing faraday-em_synchrony 1.0.0
Fetching faraday-excon 1.1.0
Fetching faraday-httpclient 1.0.1
Installing faraday-excon 1.1.0
Fetching multipart-post 2.3.0
Fetching faraday-net_http 1.0.1
Installing faraday-httpclient 1.0.1
Fetching faraday-patron 1.0.0
Installing multipart-post 2.3.0
Fetching faraday-net_http_persistent 1.2.0
Installing faraday-net_http 1.0.1
Fetching faraday-rack 1.0.0
Installing faraday-patron 1.0.0
Installing faraday-net_http_persistent 1.2.0
Fetching faraday-retry 1.0.3
Using ruby2_keywords 0.0.5
Fetching connection_pool 2.4.1
Fetching bcp47_spec 0.2.1
Fetching bcrypt 3.1.18
Installing faraday-rack 1.0.0
Fetching bindata 2.4.15
Installing faraday-retry 1.0.3
Installing connection_pool 2.4.1
Fetching blurhash 0.1.7
Installing bcp47_spec 0.2.1
Fetching msgpack 1.7.1
Installing blurhash 0.1.7 with native extensions
Fetching browser 5.3.1
Fetching redis 4.8.1
Using bundler 2.4.13
Fetching cbor 0.5.9.6
Installing bcrypt 3.1.18 with native extensions
Installing bindata 2.4.15
Fetching charlock_holmes 0.7.7
Fetching multi_json 1.15.0
Installing msgpack 1.7.1 with native extensions
Installing cbor 0.5.9.6 with native extensions
Installing redis 4.8.1
Installing browser 5.3.1
Installing charlock_holmes 0.7.7 with native extensions
Installing multi_json 1.15.0
Fetching elasticsearch-dsl 0.1.10
Fetching chunky_png 1.4.0
Fetching climate_control 0.2.0
Fetching cocoon 1.2.15
Installing elasticsearch-dsl 0.1.10
Installing climate_control 0.2.0
Fetching color_diff 0.1
Using openssl 3.1.0
Fetching orm_adapter 0.5.0
Installing cocoon 1.2.15
Installing color_diff 0.1
Installing chunky_png 1.4.0
Fetching method_source 1.0.0
Fetching thor 1.3.0
Installing method_source 1.0.0
Fetching rotp 6.2.2
Fetching zeitwerk 2.6.13
Installing orm_adapter 0.5.0
Fetching unf_ext 0.0.8.2
Installing thor 1.3.0
Fetching dotenv 2.8.1
Installing rotp 6.2.2
Installing zeitwerk 2.6.13
Installing dotenv 2.8.1
Fetching ed25519 1.3.0
Fetching excon 0.100.0
Fetching fast_blank 1.0.1
Installing ed25519 1.3.0 with native extensions
Installing unf_ext 0.0.8.2 with native extensions
Installing fast_blank 1.0.1 with native extensions
Fetching fastimage 2.2.7
Installing excon 0.100.0
Installing fastimage 2.2.7
Fetching ffi 1.15.5
Fetching formatador 0.3.0
Installing formatador 0.3.0
Fetching mime-types-data 3.2023.0808
Fetching ipaddress 0.8.3
Fetching raabro 1.4.0
Installing ffi 1.15.5 with native extensions
Installing mime-types-data 3.2023.0808
Installing raabro 1.4.0
Fetching temple 0.10.2
Fetching tilt 2.2.0
Installing ipaddress 0.8.3
Fetching hashie 5.0.0
Using json 2.6.3
Fetching hiredis 0.6.3
Installing temple 0.10.2
Installing tilt 2.2.0
Installing hashie 5.0.0
Fetching hkdf 0.3.0
Fetching htmlentities 4.3.4
Fetching http-form_data 2.3.0
Installing hkdf 0.3.0
Fetching http_accept_language 2.1.1
Installing hiredis 0.6.3 with native extensions
Installing htmlentities 4.3.4
Installing http_accept_language 2.1.1
Fetching httpclient 2.8.3
Fetching rainbow 3.1.1
Installing http-form_data 2.3.0
Installing rainbow 3.1.1
Fetching json-canonicalization 1.0.0
Fetching idn-ruby 0.1.5
Installing httpclient 2.8.3
Installing json-canonicalization 1.0.0
Installing idn-ruby 0.1.5 with native extensions
Fetching link_header 0.0.8
Fetching jwt 2.7.1
Installing jwt 2.7.1
Fetching kaminari-core 1.2.2
Installing kaminari-core 1.2.2
Using uri 0.12.2
Installing link_header 0.0.8
Fetching statsd-ruby 1.5.0
Fetching net-ldap 0.18.0
Installing statsd-ruby 1.5.0
Installing net-ldap 0.18.0
Fetching oj 3.16.1
Fetching rexml 3.2.6
Installing rexml 3.2.6
Installing oj 3.16.1 with native extensions
Fetching ox 2.14.17
Installing ox 2.14.17 with native extensions
Fetching parslet 2.0.0
Installing parslet 2.0.0
Fetching tty-color 0.6.0
Installing tty-color 0.6.0
Fetching pg 1.5.5
Installing pg 1.5.5 with native extensions
Fetching posix-spawn 0.3.15
Fetching private_address_check 0.5.0
Installing posix-spawn 0.3.15 with native extensions
Installing private_address_check 0.5.0
Fetching redcarpet 3.6.0
Installing redcarpet 3.6.0 with native extensions
Fetching rqrcode_core 1.2.0
Installing rqrcode_core 1.2.0
Fetching ruby-progressbar 1.13.0
Installing ruby-progressbar 1.13.0
Fetching rubyzip 2.3.2
Installing rubyzip 2.3.2
Fetching semantic_range 3.0.0
Installing semantic_range 3.0.0
Fetching tty-cursor 0.7.1
Installing tty-cursor 0.7.1
Fetching tty-screen 0.8.1
Installing tty-screen 0.8.1
Fetching wisper 2.0.1
Installing wisper 2.0.1
Fetching xorcist 1.1.3
Fetching websocket-driver 0.7.6
Installing xorcist 1.1.3 with native extensions
Installing websocket-driver 0.7.6 with native extensions
Fetching net-protocol 0.2.2
Fetching aws-sigv4 1.6.0
Installing aws-sigv4 1.6.0
Installing net-protocol 0.2.2
Fetching addressable 2.8.5
Fetching nokogiri 1.16.2 (x86_64-linux)
Fetching attr_encrypted 4.0.0
Installing addressable 2.8.5
Installing attr_encrypted 4.0.0
Fetching rack-test 2.1.0
Fetching warden 1.2.9
Installing rack-test 2.1.0
Fetching request_store 1.5.1
Installing warden 1.2.9
Fetching rack-protection 3.0.5
Installing request_store 1.5.1
Installing rack-protection 3.0.5
Fetching rack-attack 6.7.0
Fetching rack-cors 2.0.1
Installing rack-cors 2.0.1
Installing rack-attack 6.7.0
Fetching rack-proxy 0.7.6
Fetching faraday-multipart 1.0.4
Fetching net-http-persistent 4.0.2
Installing nokogiri 1.16.2 (x86_64-linux)
Installing rack-proxy 0.7.6
Fetching i18n 1.14.1
Installing net-http-persistent 4.0.2
Fetching sprockets 3.7.2
Installing faraday-multipart 1.0.4
Fetching brpoplpush-redis_script 0.1.3
Fetching tzinfo 2.0.6
Installing sprockets 3.7.2
Installing i18n 1.14.1
Installing brpoplpush-redis_script 0.1.3
Fetching mario-redis-lock 1.2.1
Fetching sidekiq 6.5.12
Fetching redis-namespace 1.11.0
Installing tzinfo 2.0.6
Installing mario-redis-lock 1.2.1
Fetching redlock 1.3.2
Fetching elasticsearch-api 7.13.3
Installing redis-namespace 1.11.0
Fetching openssl-signature_algorithm 1.3.0
Installing redlock 1.3.2
Fetching terrapin 0.6.0
Installing openssl-signature_algorithm 1.3.0
Installing sidekiq 6.5.12
Installing elasticsearch-api 7.13.3
Installing terrapin 0.6.0
Fetching mime-types 3.5.1
Fetching hcaptcha 7.1.0
Installing mime-types 3.5.1
Installing hcaptcha 7.1.0
Fetching haml 6.1.2
Fetching httplog 1.6.2
Installing haml 6.1.2 with native extensions
Fetching safety_net_attestation 0.4.0
Installing httplog 1.6.2
Using webpush 0.3.8 from https://github.com/ClearlyClaire/webpush.git (at f14a4d5@f14a4d5)
Installing safety_net_attestation 0.4.0
Fetching rdf 3.3.1
Fetching net-http 0.3.2
Fetching unf 0.1.4
Installing rdf 3.3.1
Installing net-http 0.3.2
Fetching pastel 0.8.0
Installing unf 0.1.4
Installing pastel 0.8.0
Fetching rqrcode 2.2.0
Fetching puma 6.4.2
Fetching tty-reader 0.9.0
Fetching net-pop 0.1.2
Fetching net-smtp 0.3.4
Installing tty-reader 0.9.0
Fetching aws-sdk-core 3.181.0
Installing rqrcode 2.2.0
Installing net-smtp 0.3.4
Fetching css_parser 1.14.0
Installing net-pop 0.1.2
Installing puma 6.4.2 with native extensions
Fetching omniauth 2.1.1
Fetching faraday 1.10.3
Fetching activesupport 7.0.8.1
Installing css_parser 1.14.0
Installing omniauth 2.1.1
Installing aws-sdk-core 3.181.0
Installing faraday 1.10.3
Fetching et-orbi 1.2.7
Installing et-orbi 1.2.7
Fetching tzinfo-data 1.2023.3
Fetching stoplight 3.0.2
Installing stoplight 3.0.2
Fetching cose 1.3.0
Installing activesupport 7.0.8.1
Installing cose 1.3.0
Fetching tpm-key_attestation 0.12.0
Installing tpm-key_attestation 0.12.0
Installing tzinfo-data 1.2023.3
Fetching sidekiq-bulk 0.2.0
Installing sidekiq-bulk 0.2.0
Fetching sidekiq-unique-jobs 7.1.33
Fetching fog-core 2.1.0
Fetching bootsnap 1.16.0
Fetching loofah 2.21.4
Installing bootsnap 1.16.0 with native extensions
Installing sidekiq-unique-jobs 7.1.33
Installing fog-core 2.1.0
Installing loofah 2.21.4
Fetching ruby-saml 1.15.0
Installing ruby-saml 1.15.0
Fetching sanitize 6.0.2
Installing sanitize 6.0.2
Fetching domain_name 0.5.20190701
Fetching twitter-text 3.1.0
Fetching json-ld 3.3.1
Fetching rdf-normalize 0.6.1
Fetching tty-prompt 0.23.1
Installing twitter-text 3.1.0
Installing domain_name 0.5.20190701
Installing rdf-normalize 0.6.1
Fetching premailer 1.21.0
Using omniauth-cas 2.0.0 from https://github.com/stanhu/omniauth-cas.git (at 4211e6d@4211e6d)
Fetching fugit 1.8.1
Installing json-ld 3.3.1
Fetching net-imap 0.3.7
Fetching faraday_middleware 1.2.0
Installing tty-prompt 0.23.1
Installing premailer 1.21.0
Installing fugit 1.8.1
Installing faraday_middleware 1.2.0
Installing net-imap 0.3.7
Fetching elasticsearch-transport 7.13.3
Fetching rails-html-sanitizer 1.6.0
Fetching webauthn 3.0.0
Fetching rails-dom-testing 2.1.1
Fetching globalid 1.1.0
Installing rails-dom-testing 2.1.1
Installing rails-html-sanitizer 1.6.0
Fetching activemodel 7.0.8.1
Installing globalid 1.1.0
Fetching case_transform 0.2
Installing webauthn 3.0.0
Installing elasticsearch-transport 7.13.3
Fetching json-jwt 1.15.3
Fetching nsa 0.3.0
Installing activemodel 7.0.8.1
Installing case_transform 0.2
Fetching swd 1.3.0
Installing nsa 0.3.0
Installing json-jwt 1.15.3
Fetching webfinger 1.2.0
Fetching pundit 2.3.0
Installing swd 1.3.0
Fetching simple-navigation 4.4.0
Fetching fog-json 1.2.0
Fetching omniauth-saml 2.1.0
Installing pundit 2.3.0
Installing webfinger 1.2.0
Installing fog-json 1.2.0
Installing omniauth-saml 2.1.0
Fetching aws-sdk-kms 1.71.0
Installing simple-navigation 4.4.0
Fetching http-cookie 1.0.5
Fetching json-ld-preloaded 3.2.2
Fetching rufus-scheduler 3.9.1
Fetching azure-storage-common 2.0.4
Installing http-cookie 1.0.5
Installing rufus-scheduler 3.9.1
Fetching actionview 7.0.8.1
Installing aws-sdk-kms 1.71.0
Installing azure-storage-common 2.0.4
Installing json-ld-preloaded 3.2.2
Fetching activejob 7.0.8.1
Fetching mail 2.8.1
Fetching elasticsearch 7.13.3
Fetching rack-oauth2 1.21.3
Fetching activerecord 7.0.8.1
Installing actionview 7.0.8.1
Installing activejob 7.0.8.1
Installing rack-oauth2 1.21.3
Installing elasticsearch 7.13.3
Fetching kt-paperclip 7.2.1
Fetching validate_url 1.0.15
Installing mail 2.8.1
Installing validate_url 1.0.15
Fetching fog-openstack 0.3.10
Installing activerecord 7.0.8.1
Fetching sidekiq-scheduler 5.0.3
Fetching aws-sdk-s3 1.133.0
Installing kt-paperclip 7.2.1
Installing sidekiq-scheduler 5.0.3
Installing fog-openstack 0.3.10
Fetching azure-storage-blob 2.0.3
Installing azure-storage-blob 2.0.3
Installing aws-sdk-s3 1.133.0
Fetching chewy 7.3.4
Fetching actionpack 7.0.8.1
Fetching kaminari-actionview 1.2.2
Fetching md-paperclip-azure 2.2.0
Installing chewy 7.3.4
Installing kaminari-actionview 1.2.2
Fetching validate_email 0.1.6
Installing actionpack 7.0.8.1
Installing md-paperclip-azure 2.2.0
Installing validate_email 0.1.6
Fetching openid_connect 1.4.2
Installing openid_connect 1.4.2
Fetching discard 1.2.1
Fetching kaminari-activerecord 1.2.2
Fetching strong_migrations 0.8.0
Fetching pghero 3.3.4
Fetching omniauth_openid_connect 0.6.1
Installing discard 1.2.1
Installing kaminari-activerecord 1.2.2
Fetching kaminari 1.2.2
Installing omniauth_openid_connect 0.6.1
Installing strong_migrations 0.8.0
Installing kaminari 1.2.2
Fetching actioncable 7.0.8.1
Fetching actionmailer 7.0.8.1
Fetching activestorage 7.0.8.1
Installing pghero 3.3.4
Installing actioncable 7.0.8.1
Installing actionmailer 7.0.8.1
Fetching active_model_serializers 0.10.13
Fetching railties 7.0.8.1
Installing activestorage 7.0.8.1
Fetching omniauth-rails_csrf_protection 1.0.1
Installing active_model_serializers 0.10.13
Fetching simple_form 5.2.0
Installing omniauth-rails_csrf_protection 1.0.1
Fetching sprockets-rails 3.4.2
Installing sprockets-rails 3.4.2
Fetching premailer-rails 1.12.0
Installing simple_form 5.2.0
Fetching ffi-compiler 1.0.1
Installing railties 7.0.8.1
Installing premailer-rails 1.12.0
Installing ffi-compiler 1.0.1
Fetching llhttp-ffi 0.4.0
Fetching actiontext 7.0.8.1
Fetching actionmailbox 7.0.8.1
Installing llhttp-ffi 0.4.0 with native extensions
Installing actionmailbox 7.0.8.1
Installing actiontext 7.0.8.1
Fetching responders 3.1.0
Fetching dotenv-rails 2.8.1
Fetching haml-rails 2.1.0
Fetching rails 7.0.8.1
Fetching doorkeeper 5.6.6
Fetching lograge 0.13.0
Fetching rails-i18n 7.0.7
Installing dotenv-rails 2.8.1
Installing responders 3.1.0
Installing haml-rails 2.1.0
Installing rails 7.0.8.1
Installing lograge 0.13.0
Fetching scenic 1.7.0
Installing rails-i18n 7.0.7
Fetching webpacker 5.4.4
Using rails-settings-cached 0.6.6 from https://github.com/mastodon/rails-settings-cached.git (at v0.6.6-aliases-true@86328ef)
Installing doorkeeper 5.6.6
Installing scenic 1.7.0
Fetching devise 4.9.2
Installing webpacker 5.4.4
Installing devise 4.9.2
Fetching http 5.1.1
Installing http 5.1.1
Fetching devise-two-factor 4.1.0
Installing devise-two-factor 4.1.0
Bundle complete! 130 Gemfile dependencies, 243 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./vendor/bundle`
Post-install message from encryptor:
Please be aware that Encryptor v2.0.0 had a major security bug when using AES-*-GCM algorithms.
By default You will not be able to decrypt data that was previously encrypted using an AES-*-GCM algorithm.
Please see the README and https://github.com/attr-encrypted/encryptor/pull/22 for more information.
Post-install message from attr_encrypted:
WARNING: Using `#encrypted_attributes` is no longer supported. Instead, use `#attr_encrypted_encrypted_attributes` to avoid
collision with Active Record 7 native encryption.
Post-install message from devise:
[DEVISE] Please review the [changelog] and [upgrade guide] for more info on Hotwire / Turbo integration.
[changelog] https://github.com/heartcombo/devise/blob/main/CHANGELOG.md
[upgrade guide] https://github.com/heartcombo/devise/wiki/How-To:-Upgrade-to-Devise-4.9.0-%5BHotwire-Turbo-integration%5D
Post-install message from doorkeeper:
Starting from 5.5.0 RC1 Doorkeeper requires client authentication for Resource Owner Password Grant
as stated in the OAuth RFC. You have to create a new OAuth client (Doorkeeper::Application) if you didn't
have it before and use client credentials in HTTP Basic auth if you previously used this grant flow without
client authentication.
To opt out of this you could set the "skip_client_authentication_for_password_grant" configuration option
to "true", but note that this is in violation of the OAuth spec and represents a security risk.
Read https://github.com/doorkeeper-gem/doorkeeper/issues/561#issuecomment-612857163 for more details.
Post-install message from kt-paperclip:
##################################################
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER #
##################################################
Paperclip is now compatible with aws-sdk-s3.
If you are using S3 storage, aws-sdk-s3 requires you to make a few small
changes:
* You must set the `s3_region`
* If you are explicitly setting permissions anywhere, such as in an initializer,
note that the format of the permissions changed from using an underscore to
using a hyphen. For example, `:public_read` needs to be changed to
`public-read`.
For a walkthrough of upgrading from 4 to *5* (not 6) and aws-sdk >= 2.0 you can watch
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
Post-install message from rubyzip:
RubyZip 3.0 is coming!
**********************
The public API of some Rubyzip classes has been modernized to use named
parameters for optional arguments. Please check your usage of the
following classes:
* `Zip::File`
* `Zip::Entry`
* `Zip::InputStream`
* `Zip::OutputStream`
Please ensure that your Gemfiles and .gemspecs are suitably restrictive
to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
See https://github.com/rubyzip/rubyzip for details. The Changelog also
lists other enhancements and bugfixes that have been implemented since
version 2.3.0.
Post-install message from sidekiq-unique-jobs:
IMPORTANT!
Automatic configuration of the sidekiq middleware is no longer done.
Please see: https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/README.md#add-the-middleware
This version deprecated the following sidekiq_options
- sidekiq_options lock_args: :method_name
It is now configured with:
- sidekiq_options lock_args_method: :method_name
This is also true for `Sidekiq.default_worker_options`
We also deprecated the global configuration options:
- default_lock_ttl
- default_lock_ttl=
- default_lock_timeout
- default_lock_timeout=
The new methods to use are:
- lock_ttl
- lock_ttl=
- lock_timeout
- lock_timeout=
mastodon@Belladona:~/live$ yarn install --pure-lockfile
yarn install v1.22.22
[1/6] Validating package.json...
[2/6] Resolving packages...
[3/6] Fetching packages...
warning Pattern ["strip-ansi@^6.0.1"] is trying to unpack in the same destination "/home/mastodon/.cache/yarn/v6/npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity/node_modules/strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["string-width@^4.1.0"] is trying to unpack in the same destination "/home/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["strip-ansi@^6.0.0"] is trying to unpack in the same destination "/home/mastodon/.cache/yarn/v6/npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity/node_modules/strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["string-width@^4.2.3"] is trying to unpack in the same destination "/home/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["string-width@^1.0.2 || 2 || 3 || 4"] is trying to unpack in the same destination "/home/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["string-width@^4.2.0"] is trying to unpack in the same destination "/home/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["wrap-ansi@^7.0.0"] is trying to unpack in the same destination "/home/mastodon/.cache/yarn/v6/npm-wrap-ansi-cjs-7.0.0-67e145cff510a6a6984bdf1152911d69d2eb9e43-integrity/node_modules/wrap-ansi-cjs" as pattern ["wrap-ansi-cjs@npm:wrap-ansi@^7.0.0"]. This could result in non-deterministic behavior, skipping.
[4/6] Linking dependencies...
warning " > emoji-mart@3.0.1-j" has incorrect peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0 || ^17.0.0".
warning " > react-motion@0.5.2" has incorrect peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0".
warning " > react-notification@6.8.5" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > react-router-scroll-4@1.0.0-beta.2" has incorrect peer dependency "react@^15.0.0 || ^16.0.0".
warning " > react-router-scroll-4@1.0.0-beta.2" has incorrect peer dependency "react-dom@^15.0.0 || ^16.0.0".
warning " > react-swipeable-views@0.14.0" has incorrect peer dependency "react@^15.3.0 || ^16.0.0 || ^17.0.0".
warning "react-swipeable-views > react-swipeable-views-utils > react-event-listener@0.6.6" has incorrect peer dependency "react@^16.3.0".
[5/6] Building fresh packages...
[6/6] Cleaning modules...
$ husky install
[##################################################################################################################################################################################################################################] 5661/5661husky - Git hooks installed
Done in 39.39s.
mastodon@Belladona:~/live$ RAILS_ENV=production bundle exec rake mastodon:setup
Your instance is identified by its domain name. Changing it afterward will break things.
Domain name: mastodon.nowhere.moe
Single user mode disables registrations and redirects the landing page to your public profile.
Do you want to enable single user mode? No
Are you using Docker to run Mastodon? no
PostgreSQL host: /var/run/postgresql
PostgreSQL port: 5432
Name of PostgreSQL database: mastodon_production
Name of PostgreSQL user: mastodon
Password of PostgreSQL user:
Database configuration works! 🎆
Redis host: localhost
Redis port: 6379
Redis password:
Redis configuration works! 🎆
Do you want to store uploaded files on the cloud? No
Do you want to send e-mails from localhost? No
SMTP server: mail.nowhere.moe
SMTP port: 587
SMTP username: surveillance
SMTP password:
SMTP authentication: starttls
SMTP OpenSSL verify mode: client_once
Enable STARTTLS: always
E-mail address to send e-mails "from": surveillance@nowhere.moe
Send a test e-mail with this configuration right now? Yes
Send test e-mail to: nihilist@nowhere.moe
E-mail could not be sent with this configuration, try again.
wrong authentication type starttls
Try again? Yes
Do you want to send e-mails from localhost? No
SMTP server: mail.nowhere.moe
SMTP port: 587
SMTP username: surveillance
SMTP password:
SMTP authentication: plain
SMTP OpenSSL verify mode: none
Enable STARTTLS: always
E-mail address to send e-mails "from": surveillance@nowhere.moe
Send a test e-mail with this configuration right now? Yes
Send test e-mail to: nihilist@nowhere.moe
Do you want Mastodon to periodically check for important updates and notify you? (Recommended) Yes
This configuration will be written to .env.production
Save configuration? Yes
Now that configuration is saved, the database schema must be loaded.
If the database already exists, this will erase its contents.
Prepare the database now? Yes
Running `RAILS_ENV=production rails db:setup` ...
Created database 'mastodon_production'
Done!
The final step is compiling CSS/JS assets.
This may take a while and consume a lot of RAM.
Compile the assets now? Yes
Running `RAILS_ENV=production rails assets:precompile` ...
I, [2024-03-23T15:37:10.410961 #561860] INFO -- : Writing /home/mastodon/live/public/assets/doorkeeper/admin/application-a644908e7bab54fb749be0f59fb64a7480bbf9c4c2b79d4a65791cb7ab4d8730.css
I, [2024-03-23T15:37:10.411250 #561860] INFO -- : Writing /home/mastodon/live/public/assets/doorkeeper/admin/application-a644908e7bab54fb749be0f59fb64a7480bbf9c4c2b79d4a65791cb7ab4d8730.css.gz
I, [2024-03-23T15:37:10.418962 #561860] INFO -- : Writing /home/mastodon/live/public/assets/doorkeeper/application-c93dac2ad9d65e3393e0e2c958481e86ef7a5e5b0f6ce406842a7b99b25a4850.css
I, [2024-03-23T15:37:10.419052 #561860] INFO -- : Writing /home/mastodon/live/public/assets/doorkeeper/application-c93dac2ad9d65e3393e0e2c958481e86ef7a5e5b0f6ce406842a7b99b25a4850.css.gz
I, [2024-03-23T15:37:10.420412 #561860] INFO -- : Writing /home/mastodon/live/public/assets/pghero/favicon-db10337a56c45eb43c22ff5019546b520fa22c7281d4d385f235cbca67ed26bb.png
I, [2024-03-23T15:37:10.683030 #561860] INFO -- : Writing /home/mastodon/live/public/assets/pghero/application-fc5c893e805df52338bef3bda5a5431f74f1401da68e4f0381ac9ecb7a801e1a.js
I, [2024-03-23T15:37:10.683160 #561860] INFO -- : Writing /home/mastodon/live/public/assets/pghero/application-fc5c893e805df52338bef3bda5a5431f74f1401da68e4f0381ac9ecb7a801e1a.js.gz
I, [2024-03-23T15:37:10.689346 #561860] INFO -- : Writing /home/mastodon/live/public/assets/pghero/application-29fa393e673685cdbf2fb2b637098a15b988605f46bfa962f6e0cb94d15bc567.css
I, [2024-03-23T15:37:10.689459 #561860] INFO -- : Writing /home/mastodon/live/public/assets/pghero/application-29fa393e673685cdbf2fb2b637098a15b988605f46bfa962f6e0cb94d15bc567.css.gz
Compiling...
Compiled all packs in /home/mastodon/live/public/packs
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
`isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`
at isModuleDeclaration (/home/mastodon/live/node_modules/babel-plugin-lodash/node_modules/@babel/types/lib/validators/generated/index.js:2740:35)
at PluginPass.Program (/home/mastodon/live/node_modules/babel-plugin-lodash/lib/index.js:102:44)
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Done!
All done! You can now power on the Mastodon server 🐘
Do you want to create an admin user straight away? Yes
Username: nihilist
E-mail: nihilist@nowhere.moe
You can login with the password:
You can change your password once you login.
Donate XMR: 8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8
Contact: nihilist@contact.nowhere.moe (PGP)