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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Mastodon invalid argument error

    App Packaging & Development
    2
    3
    54
    Loading More Posts
    • 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.
    • chetbaker
      chetbaker last edited by

      Hi, I've been trying to install a Mastodon instance (because I want to have Hometown), but I'm receiving this error at the moment of running cloudron build.

      I tried with other apps with not an issue, except of mastodon. Any thoughts on what can I do? Thanks!

      13:24:50 ❯ cloudron build
      Building locally as /chetbaker/mastodon:20221202-162454-142f2a6eb
      
      invalid argument "/chetbaker/mastodon:20221202-162454-142f2a6eb" for "-t, --tag" flag: invalid reference format
      See 'docker build --help'.
      node:internal/errors:863
        const err = new Error(message);
                    ^
      
      Error: Command failed: docker build  -t /chetbaker/mastodon:20221202-162454-142f2a6eb -f Dockerfile  /Users/chetbaker/dev/mastodon-app
          at checkExecSyncError (node:child_process:871:11)
          at execSync (node:child_process:943:15)
          at buildLocal (/opt/homebrew/lib/node_modules/cloudron/src/build-actions.js:187:5)
          at Command.build (/opt/homebrew/lib/node_modules/cloudron/src/build-actions.js:347:9)
          at Command.listener [as _actionHandler] (/opt/homebrew/lib/node_modules/cloudron/node_modules/commander/lib/command.js:482:17)
          at /opt/homebrew/lib/node_modules/cloudron/node_modules/commander/lib/command.js:1264:65
          at Command._chainOrCall (/opt/homebrew/lib/node_modules/cloudron/node_modules/commander/lib/command.js:1158:12)
          at Command._parseCommand (/opt/homebrew/lib/node_modules/cloudron/node_modules/commander/lib/command.js:1264:27)
          at /opt/homebrew/lib/node_modules/cloudron/node_modules/commander/lib/command.js:1062:27 {
        status: 125,
        signal: null,
        output: [ null, null, null ],
        pid: 10793,
        stdout: null,
        stderr: null
      }
      
      Node.js v18.9.1
      
      fbartels 1 Reply Last reply Reply Quote 1
      • fbartels
        fbartels App Dev @chetbaker last edited by

        @chetbaker said in Mastodon invalid argument error:

        /chetbaker/mastodon:20221202-162454-142f2a6eb

        the / at the beginning looks a little sus to me.

        I am not sure if there is a way to do this with the cli directly, but it stores its configuration in ~/.cloudron.json. There i would adjust the repository and dockerimage values to remove the slash.

        chetbaker 1 Reply Last reply Reply Quote 2
        • chetbaker
          chetbaker @fbartels last edited by

          @fbartels that fixed the issue! I have no idea what it added up that /

          thanks!

          1 Reply Last reply Reply Quote 3
          • Topic has been marked as a question  nebulon nebulon 
          • Topic has been marked as solved  nebulon nebulon 
          • First post
            Last post
          Powered by NodeBB