New attempt at adding a relay
This is our thrid attempt at adding a relay to our server.
We used the basic add relay command:
bin/console relay add https://relay.example.com/actor
Here is the log that seems to pertain to one of the relays:
2024-04-29T19:53:35Z console [INFO]: Sending activity Follow to https://relay.mycrowd.ca/actor for user 0 [] - {"file":"Transmitter.php","line":2247,"function":"sendActivity","request-id":"662ffabf7a402","stack":"Transmitter::sendActivity (119), Transmitter::sendRelayFollow (113), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"47a33e","process_id":110488}
2024-04-29T19:53:35Z console [WARNING]: Path is not writable {"directory":"/tmp/social.joespace.ca","user":"www-data"} - {"file":"System.php","line":591,"function":"isDirectoryUsable","request-id":"662ffabf7a402","stack":"System::isDirectoryUsable (625), System::getTempPath (129), HttpClient::createClient (150), Dice::Dice\\{closure} (96), Dice::create (527), DI::httpClient (304), HTTPSignature::post (325), HTTPSignature::transmit (2250), Transmitter::sendActivity (119), Transmitter::sendRelayFollow (113), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"47a33e","process_id":110488}
2024-04-29T19:53:35Z console [INFO]: Sending activity Follow to https://relay.mycrowd.ca/actor for user 0 [] - {"file":"Transmitter.php","line":2247,"function":"sendActivity","request-id":"662ffabf7a402","stack":"Transmitter::sendActivity (119), Transmitter::sendRelayFollow (113), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"47a33e","process_id":110488}
Is the warning pertaining to the relay addition?
Here is another one(long):
2024-04-29T19:53:35Z console [DEBUG]: http request config. {"url":"https://relay.mycrowd.ca/inbox","method":"post","options":{"headers":{"User-Agent":"Friendica 'Yellow Archangel' 2023.12-1542; https://social.joespace.ca","Date":"Mon, 29 Apr 2024 19:53:35 GMT","Content-Length":1927,"Digest":"SHA-256=2CLbYw3a5+Z6baNp4k+1F7P6SGammIMVCqWQcZr1wpc=","Host":"relay.mycrowd.ca","Signature":"keyId=\"https://192.168.0.45/friendica#main-key\",algorithm=\"rsa-sha256\",headers=\"(request-target) date content-length digest host\",signature=\"nUmg1RwSaQB5Q01IeV1ZXiKdwKV38rQuVSLxjvxtjXhijqbyRe2NK4Vl2mqoBEgrSgQAkcBU1OnUdWwiwVcA8rrnjgyHsPtFIWpepCD2GxAjesf/MEgUR1PjkVSbWYXV5Y/SPMaFbGPUaplyMyhEUE5iXhMMVXcyYTB2jpvqmXnyQ2xlPmCAhNUtgHZAi2rRW9qNF/tqyaO3lafwlKH4SQkHGDa7OgnZcBvXfDnK3vcIXToqyxLa5EyK/s++PWNOfsaaoyQTraL4EIVZIB6sadiytRHpMIYxBvUbBQQX0nq7xREMlkVRzTFaCXkG9x20f78hgXUO0R4uarnjPMBsw+OwFN8EK9mTbCwE7AqdL5279soaHS3/yBrMKYTl5Qeu8yXJL/SblcOg+6eTotkfIQuXorn1O/eVLoz6CdzAiVLv0G3XelZwam4SopCPgWfxxnv5fGc3BH8J58l4epvwDFtD4NcVV3Rb5MJ0dpIH86aZRl04UgGQzWZp2522xopCVoHuE6jm6UNVy7m7t6jiDguY6KpXGo0ZhmUfkn83ULKtLWdAfIKTXSE12jbVy6dY4lrKqb8w4kLAkjeQ3FGD+P30HVv2MXantGwJdVN/TtsJtgZzZMaaLXX1+wZRFVHndDARdZiuwXkZC+IisjTtWp942fZ6DFOiSwLTgzDszos=\"","Content-Type":"application/activity+json"},"timeout":60,"body":"{\"@context\":[\"https://www.w3.org/ns/activitystreams\",\"https://w3id.org/security/v1\",{\"vcard\":\"http://www.w3.org/2006/vcard/ns#\",\"dfrn\":\"http://purl.org/macgirvin/dfrn/1.0/\",\"diaspora\":\"https://diasporafoundation.org/ns/\",\"litepub\":\"http://litepub.social/ns#\",\"toot\":\"http://joinmastodon.org/ns#\",\"featured\":{\"@id\":\"toot:featured\",\"@type\":\"@id\"},\"schema\":\"http://schema.org#\",\"manuallyApprovesFollowers\":\"as:manuallyApprovesFollowers\",\"sensitive\":\"as:sensitive\",\"Hashtag\":\"as:Hashtag\",\"quoteUrl\":\"as:quoteUrl\",\"conversation\":\"ostatus:conversation\",\"directMessage\":\"litepub:directMessage\",\"discoverable\":\"toot:discoverable\",\"PropertyValue\":\"schema:PropertyValue\",\"value\":\"schema:value\"}],\"id\":\"https://social.joespace.ca/activity/fee0a0f2-4e22-5fd1-438a-c016c9a31f0b\",\"type\":\"Follow\",\"actor\":\"https://192.168.0.45/friendica\",\"object\":\"https://relay.mycrowd.ca/actor\",\"instrument\":{\"type\":\"Service\",\"name\":\"Friendica 'Yellow Archangel' 2023.12-1542\",\"url\":\"https://social.joespace.ca\"},\"to\":[\"https://relay.mycrowd.ca/actor\"],\"signature\":{\"type\":\"RsaSignature2017\",\"nonce\":\"9a63be389f75d7343220a14c9e89de6cd8b42450d7d90287ff1b380d5405e671\",\"creator\":\"https://192.168.0.45/friendica#main-key\",\"created\":\"2024-04-29T19:53:35Z\",\"signatureValue\":\"DftipgH/3ZlBXwBKGsxinF0mVhx91Mfi+FAqBCZ/oWDb8dUmLGcJs348CaYAVHfZNIm8CUCtWsdr6F38gCguVSkPFQTZ4nAED64YpXi0eTwGw6gzFNDJW8MS4x7QUXvxmTq9LJffqsYACf7wUEX8bTFPDDNPnUdr0dFeuYK9h4YKbwsaen7jzHArYKfrpjb6bkKe3MjjqyjV7+rD92W6z4tOvlNRFxaZ31gzqYnHzMBtXRo2EejCFmEkbpky74upDGV0ChMmQ4iiaTYfzEd7gdYL7K770PgbBV6tIOmoFn/njfsNAs08p0isf/0mDVEVvFfvg1m8qKYnvcbjIN+eFKMD3juxiaUGxtz+wZIN/ncD0vQ02R6tVKMhn1WJChHI8cBHRepAA6m2RoxahEz7sQXBmAew3aodXKQzJWKSHYppnMk0XzWOSM86wr+j5+5KVoVzOo5sQw2d09Je3qpPuT+CesC3tItCRjBVu5tQ9eiGzuIl4qfIbbI1621rcEIfvp/WC4YaIMktvf2GnlfLkHOZwcyM5s9AL1RUuYV/0CnI5h/1oar8BLhyZR8ESY5C7BrzlQBVVEPml1StI52m6gcj+ntZzvzWrZ8xZxZMU5ABiq3ctk9rEPAj5dK/zKfxPv1/slidLdV9nJp0zXR5iJpm/F86RRwMPlu4lpvK3mE=\"}}","on_headers":{},"sink":"/tmp/http-FW1K6z"}} - {"file":"HttpClient.php","line":170,"function":"request","request-id":"662ffabf7a402","stack":"HttpClient::request (230), HttpClient::post (304), HTTPSignature::post (325), HTTPSignature::transmit (2250), Transmitter::sendActivity (119), Transmitter::sendRelayFollow (113), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"47a33e","process_id":110488}
Do these say anything?
Thanks for any clues.
Asa well, if it does work, how do we know? Is there a successful relay add message, or can we see the relays listed in the admin page?
Thanks
relay adding - still not working,
I am back after trying things again. I got help from some one who knows more than me in LInux. But still now sure.
He ran the command: bin/console relay add https://relay.infosec.exchange/actor (name of relay)
NOthing seemed to add
When it works, wha should I see?
Here is the log file:
16:05:37 social sshd[145116]: Accepted password for joseph from 111.88.18.238 port 30371 ssh2
Mar 22 16:05:38 social sshd[145116]: pam_unix(sshd:session): session opened for user joseph(uid=1000) by (uid=0)
Mar 22 16:05:38 social systemd-logind[1085]: New session 355 of user joseph.
Mar 22 16:07:56 social sudo: joseph : TTY=pts/1 ; PWD=/var/www/html ; USER=root ; COMMAND=bin/console relay add https://relay.mycrowd.ca/actor
Mar 22 16:07:56 social sudo: pam_unix(sudo:session): session opened for user root(uid=0) by joseph(uid=1000)
Mar 22 16:08:08 social sudo: pam_unix(sudo:session): session closed for user root
Mar 22 16:08:58 social sudo: joseph : TTY=pts/1 ; PWD=/var/www/html ; USER=root ; COMMAND=bin/console relay add https://relay.infosec.exchange/actor
Mar 22 16:08:58 social sudo: pam_unix(sudo:session): session opened for user root(uid=0) by joseph(uid=1000)
Mar 22 16:09:01 social CRON[146442]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Mar 22 16:09:01 social CRON[146442]: pam_unix(cron:session): session closed for user root
Mar 22 16:09:09 social sudo: pam_unix(sudo:session): session closed for user root
Mar 22 16:12:28 social sshd[147754]: Accepted password for joseph from 111.88.18.238 port 30017 ssh2
Mar 22 16:12:28 social sshd[147754]: pam_unix(sshd:session): session opened for user joseph(uid=1000) by (uid=0)
Mar 22 16:12:28 social systemd-logind[1085]: New session 357 of user joseph.
Mar 22 16:12:33 social sshd[147754]: pam_unix(sshd:session): session closed for user joseph
Mar 22 16:12:33 social systemd-logind[1085]: Session 357 logged out. Waiting for processes to exit.
Mar 22 16:12:33 social systemd-logind[1085]: Removed session 357.
Mar 22 16:12:40 social sshd[147882]: Accepted password for joseph from 111.88.18.238 port 30017 ssh2
Mar 22 16:12:40 social sshd[147882]: pam_unix(sshd:session): session opened for user joseph(uid=1000) by (uid=0)
Mar 22 16:12:40 social systemd-logind[1085]: New session 358 of user joseph.
Mar 22 16:12:47 social sshd[147882]: pam_unix(sshd:session): session closed for user joseph
Mar 22 16:12:47 social systemd-logind[1085]: Session 358 logged out. Waiting for processes to exit.
Mar 22 16:12:47 social systemd-logind[1085]: Removed session 358.
Mar 22 16:17:01 social CRON[149557]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Mar 22 16:17:01 social CRON[149557]: pam_unix(cron:session): session closed for user root
Mar 22 16:20:01 social CRON[150627]: pam_unix(cron:session): session opened for user smmsp(uid=118) by (uid=0)
Mar 22 16:20:02 social CRON[150627]: pam_unix(cron:session): session closed for user smmsp
Mar 22 16:30:25 social sudo: joseph : TTY=pts/1 ; PWD=/var/www/html ; USER=root ; COMMAND=/usr/bin/nano /var/www/html/config/local-sample.config.php
Mar 22 16:30:25 social sudo: pam_unix(sudo:session): session opened for user root(uid=0) by joseph(uid=1000)
Mar 22 16:35:35 social sudo: pam_unix(sudo:session): session closed for user root
Mar 22 16:36:24 social sudo: joseph : TTY=pts/1 ; PWD=/home/joseph/Friendica ; USER=root ; COMMAND=bin/console relay add https://relay.infosec.exchange/actor
Mar 22 16:36:24 social sudo: pam_unix(sudo:session): session opened for user root(uid=0) by joseph(uid=1000)
Mar 22 16:36:24 social sudo: pam_unix(sudo:session): session closed for user root
Mar 22 16:37:01 social sudo: joseph : TTY=pts/1 ; PWD=/var/www/html ; USER=root ; COMMAND=bin/console relay add https://relay.infosec.exchange/actor
Mar 22 16:37:01 social sudo: pam_unix(sudo:session): session opened for user root(uid=0) by joseph(uid=1000)
Mar 22 16:37:12 social sudo: pam_unix(sudo:session): session closed for user root
Mar 22 16:39:01 social CRON[157591]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Mar 22 16:39:01 social CRON[157591]: pam_unix(cron:session): session closed for user root
Mar 22 16:40:01 social CRON[158029]: pam_unix(cron:session): session opened for user smmsp(uid=118) by (uid=0)
Mar 22 16:40:01 social CRON[158029]: pam_unix(cron:session): session closed for user smmsp
Mar 22 16:43:19 social sudo: joseph : TTY=pts/1 ; PWD=/var/www/html ; USER=root ; COMMAND=bin/console relay add https://relay.mycrowd.ca/actor
Mar 22 16:43:20 social sudo: pam_unix(sudo:session): session opened for user root(uid=0) by joseph(uid=1000)
Mar 22 16:43:30 social sudo: pam_unix(sudo:session): session closed for user root
But, then I just tried the same command just now, I get an error:
joseph@social:~/Friendica$ bin/console relay add https://relay.infosec.exchange/actor
PHP Warning: require(/home/joseph/Friendica/vendor/autoload.php): Failed to open stream: No such file or directory in /home/joseph/Friendica/bin/console.php on line 33
PHP Fatal error: Uncaught Error: Failed opening required '/home/joseph/Friendica/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/joseph/Friendica/bin/console.php:33
Stack trace:
#0 {main}
thrown in /home/joseph/Friendica/bin/console.php on line 33
I ran the command not as root. THis is what I was told in my previous discussion.
Thanks for any ideas.
Joseph
Theme - not changing
I have two theme installed in Freindica: Vier and Frio
It was set as frio, but Vier is actually being displayed.
I changed it to vier, it stayed as vier. I changed it back to frio, and it stays as vier.
What do I need get the theme to actually display?
Thanks
I am using 2023-12 friendica. It was only installed a month ago. I am slowing trying to get things set up.
I do not know about lookining the database.
I'd like to see the article, and maybe a solution?
THanks
After that I usually remove it again.
Adminer - Datenbank-Verwaltung in einer einzigen PHP-Datei
Adminer (früherer Name phpMinAdmin) ist ein Tool zur vollständigen Verwaltung von Datenbanken. Adminer ist komplett in PHP geschrieben und besteht, im Gegensatz zu phpMyAdmin, aus einer einzigen Datei, die auf dem Server abgelegt wird.www.adminer.org
Thanks for this But, I am not overly comfortable at looking at the database.
Pointer on how to use the software, and where to look?
Any comments on if this is a bug, or needs updating? Or, is it just me? :)
Thanks
Log in page image?
I was wondering how I can change the image that appears on the log in page?
I browsed through the admin a bit, and I was unable to find where I can upload an image to use.
AS for designing the page, is there a page builder, or if this a page that we need to use html, or an external page design software?
Thanks
@joseph you define the image for the landing page at (in this case for the Frio theme). social.joespace.ca/admin/themes/frio
if you want to edit the landing page even further look here -> https://wiki.friendi.ca/docs/initicalconfiguration?s[]=home&s[]=html#customize_the_login_page
This is Joseph. I finally got my new friendica node up and running. Not for the faint of hear
It is running, as you can see my message.
While I know that I have a few things to set up, I was reading over the doc's and it talked about adding a relay. This way, get more traffic and will see posts outside of my ultra tiny circle of contacts(myself at the moment, and friendica admin and support forums!)
They say go to the command line and enter the add relay command with the relay domain question:
bin/console relay add https://relay.example.com/actor
But, the command line spits out the error:
-bash: bin/console: No such file or directory
What might I have missed during my install so that the bin/conssole command is not availabe?
How can I fix it?
Thanks for any help!
Joseph
Hi @Fly Boy
I've not yet resolved my issue, but I was not able to sit down and play with friendica for a few days.
I went in and saw that my bin folder is:
4 drwxrwxr-x 3 www-data www-data 4096 Feb 20 13:39 bin
I went inside the bin flder and saw:
4 drwxrwxr-x 3 www-data www-data 4096 Feb 20 13:39 .
4 drwxrwxr-x 21 www-data www-data 4096 Feb 23 07:39 ..
4 -rwxrwxr-x 1 www-data www-data 3482 Feb 11 01:30 auth_ejabberd.php
1948 -rwxrwxr-x 1 www-data www-data 1993462 Feb 11 01:30 composer.phar
4 -rwxrwxr-x 1 www-data www-data 274 Feb 11 01:30 console
4 -rwxrwxr-x 1 www-data www-data 125 Feb 11 01:30 console.bat
4 -rwxrwxr-x 1 www-data www-data 1772 Feb 11 01:30 console.php
8 -rwxrwxr-x 1 www-data www-data 7059 Feb 11 01:30 daemon.php
4 drwxrwxr-x 3 www-data www-data 4096 Feb 11 01:30 dev
4 -rw-rw-r-- 1 www-data www-data 363 Feb 11 01:30 .htaccess
4 -rwxrwxr-x 1 www-data www-data 3592 Feb 11 01:30 run_xgettext.sh
4 -rw-rw-r-- 1 www-data www-data 1404 Feb 11 01:30 testargs.php
4 -rwxrwxr-x 1 www-data www-data 1964 Feb 11 01:30 wait-for-connection
4 -rwxrwxr-x 1 www-data www-data 2852 Feb 11 01:30 worker.php
all my files and folder all have the owners of www-data www-data
YOu can see the permissions are all 775 withthe exceotion of:
.htaccess
testargs.php
You asked me to run that command to change to www-data, but my foled and folders already have that.
What else might I look for to resolve the issue about what I can no successfully at the relays to my server?
Thanks
Bumping the thread as I'm going through a similar issue. Setting my logger to debug mode when attempting to follow https://relay.toot.io/actor gives me the following:
Click to open/close
2024-03-13T14:57:31Z console [DEBUG]: Contact found {"url":"https://relay.toot.io/actor","uid":0,"update":null,"cid":697045} - {"file":"Contact.php","line":1330,"function":"getIdForURL","request-id":"65f1bedbc28d4","stack":"Contact::getIdForURL (333), Contact::getByURL (113), Transmitter::sendRelayFollow (118), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"5d54b5","process_id":872113}
2024-03-13T14:57:31Z console [INFO]: Sending activity Follow to https://relay.toot.io/actor for user 0 [] - {"file":"Transmitter.php","line":2236,"function":"sendActivity","request-id":"65f1bedbc28d4","stack":"Transmitter::sendActivity (119), Transmitter::sendRelayFollow (118), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"5d54b5","process_id":872113}
2024-03-13T14:57:31Z console [DEBUG]: Request start. {"url":"https://relay.toot.io/inbox","method":"post"} - {"file":"HttpClient.php","line":69,"function":"request","request-id":"65f1bedbc28d4","stack":"HttpClient::request (230), HttpClient::post (304), HTTPSignature::post (325), HTTPSignature::transmit (2239), Transmitter::sendActivity (119), Transmitter::sendRelayFollow (118), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"5d54b5","process_id":872113}
2024-03-13T14:57:31Z console [DEBUG]: http request config. {"url":"https://relay.toot.io/inbox","method":"post","options":{"headers":{"User-Agent":"Friendica 'Yellow Archangel' 2024.03-rc-1556; https://hub.azkware.net","Date":"Wed, 13 Mar 2024 14:57:31 GMT","Content-Length":1956,"Digest":"SHA-256=[REDACTED]=","Host":"relay.toot.io","Signature":"keyId=\"https://hub.azkware.net/friendica#main-key\",algorithm=\"rsa-sha256\",headers=\"(request-target) date content-length digest host\",signature=\"[REDACTED]\"","Content-Type":"application/activity+json"},"timeout":60,"body":"{\"@context\":[\"https://www.w3.org/ns/activitystreams\",\"https://w3id.org/security/v1\",{\"ostatus\":\"http://ostatus.org#\",\"vcard\":\"http://www.w3.org/2006/vcard/ns#\",\"dfrn\":\"http://purl.org/macgirvin/dfrn/1.0/\",\"diaspora\":\"https://diasporafoundation.org/ns/\",\"litepub\":\"http://litepub.social/ns#\",\"toot\":\"http://joinmastodon.org/ns#\",\"featured\":{\"@id\":\"toot:featured\",\"@type\":\"@id\"},\"schema\":\"http://schema.org#\",\"manuallyApprovesFollowers\":\"as:manuallyApprovesFollowers\",\"sensitive\":\"as:sensitive\",\"Hashtag\":\"as:Hashtag\",\"quoteUrl\":\"as:quoteUrl\",\"conversation\":\"ostatus:conversation\",\"directMessage\":\"litepub:directMessage\",\"discoverable\":\"toot:discoverable\",\"PropertyValue\":\"schema:PropertyValue\",\"value\":\"schema:value\"}],\"id\":\"https://hub.azkware.net/activity/39afe28c-7282-2516-8411-f31887056896\",\"type\":\"Follow\",\"actor\":\"https://hub.azkware.net/friendica\",\"object\":\"https://relay.toot.io/actor\",\"instrument\":{\"type\":\"Service\",\"name\":\"Friendica 'Yellow Archangel' 2024.03-rc-1556\",\"url\":\"https://hub.azkware.net\"},\"to\":[\"https://relay.toot.io/actor\"],\"signature\":{\"type\":\"RsaSignature2017\",\"nonce\":\"[REDACTED]\",\"creator\":\"https://hub.azkware.net/friendica#main-key\",\"created\":\"2024-03-13T14:57:31Z\",\"signatureValue\":\"[REDACTED]"}}","on_headers":{},"sink":"/tmp/hub.azkware.net/http-nWCFcj"}} - {"file":"HttpClient.php","line":170,"function":"request","request-id":"65f1bedbc28d4","stack":"HttpClient::request (230), HttpClient::post (304), HTTPSignature::post (325), HTTPSignature::transmit (2239), Transmitter::sendActivity (119), Transmitter::sendRelayFollow (118), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"5d54b5","process_id":872113}
2024-03-13T14:57:32Z console [DEBUG]: Request stop. {"url":"https://relay.toot.io/inbox","method":"post"} - {"file":"HttpClient.php","line":186,"function":"request","request-id":"65f1bedbc28d4","stack":"HttpClient::request (230), HttpClient::post (304), HTTPSignature::post (325), HTTPSignature::transmit (2239), Transmitter::sendActivity (119), Transmitter::sendRelayFollow (118), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"5d54b5","process_id":872113}
2024-03-13T14:57:32Z console [INFO]: Transmit to https://relay.toot.io/inbox returned 400 [] - {"file":"HTTPSignature.php","line":307,"function":"post","request-id":"65f1bedbc28d4","stack":"HTTPSignature::post (325), HTTPSignature::transmit (2239), Transmitter::sendActivity (119), Transmitter::sendRelayFollow (118), Relay::doExecute (108), Console::execute (163), Console::doExecute (108), Console::execute (45)","uid":"5d54b5","process_id":872113}
Notice that there's an error 400 - our client may be sending the wrong data, and furthermore trying to go directly to https://relay.toot.io/inbox in a browser, with no client headers set, returns the error 400 anyways.
Joseph
in reply to Joseph • •Just a note to see if any one might have ideas about our relay issue where the relays can not be added.
We are looking for any ideas or leads.
Thanks
@Michael Vogel
@Tobias
@Andy H3
@Hypolite Petovan
@OldKid