Friendica News friendica (via ActivityPub)

Friendica 2021.04 Released

With a slight delay, we are happy to announce the availability of the new stable version of the Friendica communications server: Friendica Siberian Iris 2021.04.

Photo of a Siberian Iris by Kristine TannePhoto of a Siberian Iris by Kristine Tanne

This is mostly a bug fixing release, stabilizing the new features we introduced over the Red Hot Poker cycle, but also finishing some long time restructuring work on the database structure, which results in a greatly improved performance of Friendica. This release bundles 196 pull requests fixing 53 filed issues. For a detailed overview of the changes, please have a look at the CHANGELOG, some of the highlights
  • The reworking of how items are stored in the database was finished, which results in a great improvement of Friendicas performance. Please note that the needed upgrade might take hours depending of your database size.
  • Admins can now block tags from the trending tag widget.
  • We removed the Flash based addons from the addon repository.

And a heads up for developers, we moved some endpoints in the API to normalize the endpoints.

How to Update

Updating from old Friendica versions

If you are updating from an older version than the 2020.03 release, please first update your Friendica instance to that version.

In that version we introduced views to the database and some node admins reported that they had to adjust their MariaDB configuration (table_definition_cache). Also setting pdo_emulate_prepares to true in the Friendica configuration might be necessary.

Pre-Update Procedures

Ensure that the last backup of your Friendica installation was done recently. Despite the long duration of the database upgrade we had no reports of unaddressed problems during the RC phase.

Please make sure to use Barracuda as MySQL DB file format for your Friendica database. Change your database settings before you proceed with the Friendica update. This change will take some time depending on the size of your database.

Using Git

Important: We removed the master branch and are using the stable branch instead.

Updating from the git repositories should only involve a pull from the Friendica core repository and addons repository, regardless of the branch (stable or develop) you are using. Remember to update the dependencies with composer as well.
cd friendica
git fetch
git checkout stable
git pull
bin/composer.phar install --no-dev
cd addon
git fetch
git checkout stable
git pull
Pulling in the dependencies with composer will show some deprecation warning, we will be working on that in the upcoming release.

Using the Archive Files

If you had downloaded the source files in an archive file (tar.gz) please download the current version of the archive (friendica-full-2021.04.tar.gz and friendica-addons 2021.04.tar.gz) and unpack it on your local computer.

As many files got deleted or moved around, please upload the unpacked files to a new directory on your server (say friendica_new) and copy over your existing configuration (config/local.config.php and config/addon.config.php) and .htaccess files. Afterwards rename your current Friendica directory (e.g. friendica) to friendica_old and friendica_new to friendica.

The files of the dependencies are included in the archive (make sure you are using the friendica-full-2021.01 archive), so you don’t have to worry about them.

Post Update Tasks

The database update should be applied automatically, but sometimes it gets stuck. If you encounter this, please initiate the DB update manually from the command line by running the script
bin/console dbstructure update
from the base of your Friendica installation. If the output contains any error message, please let us know using the channels mentioned below.

Please note, that some of the changes to the database structure will take some time to be applied, depending on the size of your Friendica database.

Known Issues

Please note, that one of the dependencies of Friendica is currently incompatible with PHP 7.0. If you are still running that version of PHP, please have a look at this forum thread for a workaround.

How to Contribute

If you want to contribute to the project, you don’t need to have coding experience. There are a number of tasks listed in the issue tracker with the label “Junior Jobs” we think are good for new contributors. But you are by no means limited to these – if you find a solution to a problem (even a new one) please make a pull request at github or let us know in the development forum.

Contribution to Friendica is also not limited to coding. Any contribution to the documentation, the translation or advertisement materials is welcome or reporting a problem. You don’t need to deal with Git(Hub) or Transifex if you don’t like to. Just get in touch with us and we will get the materials to the appropriate places.

Thanks everyone who helped making this release possible and have fun!
Marco R. friendica (via ActivityPub)
Does that mean the old API endpoints don't work anymore and the new APIs have other return values?
Michael Vogel friendica (via ActivityPub)
I don't know which API endpoints had been touched. But most should still work.
Tobias friendica (via ActivityPub)
@Marco R. I think so yes, see the referenced github comment, directly above the commits are listed that "moved" some of the endpoints.
Hypolite Petovan friendica (via ActivityPub)
Absolutely. Additionally these API endpoints are specifically used by the Friendica frontend and aren’t documented to be used by third-party clients.
utzer friendica (via ActivityPub)
Well done, thanks.

This is Friendica, version 2021.04 that is running at the web location https://social.yl.ms. The database version is 1413/1413, the post update version is 1400/1400.

This is Friendica, version 2021.04 that is running at the web location https://friendica.utzer.de. The database version is 1413/1413, the post update version is 1400/1400.
This entry was edited (3 months ago)
grin mastodon (via ActivityPub)
Please make sure Please make sure to use Barracuda as MySQL DB file format for your Friendica database. Change your database settings before you proceed with the Friendica update. This change will take some time depending on the size of your database.to use Barracuda as MySQL DB file format for your Friendica database. Change your database settings before you proceed with the Friendica update. This change will take some time depending on the size of your database.

