Re: [naviserver-devel] ns_proxy segmentation fault under Debian Stretch
Dear David, I could reproduce the behavior. The problem was due to a change about a year ago, which reduced code duplication in cases, where no section for nsproxy was provided in the configuration file. In reported case, it was looking for "ns/server/default/module/nsproxy". This explains as well, while this was not noted earlier. The version on bitbucket has this problem now fixed. I have extended the API slightly to reduce complexity. All the best and many thanks for the report. -gn ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] ns_proxy segmentation fault under Debian Stretch
Dear alll, i found a couple of more places, where non-existing config sections might cause troubles. Will go through these more carefully and produce a new rc when done. -gn On 11.01.21 15:13, Gustaf Neumann wrote: Dear David, I could reproduce the behavior. The problem was due to a change about a year ago, which reduced code duplication in cases, where no section for nsproxy was provided in the configuration file. In reported case, it was looking for "ns/server/default/module/nsproxy". This explains as well, while this was not noted earlier. The version on bitbucket has this problem now fixed. I have extended the API slightly to reduce complexity. All the best and many thanks for the report. -gn ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] ns_proxy segmentation fault under Debian Stretch
On 11.01.21 16:45, Gustaf Neumann wrote: Will go through these more carefully and produce a new rc when done. -gn The updated version is running since yesterday on openacs.org (4 virtual servers [1]), i have tested also with macOS 10.14.6, Ubuntu 20.04, Fedora Core 32, OpenBSD 6.8 (LibreSSL 3.1.1), FreeBSD 12.2. There is also an updated release candidate on sourceforge [2]. My plan would be to release on Friday. all the best and many thanks for your help -g [1] https://openacs.org/forums/message-view?message_id=5468281 [2] https://sourceforge.net/projects/naviserver/files/naviserver/4.99.20/ ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] ns_proxy segmentation fault under Debian Stretch
Thank you for a very quick turnaround Gustaf! I'll do a build at rc4 and continue testing. Regards, On Tue, 12 Jan 2021 at 10:16, Gustaf Neumann wrote: > On 11.01.21 16:45, Gustaf Neumann wrote: > > Will go through these more carefully and produce a new rc when done. -gn > > The updated version is running since yesterday on openacs.org (4 virtual > servers [1]), i have tested also with macOS 10.14.6, Ubuntu 20.04, > Fedora Core 32, OpenBSD 6.8 (LibreSSL 3.1.1), FreeBSD 12.2. > > There is also an updated release candidate on sourceforge [2]. My plan > would be to release on Friday. > > all the best and many thanks for your help > > -g > > [1] https://openacs.org/forums/message-view?message_id=5468281 > [2] https://sourceforge.net/projects/naviserver/files/naviserver/4.99.20/ > > > > > ___ > naviserver-devel mailing list > naviserver-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- *David Osborne | Software Engineer* Qcode Software, Castle House, Fairways Business Park, Inverness, IV2 6AA *Email:* da...@qcode.co.uk | *Phone:* 01463 896 484 www.qcode.co.uk ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] ns_proxy segmentation fault under Debian Stretch
Hi again, One issue I'm noticing since these changes is that setting up users for the control port has changed. Using the default config of nsd-config.tcl from master (the same basic test case from the top of this thread): sudo /usr/local/ns/bin/nsd -u nsadmin -t /usr/local/ns/conf/nsd-config.tcl ... [19/Jan/2021:16:50:46][19522.7fcb4ff43700][-main:default-] Notice: modload: loading module nscp from file nscp [19/Jan/2021:16:50:46][19522.7fcb4ff43700][-main:default-] Notice: nscp[default]: listening on [127.0.0.1]:4080 [19/Jan/2021:16:50:46][19522.7fcb4ff43700][-main:default-] Warning: nscp[default]: no authorized users And then obviously, no access of the cp is possible: $ nc 127.0.0.1 4080 login: Password: Access denied! Previously, the default config would allow logging into the control port with blank user and password from the config: ns_section "ns/server/default/module/nscp" { ns_param port 4080 #ns_param address 0.0.0.0 } ns_section "ns/server/default/module/nscp/users" { ns_param user "::" } Regards, David On Tue, 12 Jan 2021 at 11:07, David Osborne wrote: > Thank you for a very quick turnaround Gustaf! I'll do a build at rc4 and > continue testing. > Regards, > > On Tue, 12 Jan 2021 at 10:16, Gustaf Neumann wrote: > >> On 11.01.21 16:45, Gustaf Neumann wrote: >> > Will go through these more carefully and produce a new rc when done. -gn >> >> The updated version is running since yesterday on openacs.org (4 virtual >> servers [1]), i have tested also with macOS 10.14.6, Ubuntu 20.04, >> Fedora Core 32, OpenBSD 6.8 (LibreSSL 3.1.1), FreeBSD 12.2. >> >> There is also an updated release candidate on sourceforge [2]. My plan >> would be to release on Friday. >> >> all the best and many thanks for your help >> >> -g >> >> [1] https://openacs.org/forums/message-view?message_id=5468281 >> [2] https://sourceforge.net/projects/naviserver/files/naviserver/4.99.20/ >> >> >> >> ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] ns_proxy segmentation fault under Debian Stretch
Hi again, I dug a bit more into why NaviServer at master might not be allowing us to configure any nscp users. I created a pull request to show you which changes got it working for us. At master, for us, LoadUsers ignores any nscp users defined in the "ns/server/default/module/nscp/users" section unless we make this type of change: https://bitbucket.org/naviserver/naviserver/pull-requests/10/illustrative-fix-for-nscp-loadusers Hope this might help. Regards, David On Tue, 19 Jan 2021 at 16:58, David Osborne wrote: > Hi again, > > One issue I'm noticing since these changes is that setting up users for > the control port has changed. > Using the default config of nsd-config.tcl from master (the same basic > test case from the top of this thread): > > sudo /usr/local/ns/bin/nsd -u nsadmin -t /usr/local/ns/conf/nsd-config.tcl > ... > [19/Jan/2021:16:50:46][19522.7fcb4ff43700][-main:default-] Notice: > modload: loading module nscp from file nscp > [19/Jan/2021:16:50:46][19522.7fcb4ff43700][-main:default-] Notice: > nscp[default]: listening on [127.0.0.1]:4080 > [19/Jan/2021:16:50:46][19522.7fcb4ff43700][-main:default-] Warning: > nscp[default]: no authorized users > > And then obviously, no access of the cp is possible: > > $ nc 127.0.0.1 4080 > login: > Password: > Access denied! > > Previously, the default config would allow logging into the control port > with blank user and password from the config: > > ns_section "ns/server/default/module/nscp" { > ns_param port 4080 > #ns_param address 0.0.0.0 > } > > ns_section "ns/server/default/module/nscp/users" { > ns_param user "::" > } > > Regards, > David > > On Tue, 12 Jan 2021 at 11:07, David Osborne wrote: > >> Thank you for a very quick turnaround Gustaf! I'll do a build at rc4 and >> continue testing. >> Regards, >> >> On Tue, 12 Jan 2021 at 10:16, Gustaf Neumann wrote: >> >>> On 11.01.21 16:45, Gustaf Neumann wrote: >>> > Will go through these more carefully and produce a new rc when done. >>> -gn >>> >>> The updated version is running since yesterday on openacs.org (4 >>> virtual >>> servers [1]), i have tested also with macOS 10.14.6, Ubuntu 20.04, >>> Fedora Core 32, OpenBSD 6.8 (LibreSSL 3.1.1), FreeBSD 12.2. >>> >>> There is also an updated release candidate on sourceforge [2]. My plan >>> would be to release on Friday. >>> >>> all the best and many thanks for your help >>> >>> -g >>> >>> [1] https://openacs.org/forums/message-view?message_id=5468281 >>> [2] >>> https://sourceforge.net/projects/naviserver/files/naviserver/4.99.20/ >>> >>> >>> >>> -- *David Osborne | Software Engineer* Qcode Software, Castle House, Fairways Business Park, Inverness, IV2 6AA *Email:* da...@qcode.co.uk | *Phone:* 01463 896 484 www.qcode.co.uk ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] ns_proxy segmentation fault under Debian Stretch
Hi David, Many thanks for that details, this helps a lot. I will look into this, but probably, the weekend is the earliest time. Now, i understand the problem at least. all the best -g On 21.01.21 16:15, David Osborne wrote: I dug a bit more into why NaviServer at master might not be allowing us to configure any nscp users. I created a pull request to show you which changes got it working for us. ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] ns_proxy segmentation fault under Debian Stretch
Dear all, The 4.99 branch (bug-fix branch for the 4.99 family) is now updated with the change of David. Additionally, i have added basic test cases via introducing a new command "nscp users". all the best -g https://bitbucket.org/naviserver/naviserver/commits/782e8cbd4529d548a9667a2eb0f2e370b8841632 ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] ns_proxy segmentation fault under Debian Stretch
Thank you - working perfectly now. On Sun, 24 Jan 2021 at 18:23, Gustaf Neumann wrote: > Dear all, > > The 4.99 branch (bug-fix branch for the 4.99 family) is now updated > with the change of David. Additionally, i have added basic test cases via > introducing a new command "nscp users". > > all the best -g > > > https://bitbucket.org/naviserver/naviserver/commits/782e8cbd4529d548a9667a2eb0f2e370b8841632 > > > > > ___ > naviserver-devel mailing list > naviserver-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- *David Osborne | Software Engineer* Qcode Software, Castle House, Fairways Business Park, Inverness, IV2 6AA *Email:* da...@qcode.co.uk | *Phone:* 01463 896 484 www.qcode.co.uk ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel