After tinkering for a while and more reading, it looks like the 2 MB file size upload limitation is with headers and avatars and that increasing the upload sizes within the media_attachment.rb config file doesn't affect headers and avatars. This is unfortunate but doable.
ScottyMojo
Posts
-
2 MB File Size Upload Limit Issue -
2 MB File Size Upload Limit IssueI am running into a 2 MB file size upload limit issue. This is occurring despite Mastodon being configured to allow much larger files. When editing my Admin profile and attempting to upload a header and avatar that is larger than 2 MB, an error message is displayed stating that uploads are set at a maximum of 2 MB. I've been looking everywhere for an answer to this but I can't find a solution. Does anyone know where this limit is located?
-
Question about editing and saving files that are currently read only@robi I put Mastodon in recovery mode, successfully made the edit and saved the file but when going out of recovery mode, Mastodon was restarted and my edit was gone!
-
Question about editing and saving files that are currently read onlyTo elaborate a bit more on the username issue, I also tried to manually create the "admin" username via command line but the reserved message displayed and couldn't create the account.
Here is the example that I tried:
RAILS_ENV=production bin/tootctl accounts create
alice
--email alice@example.com
--confirmed
--role OwnerHowever, please note that this is just the example. I replaced the username and email address accordingly.
From the sounds of things, I need to edit the reserved_usernames in config/settings.yml which will hopefully let me create the account, then grant it admin privileges via command line.
i.e.
RAILS_ENV=production bin/tootctl accounts modify alice --role admin
-
Question about editing and saving files that are currently read onlyI read that trying to tie in the Cloudron user management doesn't work very well so during installation, I selected to let all of the user management be handled by Mastodon. The side effect to this is that I would like to create "admin" as a username for my admin account. However, in 4.x, there are reserved usernames that aren't allowing an account with the username to be created. After reading various posts, it sounds like I need to edit reserved_usernames in config/settings.yml.
I also need to edit the media_attachment.rb file located in app/models/
Thus far, I think those are the only files that I need to edit but I was wanting to play with the theme files too.
Is it possible for me to open SSH as root from my Digital Ocean droplet and edit / write the files? If so, where is the Mastodon installation located? I can't find it. Do I need to chmod the file first and if so, is chmod +rwx filename the correct permissions?
Thank you greatly for your guidance!
-
Question about editing and saving files that are currently read onlyI need to edit some Mastodon files but I keep getting a read only error in the terminal. :w! doesn't work. I also tried to chmod write permission to the file but it's a no go. How do I write the file after I've made changes? The files that I need to change are not available in the File Manager.