There seems to be no way to know the format under mariadb (10.3.27), nor any way to do anything about it.

[UPDATE] Apart from that the upgrade went flawlessly.
This entry was edited (3 months ago)
Michael Vogel friendica (via ActivityPub)
You can perform the command bin/console dbstructure toinnodb to convert the tables to "Barracuda" if they are still in an older format.
utzer friendica (via ActivityPub)
@Michael Vogel should one check before or just run the command and see what happens?

Also a year ago there was some discussion here: https://forum.friendi.ca/display/3516d96d-13b224a97607a7a8-843f562d
SoNak friendica (via ActivityPub)
I had the same question.
The answer of the sql-command “show global variables“ in phpMyAdmin was a list of settings that also contained the database-file-system. In my case named "Barracuda".
Steffen K9 🐰 friendica (via ActivityPub)
Whoohoo! 🎉 Release. :-)

PS: For reasons unknown I had to tweet the splendid news manually again.
Michael Vogel friendica (via ActivityPub)
Are we directly going into the RC phase with 2021.06? Seems like the development time is slightly short this time :-D
Steffen K9 🐰 friendica (via ActivityPub)
@Michael Vogel Haha. That's exactly what I was thinking. :-D
Hypolite Petovan friendica (via ActivityPub)
I'm good with that! 😄
Tobias friendica (via ActivityPub)
@Michael Vogel Well there is a week or so to add new stuff for the next RC phase ;-)
Steffen K9 🐰 friendica (via ActivityPub)
Umm. I cannot 'like' anything. I mean, I switched from latest RC to stable. This should be the same code. But...

Uncaught ReferenceError: doLikeAction is not defined
    onclick https://libranet.de/display/39bbe52a9050dc894dcfd6b85d7178cf1a3f7cad:1

Firefox 88. Cleared the cache. Didn't help. :thinking face
utzer friendica (via ActivityPub)
@Steffen K9 🐰 my like shows up here for me, how about on your end?
Steffen K9 🐰 friendica (via ActivityPub)
@utzer It's not about showing likes. It's about me being able to click on 'like'. The weird thing is the problem only occurs on libranet.de - not on other nodes (all on stable now). Must be some local issue.
utzer friendica (via ActivityPub)
@Steffen K9 🐰 OK, from my reply you also know I can click on it. :-P
Steffen K9 🐰 friendica (via ActivityPub)
@utzer Sorry.I'm unable to like that. ;-)
Tobias friendica (via ActivityPub)
@Steffen K9 🐰 I see your likes here, so they are there.
Steffen K9 🐰 friendica (via ActivityPub)
@Tobias Depends on which likes. I liked a lot ;-) - then I switched to stable - now I have the problem.
Steffen K9 🐰 friendica (via ActivityPub)
@Tobias For example I tried to like your comment "I see your likes...". No luck. Doesn't work. #luftfeuchtigkeit
Hans Wolters reshared this.
Tobias friendica (via ActivityPub)
@Steffen K9 🐰 I see...
Steffen K9 🐰 friendica (via ActivityPub)
@Tobias Ok. Switched to 'vier' theme. Liking works.
Steffen K9 🐰 friendica (via ActivityPub)
@Tobias Switched back to 'frio'. Cannot like anything. :-/
Steffen K9 🐰 friendica (via ActivityPub)
The native 'Reshare' button also doesn't work. Same error message. I have no clue.
Steffen K9 🐰 friendica (via ActivityPub)
Oh! Something is wrong with the buttons. On mobile i see: like, comment, share, quote share. But it should be: like, comment, share (which opens the selector for share and quote share).
When I check on venera.social, the buttons are right.
Steffen K9 🐰 friendica (via ActivityPub)
This is wrong...

Steffen K9 🐰 friendica (via ActivityPub)
Ok. Issue solved. I deleted all files in ...view//smarty3/compiled/. Now the buttons are correct and I can like again.
Stefan H. friendica (via ActivityPub)
Thanks for the update. Did run very smooth from the previous version.
Steffen K9 🐰 friendica (via ActivityPub)
@Hans Wolters Yes. I use strict privacy settings in FF. But I tried to switch to default and it doesn't work either. Also, on two other nodes (same browser, same server, same settings) it works flawlessly.
Adam friendica (via ActivityPub)
Thank you all for the release! iSurf Social has switched over to it.
@Friendica News Is develop now stabilizing? Is it safe to upgrade? my instance currently runs relatively smooth (I cannot upload new pictures for a strange reason).
Tobias friendica (via ActivityPub)
@Roland Häder I don't think that the PRs to development so far have destabilized the version compared to the stable release.
JB Carroll reshared this.
@Tobias Done the upgrade. So far no issues. :-)