Skip to main content


!Friendica Admins

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

in reply to joseph

Are you executing this command in the Friendica folder? Please also check that this script is set to "executable".
in reply to joseph

finally got my new friendica node up and running


🎉🎉🎉

Sounds like you're not in the correct directory. You should be in the root of your installation. E.g. /var/www/friendica
@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

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

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

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

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

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

in reply to joseph

@joseph @Michael Vogel @Andy H3 You can try increasing the verbosity of the command by adding the -v flag like this:
bin/console -v relay add https://relay.mycrowd.ca/actor

Let us know if it shows more.
in reply to Hypolite Petovan

in reply to Hypolite Petovan

in reply to joseph

@joseph Sorry, it maybe the other way around:
bin/console relay add https://relay.mycrowd.ca/actor -v
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

in reply to Andy H3

I noted the message:

https://relay.mycrowd.ca/actor couldn't be added

That is the error message.

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

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

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

in reply to joseph

It is possible that the relay servers that you tried aren't open. I just tested successfully with this one:
bin/console relay add https://relay.kretschmann.social/actor
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?

in reply to Michael Vogel

I'll check it out.

When searching, can I search for details using "relay add"?

Thanks

in reply to joseph

You have to check for the relay that you wanted to add. And then you have to check the following entries. But since I'm currently still at work, I don't have to time to explain further. I hope that I can do this in the evening.
in reply to Michael Vogel

in reply to joseph

"Transmit to https://... returned 500" tells that the remote site returned the error 500, which is an error on their side. When you had received an error in the 400, this would indicate for example permission issues.
in reply to Michael Vogel

I got the "500" error on the same relay that you added.

Why might this be?

in reply to joseph

Maybe the relay is unreliable. I guess the best way to check this is to visit the relay. Just add the relay link in your browser, omit the /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.
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.

in reply to joseph

I only subscribed to relay systems with mostly German servers on it. How good is your German? 😀
in reply to Michael Vogel

Besides 2-3 words, well, non existant:)

French and English is what I want:)

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

in reply to joseph

Some servers restrict who can subscribe. So in that case it is helpful to contact that person.
in reply to joseph

Also that one worked out for me:
bin/console relay add https://relay.mycrowd.ca/actor
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:)

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

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.

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

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:

sudo -u www-data -- php bin/console
in reply to 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

cd /var/www/html
chown -R www-data:www-data *

Aldo, the instructions cover the permissions for folders & files.
in reply to joseph

in reply to joseph

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.