I merged the changes for 0.17 into my local in order to try to get the fix for the youtube music player. The fix didn’t seem to be working, so I shutdown and tried to restart Ares.
It will not restart via ./startares. The game/logs doesn’t show any new information since the shutdown message, and errors.txt contains
I reset my code back to the last commit in my repo that still worked (which was about consistent with the 0.16 release), but still can’t restart Ares. Not sure if I am missing something obvious.
Exporting default language settings.
Starting game engine.
Using rake 12.3.0
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.1.5
Using ansi 1.5.0
Using aws-partitions 1.68.0
Using aws-sigv4 1.0.2
Using jmespath 1.3.1
Using aws-sdk-core 3.17.0
Using aws-sdk-kms 1.5.0
Using aws-sdk-s3 1.8.2
Using backports 3.11.1
Using bcrypt 3.1.11
Using bson 4.3.0
Using bundler 1.16.2
Using daemons 1.2.6
Using dentaku 3.1.0
Using diff-lcs 1.3
Using diffy 3.2.0
Using eventmachine 1.2.5
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Using erubis 2.7.0
Using ffi 1.9.23
Using handlebars-source 4.0.11
Using libv8 3.16.14.19 (x86_64-linux)
Using ref 2.0.0
Using therubyracer 0.12.3
Using handlebars 0.8.0
Using hiredis 0.6.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.2
Using html2markdown 0.0.3
Using json 2.1.0
Using log4r 1.1.10
Using multi_json 1.13.1
Using mustermann 1.0.2
Using redic 1.5.0
Using nest 3.1.1
Using stal 0.3.0
Using ohm 3.1.1
Using rack 2.0.4
Using rack-protection 2.0.1
Using rb-fsevent 0.10.3
Using rb-inotify 0.9.10
Using redcarpet 3.4.0
Using redis 4.0.1
Using redis-store 1.4.1
Using redis-rack 2.0.4
Using rspec-support 3.7.1
Using rspec-core 3.7.1
Using rspec-expectations 3.7.0
Using rspec-mocks 3.7.0
Using rspec 3.7.0
Using rubyzip 1.2.1
Using sass-listen 4.0.0
Using sass 3.5.5
Using tilt 2.0.8
Using sinatra 2.0.1
Using sinatra-contrib 2.0.1
Using sinatra-cross_origin 0.4.0
Using sinatra-flash 0.3.0
Using sinatra-reloader 1.0
Using thin 1.7.2
Using timezone 1.2.10
Bundle complete! 30 Gemfile dependencies, 68 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Creating kill script.
./startares: line 11: bin/killares: No such file or directory
chmod: cannot access 'bin/killares': No such file or directory
Deploying website.
yarn install v1.7.0
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 1.29s.
Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
⠦ Building[WARN] (broccoli-uglify-sourcemap) Minifying: `assets/vendor.js` took: 20744ms (more than 20,000ms)
cleaning up...
Built project successfully. Stored in "dist/".
File sizes:
- dist/assets/ares-webportal-76ec789eb3c3ee0d2de1b5570dd351bc.css: 123.26 KB (20.85 KB gzipped)
- dist/assets/ares-webportal-bb00674469e7db00766b4aaea22090b0.js: 370.32 KB (46.42 KB gzipped)
- dist/assets/vendor-37ee8504bb665beb137c0f8bf8668a35.js: 1.17 MB (297.82 KB gzipped)
- dist/assets/vendor-d28e8db53c3fc0091e83a863504d9487.css: 3.69 KB (1.46 KB gzipped)
- dist/ember-fetch/fastboot-fetch-805e176077930c98aec5834ae48bd0f2.js: 283 B (199 B gzipped)
- dist/scripts/ace_editor-d5b902451017baec91b94fa89fe85cb1.js: 359.51 KB (100.54 KB gzipped)
- dist/scripts/alertify.min-81d644e31fddc696b907f604e91770ad.js: 34.45 KB (9.32 KB gzipped)
- dist/scripts/ansi_up-656cf4cbafabdbcb080ea20bf426e713.js: 3.92 KB (1.49 KB gzipped)
- dist/scripts/music_player-f6b53e06f95240bfeb4c69ee3e1abb01.js: 237 B (167 B gzipped)
AresMUSH failed to start. Check the highest-numbered log in game/logs for more information.
I haven’t seen that error before, but Googling suggests trying this:
gem install bundler
There’s sometimes interactions with different Ruby versions and the bundle command.
Did you run the database migrations after upgrading? If so, then you can’t downgrade easily and that might be why you were getting errors after reverting. Starting the game in dev mode using bin/devstart will print error messages to the screen and can help with debugging.
Thanks, I’ll try both that command and running devstart. I didn’t do any database migrations… Though in trying to recheck the upgrade process I notice that I’m getting a 403 forbidden for the aresmush.com website.
edit: devstart after running gem install bundler showed this issue:
bundler: failed to load command: rake (/home/ares/.rvm/rubies/ruby-2.5.1/bin/rake)
Trying to figure out why this would happen after just pulling new code from the upstream AresMUSH repository.
edit 2: I needed to run gem install bundler a few times before I could get the game up past the error. Still not sure why it happened, but I’m not super familiar with Ruby.
Since the default install uses Ruby 2.4 and you’re using Ruby 2.5 according to your error messages, I’m thinking you hit this error here, which requires some rake/bundler gymnastics to sort out.
Is it running now though?
I’m also curious how you ended up on Ruby 2.5. What environment are you using? Digital Ocean droplet or custom VPS? Did you use the standard install scripts or do your own thing?
I think so too. In Googling around I wound up on that page, but decided to just try to run gem install bundler again. The game seems to be running again for now.
I’m not sure how I ended up on Ruby 2.5 either! I’m on a new DigitalOcean droplet:
I used the standard setup_server and install scripts you get from doing the curl requests outlined in the install tutorial, too. No modifications to either script. The only modification I really maintain is to have the deploy script in ares-webportal/bin deploy to /var/www/aresmush/html instead of the default location.
I did setup a fork of AresMUSH and pointed the game to the fork, but I don’t know how that would implicate the install of Ruby.
That’s interesting. The install script tries to register 2.4 when it installs Ares:
rvm install ruby-2.4.1
rvm use ruby-2.4.1
So if you ended up on 2.5 that’s obviously not working. I’ll check it out on the latest Ubuntu droplet and see what I can figure out. Thanks for the info.
(There shouldn’t be anything wrong with using 2.5 in general - there’s just apparently this known bundler hiccup – which is a general Ruby thing, not anything to do with Ares specifically - when transitioning from 2.4 to 2.5.)
Yeah. It might be that the latest Ubuntu wants to install a newer version of Ruby.
If you can’t find anything in your investigations it might honestly just be me and I don’t remember. I did some crazy things while I was initially messing around with things like deleting/recreating the ares user, running the scripts multiple times, removing and installing Ruby over again, but I was pretty sure I reformatted the entire droplet after that to start over again clean with my current game.
This might also be a silly question but I can’t seem to find the new include_pose_separator config option in scenes.yml. Do I need to do something to add it? I’m sure I updated because I see the conditional for if (Global.read_config("scenes", "include_pose_separator")) in plugins/scenes/helper.rb, but can’t seem to find the config option in the web portal.
It should have been created by the database migration, which I think you said you hadn’t run yet. You can do migrate in-game or bin/migrate from the aresmush directory in the server shell.
Ah, yeah. I thought it might be covered by the bin/migrate so I did run it, but it doesn’t seem to have taken. I didn’t get the pose separator until I added the configuration key manually. I also still have maps.yml which if I am reading the release notes correctly, should have been removed along with the maps system.
There seems to be an error rake aborted! NoMethodError: undefined method to_bool for false:FalseClass error in the middle. Maybe another consequence of Ruby 2.4 vs 2.5?
Output of bin/migrate:
ares@scion-aresmush:~/aresmush/bin$ ./migrate
Using rake 12.3.0
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.1.5
Using ansi 1.5.0
Using aws-partitions 1.68.0
Using aws-sigv4 1.0.2
Using jmespath 1.3.1
Using aws-sdk-core 3.17.0
Using aws-sdk-kms 1.5.0
Using aws-sdk-s3 1.8.2
Using backports 3.11.1
Using bcrypt 3.1.11
Using bundler 1.16.2
Using colorize 0.8.1
Using daemons 1.2.6
Using dentaku 3.1.0
Using diff-lcs 1.3
Using diffy 3.2.0
Using eventmachine 1.2.5
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Using erubis 2.7.0
Using ffi 1.9.23
Using hiredis 0.6.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.2
Using html2markdown 0.0.3
Using json 2.1.0
Using log4r 1.1.10
Using multi_json 1.13.1
Using mustermann 1.0.2
Using redic 1.5.0
Using nest 3.1.1
Using stal 0.3.0
Using ohm 3.1.1
Using parslet 1.8.2
Using rack 2.0.4
Using rack-protection 2.0.1
Using rb-fsevent 0.10.3
Using rb-inotify 0.9.10
Using redcarpet 3.4.0
Using redis 4.0.1
Using redis-store 1.4.1
Using redis-rack 2.0.4
Using rspec-support 3.7.1
Using rspec-core 3.7.1
Using rspec-expectations 3.7.0
Using rspec-mocks 3.7.0
Using rspec 3.7.0
Using ruby-handlebars 0.0.6
Using rubyzip 1.2.1
Using sass-listen 4.0.0
Using sass 3.5.5
Using tilt 2.0.8
Using sinatra 2.0.1
Using sinatra-contrib 2.0.1
Using sinatra-cross_origin 0.4.0
Using sinatra-flash 0.3.0
Using sinatra-reloader 1.0
Using thin 1.7.2
Using timezone 1.2.10
Bundle complete! 29 Gemfile dependencies, 65 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
(in /home/ares/aresmush)
/home/ares/.rvm/gems/ruby-2.5.1/gems/log4r-1.1.10/lib/log4r/outputter/rollingfileoutputter.rb:37: warning: constant ::Fixnum is deprecated
/home/ares/.rvm/gems/ruby-2.5.1/gems/log4r-1.1.10/lib/log4r/outputter/rollingfileoutputter.rb:57: warning: constant ::Fixnum is deprecated
2018-07-04 17:09:35 INFO - Loading cookies
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/cookies/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading arescentral
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/arescentral/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading events
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/events/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading places
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/places/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading mail
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/mail/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading profile
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/profile/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading forum
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/forum/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading website
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/website/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading rooms
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/rooms/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading status
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/status/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading friends
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/friends/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading fs3combat
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/fs3combat/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading demographics
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/demographics/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading page
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/page/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading tinker
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/tinker/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading roles
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/roles/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading ictime
2018-07-04 17:09:35 INFO - Loading fs3skills
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/fs3skills/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading chargen
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/chargen/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading weather
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/weather/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading who
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/who/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading ranks
2018-07-04 17:09:35 INFO - Loading scenes
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/scenes/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading help
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/help/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading describe
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/describe/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading idle
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/idle/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading utils
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/utils/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading ooctime
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/ooctime/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading login
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/login/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading custom
2018-07-04 17:09:35 INFO - Loading channels
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/channels/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading jobs
2018-07-04 17:09:35 DEBUG - Loading translations from /home/ares/aresmush/plugins/jobs/locales/locale_en.yml.
2018-07-04 17:09:35 INFO - Loading manage
2018-07-04 17:09:36 DEBUG - Loading translations from /home/ares/aresmush/plugins/manage/locales/locale_en.yml.
2018-07-04 17:09:36 INFO - Database config: 127.0.0.1:6379
2018-07-04 17:09:36 INFO - Applying migration 0001_beta11_update
2018-07-04 17:09:36 DEBUG - Adding weather configuration.
2018-07-04 17:09:36 DEBUG - Adding demographics help text.
2018-07-04 17:09:36 INFO - Migration 0001_beta11_update applied.
2018-07-04 17:09:36 INFO - Applying migration 0002_beta12_update
2018-07-04 17:09:36 DEBUG - Adding wiki configuration.
2018-07-04 17:09:36 DEBUG - Adding advantages config.
2018-07-04 17:09:36 DEBUG - Adding who config.
2018-07-04 17:09:36 DEBUG - Adding rank option.
2018-07-04 17:09:36 INFO - Migration 0002_beta12_update applied.
2018-07-04 17:09:36 INFO - Applying migration 0003_beta13_update
2018-07-04 17:09:36 DEBUG - Fixing scene config typo.
2018-07-04 17:09:36 DEBUG - Adding desc tag colors.
2018-07-04 17:09:36 DEBUG - Changing hook shortcut.
2018-07-04 17:09:36 DEBUG - Adding skin random colors.
2018-07-04 17:09:36 DEBUG - Clearing all web watchers.
2018-07-04 17:09:36 INFO - Migration 0003_beta13_update applied.
2018-07-04 17:09:36 INFO - Applying migration 0004_beta14_update
2018-07-04 17:09:36 DEBUG - Setting IC time names.
2018-07-04 17:09:36 INFO - Migration 0004_beta14_update applied.
2018-07-04 17:09:36 INFO - Applying migration 0005_beta15_update
2018-07-04 17:09:36 DEBUG - Moving descriptions.
2018-07-04 17:09:36 DEBUG - Notice settings.
2018-07-04 17:09:36 DEBUG - Game setting.
rake aborted!
NoMethodError: undefined method `to_bool' for false:FalseClass
/home/ares/aresmush/install/migrations/0005_beta15_update.rb:51:in `migrate'
/home/ares/aresmush/engine/aresmush/db_migrator.rb:47:in `block in migrate'
/home/ares/aresmush/engine/aresmush/db_migrator.rb:29:in `each'
/home/ares/aresmush/engine/aresmush/db_migrator.rb:29:in `migrate'
/home/ares/aresmush/Rakefile.rb:81:in `block in <top (required)>'
/home/ares/.rvm/gems/ruby-2.5.1@global/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/cli/exec.rb:74:in `load'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/cli/exec.rb:28:in `run'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/cli.rb:424:in `exec'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/cli.rb:27:in `dispatch'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/cli.rb:18:in `start'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/exe/bundle:30:in `block in <top (required)>'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/home/ares/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.2/exe/bundle:22:in `<top (required)>'
/home/ares/.rvm/gems/ruby-2.5.1/bin/bundle:23:in `load'
/home/ares/.rvm/gems/ruby-2.5.1/bin/bundle:23:in `<main>'
/home/ares/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:15:in `eval'
/home/ares/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => migrate
(See full trace by running task with --trace)
So apparently a new version of RVM came out that has Ruby 2.5 as its default. So what happens is…
Base droplet install uses Ruby 2.3
Ares install script installs Ruby 2.4
The install tries to register 2.4 as the version to use with rvm use 2.4.1 but that setting isn’t sticking around after the script is done.
RVM uses its default - 2.5.
I’ll look into the best way to fix this. In the mean time, to avoid that error I suggest adding rvm use 2.4.1 to the end of your /home/ares/.profile. That way you know you’re using the version of Ruby Ares has been tested with.
Yeah it looks like your migration suffered an error and didn’t complete. Not 2.5 related, just an edge case I didn’t account for. I just pushed a change that should fix that if you want to grab the latest code and try again.
You’ll definitely want to make sure the migration completes OK because otherwise that will cause ripple-effect errors. So if it still fails, we’ll sort it out.