Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mastodon
  3. Warnings when editing user to be an admin

Warnings when editing user to be an admin

Scheduled Pinned Locked Moved Mastodon
5 Posts 4 Posters 756 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jdaviescoatesJ Online
    jdaviescoatesJ Online
    jdaviescoates
    wrote on last edited by jdaviescoates
    #1

    I just followed the docs to make a user an admin and there were some warnings:

    /app/code# bin/tootctl accounts modify doughnuteconomics --role admin warning: parser/current is loading parser/ruby27, which recognizes2.7.6-compliant syntax, but you are running 2.7.0. Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri. /var/lib/gems/2.7.0/gems/activerecord-6.1.6/lib/active_record/connection_adapters/postgresql_adapter.rb:78: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /var/lib/gems/2.7.0/gems/pg-1.3.5/lib/pg.rb:68: warning: The called method `connect' is defined here OK

    Not sure if any of that actually matters, but figured I'd report it in case it does.

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    0
    • subvenS Offline
      subvenS Offline
      subven
      wrote on last edited by
      #2

      In Ruby 3.0, positional arguments and keyword arguments will be separated. Ruby 2.7 will warn for behaviors that will change in Ruby 3.0. If you see the following warnings, you need to update your code

      Nothing you can fix. It's up to Mastodon devs to adjust their code 🙂

      robiR 1 Reply Last reply
      2
      • subvenS subven

        In Ruby 3.0, positional arguments and keyword arguments will be separated. Ruby 2.7 will warn for behaviors that will change in Ruby 3.0. If you see the following warnings, you need to update your code

        Nothing you can fix. It's up to Mastodon devs to adjust their code 🙂

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

        @subven I read that as if Cloudron could use a newer version of Ruby > 2.7.0

        Conscious tech

        subvenS 1 Reply Last reply
        1
        • robiR robi

          @subven I read that as if Cloudron could use a newer version of Ruby > 2.7.0

          subvenS Offline
          subvenS Offline
          subven
          wrote on last edited by subven
          #4

          @robi afaik parser has to be compatible with the ruby version used but since this is just a standard depreciation warning, we can ignore it for now. If you really need to use a newer version, unit tests will fail before a new package is released.

          PS: If you want to get rid of the warning, use parser/ruby27 instead of parser/current lol just saw that ruby27 is actually used....hmmmm....mhhhh....dunno what this is about then 😞

          1 Reply Last reply
          2
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            Looks like it wants a slightly higher ruby version than that is bundled with ubuntu 20. I guess we can install the ruby version it wants via rvm but this seems like an overkill to remove a warning.

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search