Giter Site home page Giter Site logo

yunohost-apps / pixelfed_ynh Goto Github PK

View Code? Open in Web Editor NEW
40.0 16.0 13.0 1.6 MB

The federated image shareing service Pixelfed for YunoHost

Home Page: https://pixelfed.org/

License: GNU Affero General Public License v3.0

Shell 100.00%
pixelfed yunohost yunohost-apps closember

pixelfed_ynh's Introduction

Pixelfed for YunoHost

Integration level Working status Maintenance status

Install Pixelfed with YunoHost

Read this README is other languages.

This package allows you to install Pixelfed quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

PixelFed is a decentralized and federated image sharing software under development. In addition to taking over the functionality of Instagram, the functioning of PixelFed is:

  • Decentralized: Each instance can follow one or more other PixelFed instances in order to allow their respective members to interact. A first pixelfed.social public body limited to 10,000 members has already been created.

  • Federated: Via the ActivityPub protocol, PixelFed can interact with other software that is part of the Fediverse, such as Mastodon or PeerTube for example.

It is also possible to import your data from Instagram.

Shipped version: 0.11.13~ynh1

Screenshots

Screenshot of Pixelfed

Disclaimers / important information

Some useful commands to know to manage your instance

You need to run them from you pixelfed folder (usually /var/www/pixelfed). The php.VERSION might be changed according to you current package version.

Applying changes from the .env config file

Once you made some changes, you need to run php8.2 artisan config:cache && php8.2 artisan cache:clear to apply them. Note: this will disconnect any logged-in account (including from the admin web UI).

Removing avatar cache to save space

php8.2 artisan avatar:storage-deep-clean

Use it to prune old avatars that are outdated or no longer used. This might save some disk space.

Fix missing avatars or refetch them.

php8.2 artisan avatar:storage

It can be used to fetch remote avatars that are not loaded (or in case you deleted /var/www/pixelfed/storage/app/public/cache/avatars where they are stored). It might also be usefull to migrate that cache (only, not the other existing media) to an S3 storage, by refectching all of them.

Be aware that this will generate a lot of "jobs" that will take time to be completed, and have a significant load on your server (especially bandwith and CPU).

When using S3

  • Delete non-used media that where not cleaned (it happens) : php8.2 artisanmedia:gc (Delete media uploads not attached to any active statuses)

  • Same but for media stored on S3 storage and still locally stored (doubles) : php8.2 artisan media:s3gc (Delete (local) media uploads that exist on S3)

  • Migrate your media to an S3 storage (you need to configure it first), so media uploaded before configuring S3 are migrated there: php8.2 artisanmedia:migrate2cloud (Move older media to cloud storage)

  • Migrate from one S3 backend the other one (change the configuration first): php8.2 artisanmedia:cloud-url-rewrite (Rewrite S3 media urls from local users)

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that:

sudo yunohost app install https://github.com/YunoHost-Apps/pixelfed_ynh/tree/testing --debug
or
sudo yunohost app upgrade pixelfed -u https://github.com/YunoHost-Apps/pixelfed_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

pixelfed_ynh's People

Contributors

ahstro avatar alexaubin avatar arthurlutz avatar bg-wa avatar ericgaspar avatar jedie avatar jibec avatar kay0u avatar lapineige avatar oniricorpe avatar oufmilo avatar tagadda avatar themancalledjakob avatar tituspijean avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pixelfed_ynh's Issues

Instalation results in 502 on nginx

Installation results in error 502 Bad Gateway on nginx.
Here's the installation log
Installation complete The SSOwat configuration has been generated Installation of pixelfed completed Reloading nginx web server... Configuring SSOwat... fatal: Not a git repository (or any of the parent directories): .git Reload the service php7.2-fpm Configuring php-fpm... Configuring system user... Reload the service nginx Configuring nginx web server... Creating a PostgreSQL database... Installing dependencies... Validating installation parameters... Installing application pixelfed…
I found the issue #37, but running php artisan horizon didn't help and was returning a lot of messages like
mmap() failed: [12] Cannot allocate memory PHP Fatal error: Out of memory (allocated 12582912) (tried to allocate 20480 bytes) in /var/www/pixelfed/bootstrap/cache/routes.php on line 15
I'm running yuno host on digital ocean droplet with 1gb of ram, if it matters

