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
Michael Vogel
in reply to joseph • • •Andy H3
in reply to joseph • • •🎉🎉🎉
Sounds like you're not in the correct directory. You should be in the root of your installation. E.g.
/var/www/friendica
@joseph
joseph
in reply to joseph • • •@Andy H3 and @Michael Vogel
Thanks guys for the quick reply.
I forgot about being in the friendica folder. I'll do that.
@Michael Vogel you mention something about making sure that the script is executable. We are talking about what script?
Thanks again
Andy H3
in reply to joseph • • •Just see if it works without changing the file permission.
https://linuxize.com/post/understanding-linux-file-permissions/
@joseph
joseph
in reply to joseph • • •@Andy H3
@Michael Vogel
Well, entered the command as I showed before, replacing the relay site:
bin/console relay add https://relay.mycrowd.ca/actor
It fails, shpowing this:
https://relay.mycrowd.ca/actor couldn't be added
The site is not accepting any? Or, there might be another issue?
You have any suggestions for other good relays?
Thanks
Andy H3
in reply to joseph • • •Choose here:
https://relaylist.com/
@joseph @Michael Vogel
joseph
in reply to joseph • • •@Andy H3 @Michael Vogel
Thanks for the relay list. Lots to choose from:)
I tried one of them and the same error pops up again.
Why might the relay is not being added?
Thanks for any clues.
Joseph
joseph
in reply to joseph • • •@Andy H3 @Michael Vogel
Thanks for the relay list. Lots to choose from:)
I tried one of them and the same error pops up again.
Why might the relay is not being added?
Thanks for any clues.
Joseph
joseph
in reply to joseph • • •@Andy H3 @Michael Vogel
Thanks for the relay list. Lots to choose from:)
I tried one of them and the same error pops up again.
Why might the relay is not being added?
Thanks for any clues.
Joseph
joseph
in reply to joseph • • •@Andy H3 @Michael Vogel
Thanks for the relay list. Lots to choose from:)
I tried one of them and the same error pops up again.
Why might the relay is not being added?
Thanks for any clues.
Joseph
Hypolite Petovan
in reply to joseph • • •-v
flag like this:Let us know if it shows more.
joseph
in reply to Hypolite Petovan • • •I entered the command just as @Hypolite Petovan typed it in, and it does not like it. Here is the result:
root@social:/var/www/html# bin/console -v relay add https://relay.mycrowd.ca/actor
Executable: /var/www/html/bin/console.php
Arguments: array (
0 => 'add',
1 => 'https://relay.mycrowd.ca/actor',
)
Options: array (
'v' => 'relay',
)
Command: add
[Warning] Command add doesn't exist
Usage: bin/console [--version] [-h|--help|-?] <command> [<args>] [-v]
Commands:
... show moreaddon Addon management
cache Manage node cache
config Edit site config
contact Contact management
createdoxygen Generate Doxygen headers
dbstructure Do database updates
docbloxerrorchecker Check the file tree for DocBlox errors
I entered the command just as @Hypolite Petovan typed it in, and it does not like it. Here is the result:
root@social:/var/www/html# bin/console -v relay add https://relay.mycrowd.ca/actor
Executable: /var/www/html/bin/console.php
Arguments: array (
0 => 'add',
1 => 'https://relay.mycrowd.ca/actor',
)
Options: array (
'v' => 'relay',
)
Command: add
[Warning] Command add doesn't exist
Usage: bin/console [--version] [-h|--help|-?] <command> [<args>] [-v]
Commands:
addon Addon management
cache Manage node cache
config Edit site config
contact Contact management
createdoxygen Generate Doxygen headers
dbstructure Do database updates
docbloxerrorchecker Check the file tree for DocBlox errors
extract Generate translation string file for the Friendica project (deprecated)
globalcommunityblock Block remote profile from interacting with this node
globalcommunitysilence Silence a profile from the global community page
archivecontact Archive a contact when you know that it isn't existing anymore
help Show help about a command, e.g (bin/console help config)
autoinstall Starts automatic installation of friendica based on values from htconfig.php
lock Edit site locks
maintenance Set maintenance mode for this node
movetoavatarcache Move cached avatars to the file based avatar cache
mergecontacts Merge duplicated contact entries
user User management
php2po Generate a messages.po file from a strings.php file
po2php Generate a strings.php file from a messages.po file
typo Checks for parse errors in Friendica files
postupdate Execute pending post update scripts (can last days)
relocate Update node base URL
serverblock Manage blocked servers
storage Manage storage backend
relay Manage ActivityPub relay servers
Options:
-h|--help|-? Show help information
-v Show more debug information.
[Backtrace]:
#0 /var/www/html/src/Core/Console.php(157): Friendica\Core\Console->getSubConsole()
#1 /var/www/html/vendor/asika/simple-console/src/Console.php(108): Friendica\Core\Console->doExecute()
#2 /var/www/html/bin/console.php(45): Asika\SimpleConsole\Console->execute()
#3 {main}
Thanks for any ideas.
joseph
in reply to Hypolite Petovan • • •@Michael Vogel
@Andy H3
I entered the command just as @Hypolite Petovan typed it in, and it does not like it. Here is the result:
root@social:/var/www/html# bin/console -v relay add https://relay.mycrowd.ca/actor
Executable: /var/www/html/bin/console.php
Arguments: array (
0 => 'add',
1 => 'https://relay.mycrowd.ca/actor',
)
Options: array (
'v' => 'relay',
)
Command: add
[Warning] Command add doesn't exist
Usage: bin/console [--version] [-h|--help|-?] <command> [<args>] [-v]
Commands:
... show moreaddon Addon management
cache Manage node cache
config Edit site config
contact Contact management
createdoxygen Generate Doxygen headers
dbstructure Do database updates
docbloxerrorchecker Check the file tree
@Michael Vogel
@Andy H3
I entered the command just as @Hypolite Petovan typed it in, and it does not like it. Here is the result:
root@social:/var/www/html# bin/console -v relay add https://relay.mycrowd.ca/actor
Executable: /var/www/html/bin/console.php
Arguments: array (
0 => 'add',
1 => 'https://relay.mycrowd.ca/actor',
)
Options: array (
'v' => 'relay',
)
Command: add
[Warning] Command add doesn't exist
Usage: bin/console [--version] [-h|--help|-?] <command> [<args>] [-v]
Commands:
addon Addon management
cache Manage node cache
config Edit site config
contact Contact management
createdoxygen Generate Doxygen headers
dbstructure Do database updates
docbloxerrorchecker Check the file tree for DocBlox errors
extract Generate translation string file for the Friendica project (deprecated)
globalcommunityblock Block remote profile from interacting with this node
globalcommunitysilence Silence a profile from the global community page
archivecontact Archive a contact when you know that it isn't existing anymore
help Show help about a command, e.g (bin/console help config)
autoinstall Starts automatic installation of friendica based on values from htconfig.php
lock Edit site locks
maintenance Set maintenance mode for this node
movetoavatarcache Move cached avatars to the file based avatar cache
mergecontacts Merge duplicated contact entries
user User management
php2po Generate a messages.po file from a strings.php file
po2php Generate a strings.php file from a messages.po file
typo Checks for parse errors in Friendica files
postupdate Execute pending post update scripts (can last days)
relocate Update node base URL
serverblock Manage blocked servers
storage Manage storage backend
relay Manage ActivityPub relay servers
Options:
-h|--help|-? Show help information
-v Show more debug information.
[Backtrace]:
#0 /var/www/html/src/Core/Console.php(157): Friendica\Core\Console->getSubConsole()
#1 /var/www/html/vendor/asika/simple-console/src/Console.php(108): Friendica\Core\Console->doExecute()
#2 /var/www/html/bin/console.php(45): Asika\SimpleConsole\Console->execute()
#3 {main}
Thanks for any ideas.
Hypolite Petovan
in reply to joseph • • •Andy H3
in reply to joseph • • •Oh. Hard to say what's happening.
I had problems removing a relay some time ago.
Can you post the exact error message here? Hopefully someone else might be able figure out what's the cause of this.
@joseph
joseph
in reply to Andy H3 • • •I noted the message:
https://relay.mycrowd.ca/actor couldn't be added
That is the error message.
joseph
in reply to joseph • • •@Hypolite Petovan
Thanks for the change.
Here is the new output:
root@social:/var/www/html# bin/console relay add https://relay.mycrowd.ca/actor -v
Executable: /var/www/html/bin/console.php
Arguments: array (
0 => 'relay',
1 => 'add',
2 => 'https://relay.mycrowd.ca/actor',
)
Options: array (
'v' => 1,
)
Command: relay
Executable: /var/www/html/bin/console.php
Class: Friendica\Console\Relay
Arguments: array (
0 => 'add',
1 => 'https://relay.mycrowd.ca/actor',
)
Options: array (
'v' => 1,
)
https://relay.mycrowd.ca/actor couldn't be added
Hypolite Petovan
in reply to joseph • • •joseph
in reply to joseph • • •I tried, but no luck.
What does the error say?
I am still stuck with out the ability to add a relay. I am still open to other possible ideas on how to add them.
Anyone?
Thanks
joseph
in reply to joseph • • •@Andy H3 @Michael Vogel @Hypolite Petovan
I decided to look around and found no clues on the internet as to my issue. Only one conversation on github which did not lead to a solution.
Do I need to keep or remove the https://??
Examples show them being used.
Thanks
Michael Vogel
in reply to joseph • • •bin/console relay add https://relay.kretschmann.social/actor
joseph
in reply to Michael Vogel • • •I thought of that too, so off the list at the website:
relaylist.com
I added about 12 of them that were noted as on and working.
none of them work.
In addition, you got one to work that failed for me.
Is there a way to log exactly what the command does to see where it errors, or says where/why the decision is made that it does not work?
Michael Vogel
in reply to joseph • • •joseph
in reply to Michael Vogel • • •I'll check it out.
When searching, can I search for details using "relay add"?
Thanks
Michael Vogel
in reply to joseph • • •joseph
in reply to Michael Vogel • • •Here are some of the extries relating to the adding ofthe same relay that you tried:
2024-02-29T11:43:54Z console [DEBUG]: Contact found {"url":"https://relay.mycrowd.ca/actor","uid":0,"update":null,"cid":8301} - {"file":"Contact.php","line":1330,"fun>
2024-02-29T11:43:54Z console [INFO]: Sending activity Follow to https://relay.mycrowd.ca/actor for user 0 [] - {"file":"Transmitter.php","line":2247,"function":"sendA>
2024-02-29T11:43:54Z console [DEBUG]: Request start. {"url":"https://relay.mycrowd.ca/inbox","method":"post"} - {"file":"HttpClient.php","line":69,"function":"request>
2024-02-29T11:43:54Z console [DEBUG]: http request config. {"url":"https://relay.mycrowd.ca/inbox","method":"post","options":{"headers":{"User-Agent":"Friendica 'Yell>
2024-02-29T11:44:02Z console [DEBUG]: Request stop. {"url":"https://relay.mycrowd.ca/inbox","method":"post"} - {"file":"HttpClient.php","line":186,"function":"request>
... show more2024-02-29T11:44:02Z console [INFO]: Trans
Here are some of the extries relating to the adding ofthe same relay that you tried:
2024-02-29T11:43:54Z console [DEBUG]: Contact found {"url":"https://relay.mycrowd.ca/actor","uid":0,"update":null,"cid":8301} - {"file":"Contact.php","line":1330,"fun>
2024-02-29T11:43:54Z console [INFO]: Sending activity Follow to https://relay.mycrowd.ca/actor for user 0 [] - {"file":"Transmitter.php","line":2247,"function":"sendA>
2024-02-29T11:43:54Z console [DEBUG]: Request start. {"url":"https://relay.mycrowd.ca/inbox","method":"post"} - {"file":"HttpClient.php","line":69,"function":"request>
2024-02-29T11:43:54Z console [DEBUG]: http request config. {"url":"https://relay.mycrowd.ca/inbox","method":"post","options":{"headers":{"User-Agent":"Friendica 'Yell>
2024-02-29T11:44:02Z console [DEBUG]: Request stop. {"url":"https://relay.mycrowd.ca/inbox","method":"post"} - {"file":"HttpClient.php","line":186,"function":"request>
2024-02-29T11:44:02Z console [INFO]: Transmit to https://relay.mycrowd.ca/inbox returned 500 [] - {"file":"HTTPSignature.php","line":307,"function":"post","request-id>
2024-02-29T21:17:55Z worker [DEBUG]: Got ID for URL {"id":2094,"url":"https://mycrowd.ca","worker_id":"cd28d39","worker_cmd":"UpdateServerDirectories"} - {"file":"GSe>
2024-03-01T01:58:14Z console [DEBUG]: Contact found {"url":"https://relay.mycrowd.ca/actor","uid":0,"update":null,"cid":8301} - {"file":"Contact.php","line":1330,"fun>
2024-03-01T01:58:14Z console [INFO]: Sending activity Follow to https://relay.mycrowd.ca/actor for user 0 [] - {"file":"Transmitter.php","line":2247,"function":"sendA>
2024-03-01T01:58:14Z console [DEBUG]: Request start. {"url":"https://relay.mycrowd.ca/inbox","method":"post"} - {"file":"HttpClient.php","line":69,"function":"request>
2024-03-01T01:58:14Z console [DEBUG]: http request config. {"url":"https://relay.mycrowd.ca/inbox","method":"post","options":{"headers":{"User-Agent":"Friendica 'Yell>
2024-03-01T01:58:25Z console [DEBUG]: Request stop. {"url":"https://relay.mycrowd.ca/inbox","method":"post"} - {"file":"HttpClient.php","line":186,"function":"request>
2024-03-01T01:58:25Z console [INFO]: Transmit to https://relay.mycrowd.ca/inbox returned 500 [] - {"file":"HTTPSignature.php","line":307,"function":"post","request-id>
When looking in the log, I saw a number of entries that seems to say that other relays(I have yet to add one, so they came upon installation somehow)
2024-02-27T17:06:55Z worker [NOTICE]: Url not reachable {"host":"activityrelay.krbonne.net","url":"https://activityrelay.krbonne.net","worker_id":"b69ca32","worker_cm>
Does any of this conjure up any reasons as to why my relays can not be added?
Thanks
Joseph
Michael Vogel
in reply to joseph • • •joseph
in reply to Michael Vogel • • •I got the "500" error on the same relay that you added.
Why might this be?
Michael Vogel
in reply to joseph • • •/actor
in the end and have a look if the remote system looks healthy or if the page doesn't load at all or shows some weird error.joseph
in reply to Michael Vogel • • •Hi there. I can do that.
I already tried adding about 12 relays off that site @Andy H3 gave me.
Do you know of any reliable ones?
I'll keep trying. Hopefully I can find 1 o 2 that stick.
Michael Vogel
in reply to joseph • • •joseph
in reply to Michael Vogel • • •Besides 2-3 words, well, non existant:)
French and English is what I want:)
joseph
in reply to Michael Vogel • • •On the relay site, it lists the contact person, so I can contact the admin to work with them, I suppose.
@Michael Vogel
@Andy H3
Michael Vogel
in reply to joseph • • •Michael Vogel
in reply to joseph • • •bin/console relay add https://relay.mycrowd.ca/actor
joseph
in reply to joseph • • •Well, I have gone through about 1/3 fo the relays on the relaylist.com page. They either:
can not add relay
this site is not a relay
I will keep trying the rest of the ones on the list. I will also try and figure out how to contact the admin of the sites and try and work with them.
In the meantime, if any of you use or know of bonifide working English or French language relays, I'd be happy to hear from you:)
Thanks for any leads:)
joseph
in reply to joseph • • •Hi again,
I tried half of the relays on the relaylist.com page. Either they do not work, or it says that they are not a relay.
Frustrating!
Now, I wanto contact the admins on those sites.
How via friendica?
The contact person address is:
@admin@c.im
I tried via the friendica message system, but it will not send.
Do I have the right email message format?
Thanks for any help
Fly Boy
in reply to joseph • • •@joseph @Friendica Admins
The relays come and go like the wind.
Some require registration. Some are completely open.
Remember to filter to block tags.
joseph
in reply to Fly Boy • • •nice o know that they come an dgo. I'll keep this in mind.
As for the filtering and blocking, what is this for(maybe to remove unwanted words? Tags can be added to remove messages with those tags?)
Thanks
Fly Boy
in reply to joseph • • •@Joseph @Friendica Admins
Try relays:
https://relay.fedinet.social/actor
https://relay.infosec.exchange/actor
https://relay.mycrowd.ca/actor
#Friendica
#Relays #Relayserver
Fly Boy
in reply to joseph • • •@joseph @Friendica Admins
Use have to run the command from within the friendica install directory.
Also don't run as root but as the user that is running PHP.
I am running on debian 12 with apache. Therefore I run from the install directory:
joseph
in reply to Fly Boy • • •@Fly Boy
@Andy H3
@Michael Vogel
@Hypolite Petovan
I checked my bin permissions:
4 drwxrwxr-x 3 www-data www-data 4096 Feb 20 13:39
Is this where I run the command you noted?
YOU noted that I cannot run as root. Well, I always did. I will stop running as admin.
When I did execute the command, I get this result:
... show morePHP Warning: include(/var/www/html/config/local.config.php): Failed to open stream: Permission denied in /var/www/html/src/Core/Config/Util/ConfigFileManager.php on line 362
PHP Warning: include(): Failed opening '/var/www/html/config/local.config.php' for inclusion (include_pa
@Fly Boy
@Andy H3
@Michael Vogel
@Hypolite Petovan
I checked my bin permissions:
4 drwxrwxr-x 3 www-data www-data 4096 Feb 20 13:39
Is this where I run the command you noted?
YOU noted that I cannot run as root. Well, I always did. I will stop running as admin.
When I did execute the command, I get this result:
PHP Warning: include(/var/www/html/config/local.config.php): Failed to open stream: Permission denied in /var/www/html/src/Core/Config/Util/ConfigFileManager.php on line 362
PHP Warning: include(): Failed opening '/var/www/html/config/local.config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/src/Core/Config/Util/ConfigFileManager.php on line 362
PHP Fatal error: Uncaught Friendica\Core\Config\Exception\ConfigFileException: Error loading config file /var/www/html/config/local.config.php in /var/www/html/src/Core/Config/Util/ConfigFileManager.php:365
Stack trace:
#0 /var/www/html/src/Core/Config/Util/ConfigFileManager.php(162): Friendica\Core\Config\Util\ConfigFileManager->loadConfigFile()
#1 /var/www/html/src/Core/Config/Util/ConfigFileManager.php(112): Friendica\Core\Config\Util\ConfigFileManager->loadCoreConfig()
The first few were PHP warning. Is this why you said to change it to run as PHP?
Thanks
Fly Boy
in reply to joseph • • •@Joseph @Michael Vogel @Hypolite Petovan @Andy H3 @Friendica Admins
There are instructions to set the owner of the files and directories to www-data
Aldo, the instructions cover the permissions for folders & files.
joseph
in reply to 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:
... show more4 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 -rw
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
@Michael Vogel @Hypolite Petovan @Andy H3
Carlos Solís
in reply to joseph • • •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
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
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