Coder Social home page Coder Social logo

flyapp-mastodon's Issues

Mastodon doesn't start when deployed

Hello!

I tried using this repo to deploy Mastodon and one issue I had was that going to the URL caused it to hang/not show anything. It was a few days ago so I don't 100% remember what was the result, I remember it just hanging and doing nothing even if the monitoring page said that the "server started on 3000".

I was able to fix by removing the processes = ["rails"] in the [[services]] block (marcotteteam@2c1d5c3)

I wonder if anyone else had a similar problem and if removing this processes is the right fix?

You also need to seed

I could not promote my own user to Owner and turns out the seeds were missing:

root@3d859385:/# tootctl accounts modify lubien --role Owner
Cannot find user role with that name
root@3d859385:/# tootctl accounts modify lubien --role owner
Cannot find user role with that name
root@3d859385:/# tootctl accounts modify lubien --confirm
OK
root@3d859385:/# tootctl accounts modify lubien --role Owner
Cannot find user role with that name
root@3d859385:/# tootctl accounts modify lubien --role Owner
Cannot find user role with that name
root@3d859385:/# tootctl accounts modify lubien --role 'Owner'
Cannot find user role with that name
root@3d859385:/# tootctl accounts modify lubien --role Owner
Cannot find user role with that name
root@3d859385:/# tootctl accounts modify lubien --role Admin
Cannot find user role with that name
root@3d859385:/# tootctl accounts modify lubien --role Admin

root@3d859385:/# cd opt/mastodon/
root@3d859385:/opt/mastodon# bundle exec rails db:seed
root@3d859385:/opt/mastodon# cd ..
root@3d859385:/opt# cd ..
root@3d859385:/# tootctl accounts modify lubien --role Owner

Sidekiq and Puma can't run in separate processes/VMs

Mastodon contains a feature that creates a background job to retry if fetching remote media fails: mastodon/mastodon#11775.

Unfortunately, since Fly cannot mount the same volume in different process VMs, that means Sidekiq creates a valid database record and then writes the image into a container-only temporary file system. At that point Mastodon starts returning 404s for those images, but it has a valid DB record, so there's not any easy way to recover.

I think this means that Puma and Sidekiq have to run inside the same VM for this to work at all.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.