Sycotix Posted July 5, 2020 Author Share Posted July 5, 2020 Glad I could help. No worries, any further questions just ask here again. Cheers Quote Link to comment
Un1Q Posted July 6, 2020 Share Posted July 6, 2020 (edited) Hi, After my previos post https://forums.unraid.net/topic/94088-guide-how-to-install-authelia-on-unraid/?do=findComment&comment=872023 I try update my authelia acces setting to: rules: # Rules applied to 'admins' group - domain: "*.myunraid.ru" policy: two_factor and connect to cloudflare.com but this is a placebo and what is the essence of this service, I did not understand i changed ns writes and now info and add cname writes with sub.domen for deluge but this did not solve my problem after use deluge.myunraid.ru(or else domain sonarr.myunraid.ru or radarr.myunraid.ru) i have same redirect on 403 Forbidden error. On url https://authelia.myunraid.ru/?rd=http://deluge.myunraid.ru/ but if add S - https://authelia.myunraid.ru/?rd=httpS://deluge.myunraid.ru/ then all ok. on my authelia log Whats wrong i do? Edited July 6, 2020 by Un1Q Quote Link to comment
muwahhid Posted July 7, 2020 Share Posted July 7, 2020 (edited) On 7/5/2020 at 4:16 AM, Sycotix said: Glad I could help. No worries, any further questions just ask here again. Cheers I set up authelia, and I understood how it works. But there is a snag. If I give a link to someone, for example radarr.myDomain.ru. THEN this person has an error 403. In the address bar, it can be seen that the redirect gives the authorization address of the hostel + secure point, but the address of the secure point does not come out 'https', but 'http'. To avoid this, he needs to first go through the authorization of the network, then the cookies are saved, and the errors are also ok. Or he can manually attribute the letters 'S', go through authorization, and also, after saving cookies, there will be no 403 error in the future. I will send you a PM my web so you can see for yourself. Edited July 7, 2020 by muwahhid Quote Link to comment
Sycotix Posted July 11, 2020 Author Share Posted July 11, 2020 (edited) @muwahhid @Un1Q sorry for the late reply. I'm a shift worker. I checked out your link and yeah I totally see the issue here. I'm not really sure why it is happening, but can you confirm what to following line looks like for you in the Protected Endpoint.conf ?: error_page 401 =302 https://auth.YOURDOMAIN.com/?rd=$target_url; And also the scheme settings on the Proxy Host settings in NGINX Proxy Manager, is it set to http or https? Edited July 11, 2020 by Sycotix Quote Link to comment
muwahhid Posted July 11, 2020 Share Posted July 11, 2020 (edited) error_page 401 =302 https://auth.myDOMAIN.ru/?rd=$target_url; Edited July 11, 2020 by muwahhid Quote Link to comment
muwahhid Posted July 11, 2020 Share Posted July 11, 2020 12 hours ago, Sycotix said: @muwahhid @Un1Q sorry for the late reply. I'm a shift worker. I checked out your link and yeah I totally see the issue here. I'm not really sure why it is happening, but can you confirm what to following line looks like for you in the Protected Endpoint.conf ?: error_page 401 =302 https://auth.YOURDOMAIN.com/?rd=$target_url; And also the scheme settings on the Proxy Host settings in NGINX Proxy Manager, is it set to http or https? Could you give a link to your subdomain? To check if it works for you?)) Quote Link to comment
INGY Posted July 26, 2020 Share Posted July 26, 2020 Hi, First can I say thanks Sycotix for adding this to CA. A couple of notes it might be worth putting a link to your github guide in the CA text as it can easily be missed, second the template seems to be missing the /config path. Again thanks for posting this, it makes it much easier to get it added to unraid. Thanks INGY Quote Link to comment
Sycotix Posted July 26, 2020 Author Share Posted July 26, 2020 1 hour ago, INGY said: Hi, First can I say thanks Sycotix for adding this to CA. A couple of notes it might be worth putting a link to your github guide in the CA text as it can easily be missed, second the template seems to be missing the /config path. Again thanks for posting this, it makes it much easier to get it added to unraid. Thanks INGY Hi @INGY, Thank you for the kind feedback. Appreciate it. Actually I tried adding that stuff in the template and then I ended up breaking it. So to be quite honest I don't want to try and break it again. If someone more experienced with CA is willing to update the XML template I'm happy to commit the changes on Git. (https://github.com/ibracorp/authelia.xml) As for the config path, it's there on my end, but you need to hit Show More. Is this the case for you? i.e. Quote Link to comment
INGY Posted July 26, 2020 Share Posted July 26, 2020 18 hours ago, Sycotix said: Hi @INGY, Thank you for the kind feedback. Appreciate it. Actually I tried adding that stuff in the template and then I ended up breaking it. So to be quite honest I don't want to try and break it again. If someone more experienced with CA is willing to update the XML template I'm happy to commit the changes on Git. (https://github.com/ibracorp/authelia.xml) As for the config path, it's there on my end, but you need to hit Show More. Is this the case for you? i.e. Hi @Sycotix, Unfortunately I have never played with the CA XML either. Where was you trying to add the URL to. For the config path unfortunately it wasn't there and I had to add it my self. Looking at your xml it is missing the config section at the bottom. It should have something like <Config Name="AppData Config Path" Target="/config" Default="/mnt/user/appdata/authelia" Mode="rw" Description="Container Path: /config" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/authelia</Config> Looking at the following guide and from what I understand about how unraid deploys docker containers you don't need the Environment and Data tags these are only used when the container has been deployed and are set from your config tags, the guide I was looking at is https://selfhosters.net/docker/templating/templating/ Thanks INGY Quote Link to comment
Nano Posted July 30, 2020 Share Posted July 30, 2020 Nothing appears in app data but its under docker containers, Cant even get past step 1 Quote Link to comment
Aiorus Posted August 6, 2020 Share Posted August 6, 2020 On 7/30/2020 at 12:46 PM, Nano said: Nothing appears in app data but its under docker containers, Cant even get past step 1 I have the same issue... Is it normal that it isn't asking for a path for the /config folder? Quote Link to comment
Sycotix Posted August 7, 2020 Author Share Posted August 7, 2020 On 7/27/2020 at 7:06 AM, INGY said: INGY Thank you for that. I have taken what you've written and added to the XML. Will have to wait for replication and test to see if it worked (or broke it). My apologies everyone for lack of attention here lately. COVID has us all busy. Will test the changes and hopefully will fix it. Quote Link to comment
Sycotix Posted August 7, 2020 Author Share Posted August 7, 2020 6 hours ago, License said: time="2020-08-07T11:32:25-05:00" level=info msg="Logging severity set to debug" time="2020-08-07T11:32:26-05:00" level=fatal msg="Unable to initialize SQL database: Unable to create table user_preferences: dial tcp 127.0.0.1:3306: connect: connection refused" stack="github.com/authelia/authelia/internal/storage/mysql_provider.go:72 NewMySQLProvider\ngithub.com/authelia/authelia/cmd/authelia/main.go:76 startServer\ngithub.com/authelia/authelia/cmd/authelia/main.go:121 main.func1\ngithub.com/spf13/[email protected]/command.go:842 (*Command).execute\ngithub.com/spf13/[email protected]/command.go:943 (*Command).ExecuteC\ngithub.com/spf13/[email protected]/command.go:883 (*Command).Execute\ngithub.com/authelia/authelia/cmd/authelia/main.go:138 main\nruntime/proc.go:203 main\nruntime/asm_amd64.s:1373 goexit" I get this error upon attempting to start up Authelia. Any suggestions? Have you tried checking your database installation? Are you using a database? Quote Link to comment
Sycotix Posted August 7, 2020 Author Share Posted August 7, 2020 It looks like the appdata location has been fixed now. I've also added the URL for installation instructions in the overview. If someone would be kind enough to confirm that would be great. Cheers 1 Quote Link to comment
Shalmi Posted August 11, 2020 Share Posted August 11, 2020 On 8/7/2020 at 6:19 PM, Sycotix said: Have you tried checking your database installation? Are you using a database? I was banging my head against the wall when I ran into the same issue as that user. I did not realize there was a config file that needed to be configured before the application would start. You may want to put that in the description with a link to the readme as well as in the error messages that pop up if you try to run the container without setting up the file. Gonna go try and configure this. Thanks for the nice instructions on your github. Seems like you put a lot of work into this. Quote Link to comment
Sycotix Posted August 12, 2020 Author Share Posted August 12, 2020 (edited) On 8/11/2020 at 10:49 AM, Shalmi said: I was banging my head against the wall when I ran into the same issue as that user. I did not realize there was a config file that needed to be configured before the application would start. You may want to put that in the description with a link to the readme as well as in the error messages that pop up if you try to run the container without setting up the file. Gonna go try and configure this. Thanks for the nice instructions on your github. Seems like you put a lot of work into this. Thank you for the feedback mate. My pleasure. I have actually added the doco link (https://github.com/ibracorp/authelia) in the description now as well as the path so it auto creates the appdata location. Cheers Edited August 12, 2020 by Sycotix Quote Link to comment
Shalmi Posted August 12, 2020 Share Posted August 12, 2020 Just wanted to come back and say that I got it working! 2fa and all! Thanks for the great app! Quote Link to comment
Shalmi Posted August 12, 2020 Share Posted August 12, 2020 Back again, I realized that my authelia container starts up faster than my mariadb container and then errors out and stops. Would it be possible to have the authelia container continue to attempt to connect to mariadb without just stopping? Quote Link to comment
Sycotix Posted August 13, 2020 Author Share Posted August 13, 2020 (edited) 44 minutes ago, Shalmi said: Back again, I realized that my authelia container starts up faster than my mariadb container and then errors out and stops. Would it be possible to have the authelia container continue to attempt to connect to mariadb without just stopping? I'm not sure how to do that, but another way to do it is by clicking and dragging the container in UnRAID Docker tab down a couple to give a buffer OR in the Docker tab, click Advanced and then you can set the wait time before the next docker starts. Obviously you need make sure that MariaDB is higher in the list than Authelia in either case. So on MariaDB you can put a wait time of 20-30 seconds, for example, and it won't start the next container in the list until after this timer. I do this a lot because of so many dependencies. Hope this helps. Edited August 13, 2020 by Sycotix added screenshot Quote Link to comment
Nano Posted August 19, 2020 Share Posted August 19, 2020 Everytime i log in, i get redirected back to login, What am i doing wrong in the configuration file, I can get to the main Http login, Docker is running. Password does not error, I tried to remove the redirection in the config file but still does not log in. Quote Link to comment
Nano Posted August 23, 2020 Share Posted August 23, 2020 I tried to start from scratch, The Docker will not start unless i select host as network option. Console shows level=fatal msg="listen tcp4 10.139.44.22:9091: bind: cannot assign requested address" Quote Link to comment
Sycotix Posted August 23, 2020 Author Share Posted August 23, 2020 7 hours ago, Nano said: I tried to start from scratch, The Docker will not start unless i select host as network option. Console shows level=fatal msg="listen tcp4 10.139.44.22:9091: bind: cannot assign requested address 7 hours ago, Nano said: Have you checked whether this port is already being used? Also for some more information, are you trying to access a page that you've protected with Authelia or just trying Authelia itself? Have you read my guide here https://github.com/ibracorp/authelia? Quote Link to comment
Nano Posted August 26, 2020 Share Posted August 26, 2020 On 8/23/2020 at 10:31 PM, Sycotix said: Have you checked whether this port is already being used? Also for some more information, are you trying to access a page that you've protected with Authelia or just trying Authelia itself? Have you read my guide here https://github.com/ibracorp/authelia? So the port is not being used, if i put it in host mode i can reach the Login Page, i am trying to use it with Letsencrypt. If i put in the password which i encrypted it does not say wrong password but simply refreshes the page. Is there anyway you can share your Config file filled out so i can compare. Quote Link to comment
Sycotix Posted August 26, 2020 Author Share Posted August 26, 2020 (edited) 5 hours ago, Nano said: Is there anyway you can share your Config file filled out so i can compare. Yeah mate I provided all my config files in the Git with the guide. I replaced my personal details with placeholders so you can see what needs to be changed. Check the top of the Git and you should find all the files and in the guide I've written what the placeholders are. Be mindful that the setup with letsencrypt is a tad different. In saying that it should be a bit easier since letsencrypt has most of the config in the sample confs folder in LE. Also I have everything on a seperate network on Unraid so that it's not running on host which I would recommend. Edited August 26, 2020 by Sycotix Quote Link to comment
Nano Posted September 4, 2020 Share Posted September 4, 2020 (edited) On 8/26/2020 at 11:23 PM, Sycotix said: Yeah mate I provided all my config files in the Git with the guide. I replaced my personal details with placeholders so you can see what needs to be changed. Check the top of the Git and you should find all the files and in the guide I've written what the placeholders are. Be mindful that the setup with letsencrypt is a tad different. In saying that it should be a bit easier since letsencrypt has most of the config in the sample confs folder in LE. Also I have everything on a seperate network on Unraid so that it's not running on host which I would recommend. Hey, I actually got Authelia working with a much simplier guide, it did not require any other dockers, If you turn on SQ lite in authelia it can all be done within the docker itself. Much much easier for people to follow. storage local path configdb.sqlite3 I'm sure your much smarter than me and can tell me why this is not as good as your guide but who knows. Edited September 4, 2020 by Nano Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.