-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Troubles installing #277
Comments
I can reproduce this error with |
Is there something I need to do to use the development branch other than change the app image to
|
It seems as if the web install wizard is broken with the current versions. I'm not sure if it is docker image related or a problem of the wizard itself. We're on it. The easiest way to wark around this would be to go for the autoinstall feature. If you add the FRIENDICA_URL env variable as described here in paragraph 'Automatic Installation' it should give you a running setup. Does this help? |
It does; this is the furthest I've gotten with an install, thank you. Maybe it's also in plain sight somewhere, but I'm having difficulties finding out how to create an admin user with the console. As it is, registering with the site's GUI just ends up with the registration page no longer being accessible without being given the opportunity to enter a password. |
Using console add console user password, Inhave a PR queued about that you may get the inspiration from the green lines here 9262a71 |
Exactly. Connect to the friendica container and run the console steps for adding the user. I believe this is the only working variant for installing a new friendica with docker images currently. The documentation shall be updated to reflect this situation and the steps for getting a friendica running. Anyone to volunteer for this? |
Point me to the page editor ;) |
|
The msmtp error is unrelated. |
Looking a bit deeper into the documentation ... I believe the install with either the web installer (if it is working) or the autoinstall shall give you a running system. Except, there is no admin user created allthough the admin account's email has been stored already. The install documentation states that there is no need to manually add the admin user with the console commands. Just open the start/login page and register a user with the email used for the admin account. If I recall my install a few years ago I believe I also trapped into this: the register checks the email and tries to resolve the corresponding email server with its MX dns record. If I remember correctly the solution was to add the FRIENDICA_NO_VALIDATION env variable to the docker compose. This will skip the email domain validation and the user shall be created. Actually today it didn't work for me with the FRIENDICA_NO_VALIDATION set to true. The reason for this shall be fixed with PR #280. It should work for the release versions already. But I believe adding correct values to the SMTP env variables and with a working email server able to send the emails to the email accounts used on the registration form the first registration will work. I will give it some more testing tomorrow. If it works like this I will open some issues accordingly:
And it will definitely need some clarifications in the docker install documentation. I believe this is simply missing in the documentation as for plain install you mostly have a working mail (at least sendmail) on a server system. But for the docker image it needs the SMTP configuration. |
I have created a running instance with docker-compose and have been able to create the admin user with the login UI. But there are a few things not working as expected: This is what I used for docker-compose.yml:
I have than been able to open the start/login page in the web browser (under http://localhost:9080 in my case). Click on the 'Register' button and enter the details, especially the email as chosen for FRIENDICA_ADMIN_MAIL. I then get a notification stating that the sending of the email failed and it listed my chosen Nickname and a password to use for login. The first attempt to login with the provided credentials failed, the second attempt succeeded. So, it worked. But not really as expected. Still, adding the admin user with the console or changing its password still works either. |
@ne20002 Same issue here. It isn't world-ending but I'd obviously like to resolve it. I believe you need an SMTP server set up. I was trying to use the PHP Mailer addon to connect it to my Disroot email but still got a log error saying it doesn't support authorization. So either I entered the information wrong or else the server needs to be local? Maybe try that addon and let me know if you can figure it out. Here's my config for it.
|
msmtp could be a bit tricky to setup. I took me several attempts to get it right, error messages are not really helpfull.Here is my .env files smtp part with a working setup tested on gmx.com:
ALL these variables MUST be passed to friendica's app: section in the
If you want to go trial and errors to debug your configuration, I suggest:
With your local mymsmtprc file containing your trial and error config, something like that based on your .env setup:
So you can edit mysmtprc file quickly without restarting friendica's container, and quickly try different settings. Once you have it working, you will reflect the settings in .env file, remove the mysmtp volume mapping in docker-compose.yaml etc... to get back to normal. Log inside the friendica's container, create a test mail file, run msmtp in debuging mode:
|
Got it working. I entered in what was suggested by @m33m33 and turned off PHP Mailer. I think it was the missing SMTP_STARTTLS variable that did it. Thanks! |
I tried it myself, the test worked. But when I try the setup with the login page and register with the defined admin email, no email is send and a friendica blank page (only layout without content) is shown. |
Did anyone got the logging working? |
I don't get the login working so that's why I wanted to look into the log file on the console. I try to just increase log level, maybe its just nothing logged when I tried. |
I managed to complete the install with both the ui wizard and the autoinstall with the latest friendica:dev docker image. In both variants the creation of the admin user using the 'Register' button on the first login screen fails. Thus at the moment the admin user needs to be created by exec-ing into the friendica container
and using the console
In my tests I created a valid msmtp setup based on the input as above. This has the advantage that an email with the password created is send to the provided admin's email account. Without email the password needs to be set with the console:
This is my current docker-compose file for using the ui wizard:
For using the autoinstall
needs to be added to the environment section of app service. |
With the update as of yesterday I'm trying again to install Friendica via Docker. I pruned the docker system and volumes prior, so it should be a clean install.
I'm using the default image with Apache, and the example docker-compose script, with the only changes made that I have a password entered and the admin email.
I get to the point in the setup where it asks for my admin email, which I enter and submit, and then get only a blank page.
Container logs are nothing interesting, just GET requests. Running off of Debian, firewall is down for the sake of just getting this to work.
The text was updated successfully, but these errors were encountered: