[SAC] [OSGeo] #2628: Trac can't log in when ipv6 is enabled on nginx

OSGeo trac_osgeo at osgeo.org
Mon Jul 26 09:29:05 PDT 2021


#2628: Trac can't log in when ipv6 is enabled on nginx
---------------------------+----------------------------------------
 Reporter:  robe           |       Owner:  sac@…
     Type:  task           |      Status:  new
 Priority:  normal         |   Milestone:  Sysadmin Contract 2021-II
Component:  Systems Admin  |  Resolution:
 Keywords:                 |
---------------------------+----------------------------------------
Description changed by robe:

Old description:

> This is to log an issue that happens whenever nginx container is
> rebooted.
>
> I haven't found a good work around for this.
>
> There are two issues here:
>
> 1) Can't get it so on restart nginx doesn't start with ipv6 enabled.
> So after reboot I need to do this in the osgeo7 nginx container
>
> This I have in the sysctl config to disable ipv6 so just reloading the
> contif works
>
> {{{
>  sysctl -p
> }}}
> 2) Trac hates ipv6 for some reason (perhaps the newer trac won't).  Gitea
> works fine with ipv6 enabled, but trac does not.
>

> This last time even though nginx wasn't registering an ipv6 address (or I
> thought it wasn't), for some reason tracsvn still did not work.
>
> Not sure which sequence of steps did it:
>
> 1) Did service reboot on trac, but it wouldn't start up so I had to
> manually start it with
>

> {{{
> lxc start tracsvn
> }}}
>
> It complained the IP was in use, so I did it again and second time it
> came up (might have just been on it's way up.
>
> But then when I checked the containers with
>

> {{{
> lxc list
> }}}
>
> I could see the nginx now had an ipv6 (maybe I was imaging things before
> that it didn't).
>
> So I logged into nxing
>

> {{{
> sysctl -p
> systemctl nginx reload
> }}}
>
> and that seemed to fix tracsvn session issue

New description:

 This is to log an issue that happens whenever nginx container is rebooted.

 I haven't found a good work around for this.

 There are two issues here:

 1) Can't get it so on restart nginx doesn't start with ipv6 enabled.
 So after reboot I need to do this in the osgeo7 nginx container

 This I have in the sysctl config to disable ipv6 so just reloading the
 contif works

 {{{
  sysctl -p
 }}}
 2) Trac hates ipv6 for some reason (perhaps the newer trac won't).  Gitea
 works fine with ipv6 enabled, but trac does not.


 This last time even though nginx wasn't registering an ipv6 address (or I
 thought it wasn't), for some reason tracsvn still did not work.

 Not sure which sequence of steps did it:

 1) Did service reboot on trac, but it wouldn't start up so I had to
 manually start it with


 {{{
 lxc start tracsvn
 }}}

 It complained the IP was in use, so I did it again and second time it came
 up (might have just been on it's way up.

 But then when I checked the containers with


 {{{
 lxc list
 }}}

 I could see the nginx now had an ipv6 (maybe I was imaging things before
 that it didn't).

 So I logged into nginx
 {{{
 lxc exec nginx

 }}}


 {{{
 sysctl -p
 systemctl nginx reload
 }}}

 and that seemed to fix tracsvn session issue

--

-- 
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2628#comment:2>
OSGeo <https://osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Sac mailing list