Compose UI doesn't work

The compose UI popup doesn't work (it was also the case with 0.9.0).
The classical one works, but the other one let me upload the image, and after the 100% I have a pop-up "Oops, something went wrong".

I don't know if it's Yunohost or Pixelfed related.

Pixelfed on Yunohost

Hello
Is Pixelfed ready for Yunohost? I look forward to it working so I can install my instance.

Thank you in advance for what you do

How to change storage quotas ?

Hello,

I see the default quota is 1GB and i'd like to set it to «unlimited», but i dont see such parameter in the .env file. How can i do that ?

There is no «LIMIT_ACCOUNT_SIZE» in my .env file, and adding it manually with the parameter «false» doesn't do anything.

Upgrade to 0.9.4 failed

Hello,

I have an error at the end of the upgrade to the version 0.9.4
Just after the php artisan lines.

Have any idea what that could be ?

Thank you !


2019-06-06 21:41:21,405: DEBUG - Migrating: 2019_04_25_200411_add_snowflake_ids_to_collections_table
2019-06-06 21:41:21,506: DEBUG - 
2019-06-06 21:41:21,506: WARNING - !!
2019-06-06 21:41:21,506: DEBUG -    Illuminate\Database\QueryException  : SQLSTATE[23505]: Unique violation: 7 ERROR:  duplicate key value violates unique constraint "migrations_pkey"
2019-06-06 21:41:21,507: WARNING -   pixelfed's script has encountered an error. Its execution was cancelled.
2019-06-06 21:41:21,507: DEBUG - DETAIL:  Key (id)=(76) already exists. (SQL: insert into "migrations" ("migration", "batch") values (2019_04_25_200411_add_snowflake_ids_to_collections_table, 4))
2019-06-06 21:41:21,507: WARNING - !!
2019-06-06 21:41:21,507: DEBUG - 
2019-06-06 21:41:21,507: WARNING - Upgrade failed.
2019-06-06 21:41:21,508: DEBUG -   at /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
2019-06-06 21:41:21,508: DEBUG -     660|         // If an exception occurs when attempting to run a query, we'll format the error
2019-06-06 21:41:21,508: DEBUG -     661|         // message to include the bindings with SQL, which will make this exception a
2019-06-06 21:41:21,508: DEBUG -     662|         // lot more helpful to the developer instead of just the database's errors.
2019-06-06 21:41:21,508: DEBUG -     663|         catch (Exception $e) {
2019-06-06 21:41:21,508: DEBUG -   > 664|             throw new QueryException(
2019-06-06 21:41:21,508: DEBUG -     665|                 $query, $this->prepareBindings($bindings), $e
2019-06-06 21:41:21,509: DEBUG -     666|             );
2019-06-06 21:41:21,509: DEBUG -     667|         }
2019-06-06 21:41:21,509: DEBUG -     668|
2019-06-06 21:41:21,509: DEBUG - 
2019-06-06 21:41:21,509: DEBUG -   Exception trace:
2019-06-06 21:41:21,510: DEBUG - 
2019-06-06 21:41:21,510: DEBUG -   1   Doctrine\DBAL\Driver\PDOException::("SQLSTATE[23505]: Unique violation: 7 ERROR:  duplicate key value violates unique constraint "migrations_pkey"
2019-06-06 21:41:21,510: DEBUG - DETAIL:  Key (id)=(76) already exists.")
2019-06-06 21:41:21,510: DEBUG -       /var/www/pixelfed/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119
2019-06-06 21:41:21,510: DEBUG - 
2019-06-06 21:41:21,510: DEBUG -   2   PDOException::("SQLSTATE[23505]: Unique violation: 7 ERROR:  duplicate key value violates unique constraint "migrations_pkey"
2019-06-06 21:41:21,510: DEBUG - DETAIL:  Key (id)=(76) already exists.")
2019-06-06 21:41:21,511: DEBUG -       /var/www/pixelfed/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
2019-06-06 21:41:21,511: DEBUG - 
2019-06-06 21:41:21,511: DEBUG -   Please use the argument -v to see more details.
2019-06-06 21:41:21,511: DEBUG - + ynh_exit_properly
2019-06-06 21:41:21,511: DEBUG - + local exit_code=1
2019-06-06 21:41:21,511: DEBUG - + '[' 1 -eq 0 ']'
2019-06-06 21:41:21,511: DEBUG - + trap '' EXIT
2019-06-06 21:41:21,512: DEBUG - + set +eu
2019-06-06 21:41:21,512: DEBUG - + echo -e '!!\n  pixelfed'\''s script has encountered an error. Its execution was cancelled.\n!!'

Add an interface to set an user as admin

Right know the people who install Pixelfed needs to type a command to give admin rights to an account.
I'd would be better (=more accessible) to expose that action thought Yunohost UI.

I don't know if it is (yet ?) possible to create an account when the app is installed (does Pixelfed support that API ?), in that case I suppose I would be better to setup the first account during installation, and give it admin rights.
If it's not (yet) possible, an option in Yunohost admin UI would be cool :)

And it might also be better to have the option to do it after installing the app (for instance, later you want to add another admin to your app).

We could use Yunohost app actions/config panel for that (see: https://forum.yunohost.org/t/yunohost-3-1-minor-stable-release-version-stable-mineure/5445).

What do you think ?

get ride of /var/log/$app stuff

There are several places in the package that refer to /var/log/$app but I'm not sure if pixelfed_ynh can log something...

If it can log thing we should check that it logs them... If not, references to that should be removed

Suis-je bien en version 0.9.0 - Am I in version 0.9.0

Bonjour

Je viens d'installer la version que tu viens de publier (donc normalement la 0.9.0) mais dans la configuration j'ai ce message : Feature Unavailable: This feature will be released in v0.9.0. dans Maintenance, Configuration, Features, Storage et Page. Quand je vais dans System, j'ai bien indiqué la version 0.9.0.

Il y a également quelques souci :

  • Je ne vois pas la fédération et je n'arrive pas à ajouter une personne d'une autre instance. Est-ce normal ?

Merci de ton aide


Hello

I just installed the version you just published (so normally 0.9.0) but in the configuration I have this message: Feature Unavailable: This feature will be released in v0.9.0. in Maintenance, Configuration, Features, Storage and Page. When I go into System, I indicated version 0.9.0.

There are also some concerns:

  • I do not see the federation and I can not add a person from another instance. Is this normal?

thanks for your help

?init in file stopping php artisan commands

PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /var/www/pixelfed/vendor/zendframework/zend-diactoros/src/functions/marshal_uri_from_sapi.php on line 83

I am trying to turn on ActivityPub inbox and sharedinbox, but when I run artisan commands I get this error.

How to administrate my instance

Hello,

I just installed a pixelfed instance, but the installation script didn't asked me to define an admin and now, i just can register like an average user. Did i missed something or is this not yet implemented ?

Thanks

ImageMagick module not available with this PHP installation.

I managed somehow to have a couple of pics uploaded. They appear in the feed but not in the preview area.
Just checked the logs and apparently there's an issue with ImageMagick :/

[2020-09-27 21:09:02] production.ERROR: ImageMagick module not available with this PHP installation. {"exception":"[object] (Intervention\\Image\\Exception\\NotSupportedException(code: 0): ImageMagick module not available with this PHP installation. at /var/www/pixelfed/vendor/intervention/image/src/Intervention/Image/Imagick/Driver.php:20)
[stacktrace]
#0 /var/www/pixelfed/vendor/intervention/image/src/Intervention/Image/ImageManager.php(112): Intervention\\Image\\Imagick\\Driver->__construct()
#1 /var/www/pixelfed/vendor/intervention/image/src/Intervention/Image/ImageManager.php(54): Intervention\\Image\\ImageManager->createDriver()
#2 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(261): Intervention\\Image\\ImageManager->make('/var/www/pixelf...')
#3 /var/www/pixelfed/app/Util/Media/Image.php(113): Illuminate\\Support\\Facades\\Facade::__callStatic('make', Array)
#4 /var/www/pixelfed/app/Util/Media/Image.php(93): App\\Util\\Media\\Image->handleImageTransform(Object(App\\Media), false)
#5 /var/www/pixelfed/app/Util/Media/Image.php(81): App\\Util\\Media\\Image->handleResizeImage(Object(App\\Media))
#6 /var/www/pixelfed/app/Jobs/ImageOptimizePipeline/ImageResize.php(54): App\\Util\\Media\\Image->resizeImage(Object(App\\Media))
#7 [internal function]: App\\Jobs\\ImageOptimizePipeline\\ImageResize->handle()
#8 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#9 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#10 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#11 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#12 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#13 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(94): Illuminate\\Container\\Container->call(Array)
#14 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(App\\Jobs\\ImageOptimizePipeline\\ImageResize))
#15 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\ImageOptimizePipeline\\ImageResize))
#16 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#17 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(83): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(App\\Jobs\\ImageOptimizePipeline\\ImageResize), false)
#18 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}(Object(App\\Jobs\\ImageOptimizePipeline\\ImageResize))
#19 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\ImageOptimizePipeline\\ImageResize))
#20 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(85): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(59): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\\Queue\\Jobs\\RedisJob), Object(App\\Jobs\\ImageOptimizePipeline\\ImageResize))
#22 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(88): Illuminate\\Queue\\CallQueuedHandler->call(Object(Illuminate\\Queue\\Jobs\\RedisJob), Array)
#23 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(354): Illuminate\\Queue\\Jobs\\Job->fire()
#24 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(300): Illuminate\\Queue\\Worker->process('redis', Object(Illuminate\\Queue\\Jobs\\RedisJob), Object(Illuminate\\Queue\\WorkerOptions))
#25 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(134): Illuminate\\Queue\\Worker->runJob(Object(Illuminate\\Queue\\Jobs\\RedisJob), 'redis', Object(Illuminate\\Queue\\WorkerOptions))
#26 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(112): Illuminate\\Queue\\Worker->daemon('redis', 'default', Object(Illuminate\\Queue\\WorkerOptions))
#27 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(96): Illuminate\\Queue\\Console\\WorkCommand->runWorker('redis', 'default')
#28 /var/www/pixelfed/vendor/laravel/horizon/src/Console/WorkCommand.php(46): Illuminate\\Queue\\Console\\WorkCommand->handle()
#29 [internal function]: Laravel\\Horizon\\Console\\WorkCommand->handle()
#30 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#31 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#32 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#33 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#34 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#35 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Console/Command.php(202): Illuminate\\Container\\Container->call(Array)
#36 /var/www/pixelfed/vendor/symfony/console/Command/Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#37 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Console/Command.php(189): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#38 /var/www/pixelfed/vendor/symfony/console/Application.php(1011): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#39 /var/www/pixelfed/vendor/symfony/console/Application.php(272): Symfony\\Component\\Console\\Application->doRunCommand(Object(Laravel\\Horizon\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#40 /var/www/pixelfed/vendor/symfony/console/Application.php(148): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#41 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#42 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(131): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#43 /var/www/pixelfed/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#44 {main}
"} 

Horizon has to be run manually

So I'm guessing I am the only one running into this, but horizon does not keep running. I'll start it via ssh and hours later I will need to run it again. Is there a way to keep horizon running? Also the horizon page on my installation does not work, is this a pixelfed issue or pixelfed_ynh issue?

No account size parameter in the .env file

Hello,

I'd like to set the account size to infinite, but as you can see in the copypasta of my actual .env file here below, the parameters MAX_ACCOUNT_SIZE and LIMIT_ACCOUNT_SIZE are not present, and it does nothing if i add it manually.

APP_NAME=pixelfed
APP_ENV=production
APP_KEY=base64:x5grZfdR4T/zNgybcbplPA+G86rqmb7fdYyvJnOwKpM=
APP_DEBUG=false

APP_URL=https://pixelfed.stemy.me
ADMIN_DOMAIN="pixelfed.stemy.me"
APP_DOMAIN="pixelfed.stemy.me"
SESSION_DOMAIN="${APP_DOMAIN}"
SESSION_SECURE_COOKIE=true
TRUST_PROXIES="*"

LOG_CHANNEL=stack

DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=pixelfed
DB_USERNAME=pixelfed
DB_PASSWORD=52BF4ieIutKqcrs35Ml0KCLt

BROADCAST_DRIVER=log
CACHE_DRIVER=redis
SESSION_DRIVER=redis
SESSION_LIFETIME=120
QUEUE_DRIVER=redis

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=localhost
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="Pixelfed"

OPEN_REGISTRATION=true
ENFORCE_EMAIL_VERIFICATION=true
PF_MAX_USERS=1000

MAX_PHOTO_SIZE=15000
MAX_CAPTION_LENGTH=150
MAX_ALBUM_LENGTH=4

ACTIVITY_PUB=true
REMOTE_FOLLOW=true
ACTIVITYPUB_INBOX=true
ACTIVITYPUB_SHAREDINBOX=true
# Set these "true" to enable federation.
# You might need to also run:
#   php artisan cache:clear
#   php artisan optimize:clear
#   php artisan optimize

PF_COSTAR_ENABLED=true
CS_BLOCKED_DOMAINS='gab.com,gab.ai,develop.gab.com'
CS_CW_DOMAINS='switter.at'
CS_UNLISTED_DOMAINS='example.org,example.net,example.com'

## Optional 
#HORIZON_DARKMODE=false  # Horizon theme darkmode
#HORIZON_EMBED=false  # Single Docker Container mode 

ADMIN_ENV_EDITOR=true

Consider adding the app to the community list

Hello !

This is a friendly notice from the Yunohost Apps team : our tool noticed that your app is pretty interesting but is not listed in the community list !

Please consider making a pull request to add it, such that people can easily learn about its existence from this page. If you declare your app as working, you might also benefit from automatic tests on the app C.I..

It is relevant to add your app to the list even if it's not working or unmaintained since it might still help people who might want to continue packaging the app. Just be sure to correctly flag it as notworking/unmaintained.

Checkout the README to learn how to add your app to the list (should take only a few minutes).

Datalove <3,

The YunoHost team

PHP Fatal error: Out of memory

I'm on a VPS with 2 GB of RAM. I had those errors while trying to upgrade pixelfed from de 0.10.9-ynh1 to 0.10.9-ynh2.

PHP Fatal error: Out of memory (allocated 1191718912) (tried to allocate 33554432 bytes) in phar:///var/www/pixelfed/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

Here is the complete log of the operation : https://paste.yunohost.org/raw/etapunanat
I already had this kind of error before but it was resolved by creating a swap file. But now I have the swap file (2GB) and it seems ok :

swapon --show
NAME      TYPE SIZE USED PRIO
/swapfile file   2G   0B   -1

free -h
              total        used        free      shared  buff/cache   available
Mem:           1.9G        620M        642M         65M        693M        1.1G
Swap:          2.0G          0B        2.0G

Changing Where Images Are Stored

This is a request to change where photos are stored to the /home folder. Peertube does this. I think it works great for those who set up pixelfed after they have already deployed yunohost for other purposes. The issue they could run into is the /var folder not having enough space, because by default debian makes home the biggest directory. For our server there is 3.6TB in /home and 95GB in /var lol. I didn't realize this until I started getting disk space notifications.

Unnecessary Script

I Just installed and testing how it is and ready for use or not I installed Testing branch so i can get faster updates.

I just checked on gtmetrix and seeing that it load Yunohost script which dont even needed here are script which are being loaded

although they return 404 Error but it should be removed

https://nextme.tk/ynh_portal.js
https://nextme.tk/ynh_overlay.css
https://nextme.tk/ynhtheme/custom_portal.js
https://nextme.tk/ynhtheme/custom_overlay.css
https://nextme.tk/ynh_overlay.css
https://nextme.tk/ynhtheme/custom_portal.js
https://nextme.tk/ynhtheme/custom_overlay.css

Please consider using ynh_install_php

Hi

We noticed that you use an another version of php than the current version of stretch. Installing another version of php can (will probably) breaks YunoHost for other apps.
Please consider using the experimental helper ynh_install_php to handle securely other version of php.

If you encounter any problem using this helper, please open an issue on the repo.

Could not open input file: artisan

Hello,

I did some modifications in the config file, but i can't reload the cache, it says «Could not open input file: artisan»

Thanks.

Account verification doesn't work

Hello,

I created an account, but the link of the verification mail gives me a blank page. Literally, the page's size is 0 bytes. And my account is still unverified.

Is my instance really up to date ?

Hello,

Both my instance and pixelfed.social are up to date at the same version, but the second one seems to have more functionalities than the first. Why are they not exactly the same ?

Photo Upload Error

Just an idea. Is it possible the errors when uploading images are from the fact that there is not a php.ini file that matches the upload limit? When I crop the photo's it works, but I am having issues guessing what exactly is the issue.

Change php upload limit + explain it in the readme

See : #118 (comment)

PHP default upload limit is too low¹ for Pixelfed default value. Also users could change Pixelfed value without any visible effect, because of PHP limit.

¹ it seems to be 2MB by default, which is limited for images and well too low for videos…

What needs to be done:

  • Add new php upload limit (with a file located in Pixelfed folder ?)
  • Add new nginx upload limit
  • Explain the readme how to change that value (note: that one is an easier task, any contribution, even if not complete, would be appreciated ;-) :-) )

OSError: [Errno 11] Resource temporarily unavailable

Bonjour

je viens de tenter une nouvelle mise à jour et j'ai le message suivant :

Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/dist-packages/moulinette/utils/stream.py", line 47, i n run
data += os.read(self._fd, 50)
OSError: [Errno 11] Resource temporarily unavailable

Can't upload most pictures

Hi dear YH contributors,
I am super pleased to be able to play with Pixelfed thanks to you!

I am not sure this issue should be here or on Pixelfed's so in doubt I start here. Hope you don't mind ^^

Describe the bug

  • When I try to upload a pic, it looks like it's uploading, it goes to 100% and then I get an error message.

  • In browser console all I get is a 500 error, no more hint.

  • Same error on Chromium, Safari, Firefox (Mac 10.14.15)

  • Same error when trying on Firefox mobile (e OS Android)

  • Note that somehow one pic upload on desktop managed to be published properly but 5 others I tested won't go through.

  • I also edited .env conf file in order to switch debug_app by true but I can't see more info in browser console as a result. Maybe it affects log on server's side but I couldn't find how to have a look Pixelfed log. :(

Versions

  • Hardware: Debian 10 - Hetzner VPS - 2vCPU / 4GB ram / 40GB volume — ssh access
  • YunoHost version: 4.0.8
  • Using Pixelfed master branch - Installed through GUI. Fresh YH install, nothing else on it.

Unit pixelfed-horizon.service not found.

Using latest master, I found out that the pixelfed-horizon service doesn't exist.
Failed to start pixelfed-horizon.service: Unit pixelfed-horizon.service not found.

Nginx (error 502)

Hello,

For the first time, with your last upgrade, the installation arrives at the end. But now I have an error 502.

On the frontpage of the package you writed "I assume only the nginx file needs improvments".
Ok. But what can I do to repair that 😅

Thank you for your work !

# of Users Bug

Just a note that currently the number of users on the dashboard reflects the highest UID and not the actual number of users. This usually wouldn't matter, but I had someone type their email wrong in signing up for my instance. I deleted the user using artisan, but the User count did not recognize the change.

Labs (experimental features)

I noticed a few of the experimental features that are not showing up like profile suggestions. I have a couple of other bugs I was going to put on the main git, but wanted to see if this was one of them.

Impossible de supprimer un compte

Hello,

Quand j'essaye de supprimer un utilisateur via le panneau d'administration, ça me donne un «page not found» quand je clique sur «Delete account».

Erreur 404

yunohost: 
  repo: stable
  version: 3.0.0.1
yunohost-admin: 
  repo: stable
  version: 3.0.0
moulinette: 
  repo: stable
  version: 3.0.0
ssowat: 
  repo: stable
  version: 3.0.0
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.5 (stretch)
Release:	9.5
Codename:	stretch

Bonjour,

je installé pixelfed_ynh sur une Yunohost fraîchement migré en Stretch, tout c'est bien passé mais quand je clique sur Login ou Register je tombe sur une erreur 404.

Avez-vous besoin d'autre info ?

The page has expired due to inactivity. Please refresh and try again.

Bonjour

1 - Je viens d'installer PixelFed et quand je veux créer un compte, je tombe sur la page :
The page has expired due to inactivity. Please refresh and try again. Impossible donc de creer un compte.

2 - Dans le fichier de conf de nginx, il faut ajouter la ligne : try_files $uri $uri/ /index.php?$args; afin d'éviter une erreur 404

Si vous avez une idée
Merci de votre aide

Hello

1 - I just installed PixelFed
The page has expired due to inactivity. Please refresh and try again. Impossible to create an account.

2 - In the Nginx configuration file, add the line: try_files $ uri $ uri / /index.php?$args; to avoid a 404 error.

If you have an idea
Thank you for your help

Moment UI no title if # used

Using MomentUI (not the default on, MetroUI), activated in the Labs settings, posting an image with # in the description often (always ?) creates the following issue: no text is displayed, no title or description. This only apply to (my ?) Pixelfed instance.

Posting this first to know if other Yunohost users encounters that issue, or if it's more Pixelfed related.

Add fail2ban protection against brute force

As this app expose a public login form, it should be protected against password brute force with fail2ban.

The account is not yet linked to the SSO / yunohost account, so it might not be a big security issue for the rest of the instance… yet it would be better to add that protection.

PS: I write that here as a reminder, I guess you have other priorities right now ;)
(and maybe someone will use that issue to get involved with a quick contribution :)

Add some Pixelfed admin options as app actions / in Yunohost admin UI

Right now registration are open by default, and admins needs to go to /var/www/pixelfed and edit .env file to close it.
(as referenced here: https://docs.pixelfed.org/master/configuration.html#pixelfed-configuration)

As some people would like to close the registration, it would be more accessible to expose that action thought the command line and the admin interface.
Maybe we could use the app actions and app config panels features implemented in Yunohost 3.1 ? (https://forum.yunohost.org/t/yunohost-3-1-minor-stable-release-version-stable-mineure/5445)

Should we also include some extra settings, for instance account size limit, that kind of things ?
I suppose it will be added in Pixelfed admin interface in the future, so I'm not sure it's worth doing it right now (but we can add some instructions in the readme :).

What do you think ?

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.