Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Are you perchance running on a 64-bit machine? -- Larry Wall in <199711102149.NAA16878@wall.org>


devel / comp.lang.tcl / Announcement: NaviServer 4.99.28 available

SubjectAuthor
* Announcement: NaviServer 4.99.28 availablegustafn
`* Announcement: NaviServer 4.99.28 availablesundar 🇮🇳
 `* Announcement: NaviServer 4.99.28 availableRich
  `* Announcement: NaviServer 4.99.28 availablesundar 🇮🇳
   `* Announcement: NaviServer 4.99.28 availablegustafn
    `- Announcement: NaviServer 4.99.28 availablesundar 🇮🇳

1
Announcement: NaviServer 4.99.28 available

<0b0327ae-4cbb-4bf5-b779-8d601e2aec63n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12162&group=comp.lang.tcl#12162

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1a18:b0:412:7df:d7b1 with SMTP id f24-20020a05622a1a1800b0041207dfd7b1mr159344qtb.9.1694413829882;
Sun, 10 Sep 2023 23:30:29 -0700 (PDT)
X-Received: by 2002:a17:903:1c5:b0:1b8:80c9:a98e with SMTP id
e5-20020a17090301c500b001b880c9a98emr3427357plh.13.1694413829247; Sun, 10 Sep
2023 23:30:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 10 Sep 2023 23:30:28 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2a0d:3344:1b6d:c00:35f3:4ae1:1412:9878;
posting-account=hc9W-AkAAAA3t8I5aI3sdC5I5eHMjDWA
NNTP-Posting-Host: 2a0d:3344:1b6d:c00:35f3:4ae1:1412:9878
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0b0327ae-4cbb-4bf5-b779-8d601e2aec63n@googlegroups.com>
Subject: Announcement: NaviServer 4.99.28 available
From: neum...@wu-wien.ac.at (gustafn)
Injection-Date: Mon, 11 Sep 2023 06:30:29 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 4303
 by: gustafn - Mon, 11 Sep 2023 06:30 UTC

Dear all,

I am glad to announce that the release of NaviServer 4.99.28 is available at SourceForge [1]. This release is a pure bug-fix and maintenance release, which fixes a bug annoying for some OpenACS users.
See below for a summary of the changes.
All the best!

-gustaf neumann

[1] https://sourceforge.net/projects/naviserver/files/naviserver/4.99.28/

=======================================
NaviServer 4.99.28, released 2023-09-06
=======================================

49 files changed, 851 insertions(+), 328 deletions(-)

New Features:
-------------
- None

Bug Fixes:
----------

- Fixed incorrect list quoting for "filter" in urlspace
introspection. This led to display problems, e.g. in the nsstats
module.

- Fixed naming Inconsistency: Unified the term "fastpath" across
configuration, API-interface, and documentation.

- Fixed potential crash in Ns_SetIUpdateSz(): Fixed a bug that could
lead to a crash when updating the content-type header field with a
lowercase field name via the old C API.

Many thanks to Brian Fenton for reporting the problem and his help
for debugging it.

Code Maintenance:
-----------------

- New API Function Ns_PlainUrlPath: Checks if a given URL path is
"plain," meaning it doesn't contain a query or fragment. Useful
for data validation in configuration files and Tcl API calls.

- Improved Validation when registering request handler. Previously,
it was possible to register request handlers for paths containing
query variables and fragments, which were never matched.

- Added Missing "-server" Argument: The "-server" argument was added
to ns_unregister_op and ns_unregister_url2file, allowing for more
centralized management (e.g. from the nsstats module).

- Added a more Portable Way of Printing NULL Pointer: Improved
portability for printing NULL pointers across different compilers,
which could laed to false positives in the regression test.

- Extended and Simplified Test Cases: Several commits were made to
improve and extend test cases across different modules and
scenarios.

- Improved and corrected documentation, including styling changes,
bug fixes, and providing more detailed information.

Modules:
--------
The following list contains the most important changes:

- Extending nsstats:

* Introduced templating to improve style-ability
* Provided a more modern GUI based on the CSS classes from w3schools
* Added management of request handlers
* Added management of url2file mappings

- Rework of module nsdbbdb:
* properly initializing mutex variables (many thanks to John Buckman)
* support for LMDB (Lightning Memory-Mapped Database)
* Improved configurability for Makefile
* Modernization of C code (better following style guide)
* Added debug support via Debug(bdb)

Build nsdbbdb with Berkeley DB 6.2.32 (results in nsdbbdb.so)
make DBINCLUDE=/opt/local/include/db62 DBLIB=/opt/local/lib/db62/

Build nsdbbdb with LMDB (Lightning Memory-Mapped Database) (results in nsdblmdb.so)
make LMDB=1 DBINCLUDE=/opt/local/include DBLIB=/opt/local/lib/

Re: Announcement: NaviServer 4.99.28 available

<07217679-84e0-49d2-abcf-f65565e3c99cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12165&group=comp.lang.tcl#12165

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1801:b0:410:916b:f3fa with SMTP id t1-20020a05622a180100b00410916bf3famr34728qtc.10.1694590749902;
Wed, 13 Sep 2023 00:39:09 -0700 (PDT)
X-Received: by 2002:a05:620a:2225:b0:772:5d97:4246 with SMTP id
n5-20020a05620a222500b007725d974246mr8079qkh.10.1694590749685; Wed, 13 Sep
2023 00:39:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 13 Sep 2023 00:39:09 -0700 (PDT)
In-Reply-To: <0b0327ae-4cbb-4bf5-b779-8d601e2aec63n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2401:4900:1ce3:a5f5:6695:3a28:fc86:97b9;
posting-account=Ob6dPgoAAADW672IPvNRJEQ2RbooJfqt
NNTP-Posting-Host: 2401:4900:1ce3:a5f5:6695:3a28:fc86:97b9
References: <0b0327ae-4cbb-4bf5-b779-8d601e2aec63n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <07217679-84e0-49d2-abcf-f65565e3c99cn@googlegroups.com>
Subject: Re: Announcement: NaviServer 4.99.28 available
From: bpsun...@gmail.com (sundar 🇮🇳)
Injection-Date: Wed, 13 Sep 2023 07:39:09 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1659
 by: sundar 🇮🇳 - Wed, 13 Sep 2023 07:39 UTC

Hello,
I am new to Tcl and Naviserver, I downloaded this yesterday (Sep 12th 2023) and when I tried to connect I get the error,
** Error: pidfile: failed to open pid file '/usr/local/ns/logs/nsd.pid': 'Permission denied'
and here is the output for the file permission,
** drwxr-xr-x 2 nsadmin nsadmin 4096 Sep 13 08:09 /usr/local/ns/logs/

Am I missing something?

p.s. I have just started to learn Tcl, so please bear with my ignorance :)

Re: Announcement: NaviServer 4.99.28 available

<udsdv6$2548b$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12166&group=comp.lang.tcl#12166

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: Announcement: NaviServer 4.99.28 available
Date: Wed, 13 Sep 2023 13:37:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <udsdv6$2548b$1@dont-email.me>
References: <0b0327ae-4cbb-4bf5-b779-8d601e2aec63n@googlegroups.com> <07217679-84e0-49d2-abcf-f65565e3c99cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Sep 2023 13:37:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="604ef02e73892685a2f435584031561a";
logging-data="2265355"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8HYWbPbrajernq9n2gc18"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.117 (x86_64))
Cancel-Lock: sha1:hCR5MSi3zjqITwgokM3g+vIjbhE=
 by: Rich - Wed, 13 Sep 2023 13:37 UTC

sundar 🇮🇳 <bpsundar@gmail.com> wrote:
> Hello,
> I am new to Tcl and Naviserver, I downloaded this yesterday (Sep 12th
> 2023) and when I tried to connect I get the error,
> ** Error: pidfile: failed to open pid file
> '/usr/local/ns/logs/nsd.pid': 'Permission denied'
> and here is the output for the file permission,
> ** drwxr-xr-x 2 nsadmin nsadmin 4096 Sep 13 08:09
> /usr/local/ns/logs/
>
> Am I missing something?
>
> p.s. I have just started to learn Tcl, so please bear with my ignorance :)

This above is not a Tcl issue (at least not as you have detailed it
above).

This is a Linux permissions issue. Are you running the server as the
"nsadmin" user. If not you *will* get exactly this error, because the
only user allowed to make changes to that directory is the "nsadmin"
user.

Most likely you just need to launch the server as the nsadmin user.

Re: Announcement: NaviServer 4.99.28 available

<abb03abf-5822-4b51-922b-0313cfc08b4cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12170&group=comp.lang.tcl#12170

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:8ef:b0:649:9713:741 with SMTP id dr15-20020a05621408ef00b0064997130741mr100019qvb.12.1694668778694;
Wed, 13 Sep 2023 22:19:38 -0700 (PDT)
X-Received: by 2002:a05:6808:10ce:b0:3a7:2434:615a with SMTP id
s14-20020a05680810ce00b003a72434615amr1921752ois.4.1694668778444; Wed, 13 Sep
2023 22:19:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 13 Sep 2023 22:19:37 -0700 (PDT)
In-Reply-To: <udsdv6$2548b$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2401:4900:1ce3:a5f5:6695:3a28:fc86:97b9;
posting-account=Ob6dPgoAAADW672IPvNRJEQ2RbooJfqt
NNTP-Posting-Host: 2401:4900:1ce3:a5f5:6695:3a28:fc86:97b9
References: <0b0327ae-4cbb-4bf5-b779-8d601e2aec63n@googlegroups.com>
<07217679-84e0-49d2-abcf-f65565e3c99cn@googlegroups.com> <udsdv6$2548b$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <abb03abf-5822-4b51-922b-0313cfc08b4cn@googlegroups.com>
Subject: Re: Announcement: NaviServer 4.99.28 available
From: bpsun...@gmail.com (sundar 🇮🇳)
Injection-Date: Thu, 14 Sep 2023 05:19:38 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1892
 by: sundar 🇮🇳 - Thu, 14 Sep 2023 05:19 UTC

here are the details to help in this regard,

[void@void bin]$ ./nsd -u void -t /home/void/Downloads/code/tcl/nsproj/pages/myserver.tcl -f
[void@void ~]$ ps aux | grep nsd
void 9116 0.1 0.1 92208 11904 pts/2 Sl+ 10:13 0:00 ./nsd -u void -t /home/void/Downloads/code/tcl/nsproj/pages/myserver.tcl -f
void 9200 0.0 0.0 6588 2432 pts/5 S+ 10:14 0:00 grep nsd
[void@void ~]$ ss -tuln | grep 8484

when the last command `ss ...` is executed there is no response indicating that no process is listening on the specific port, even though the server is running.
am i missing something?

Re: Announcement: NaviServer 4.99.28 available

<12164800-c06b-4d6c-a846-44449a43602cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12171&group=comp.lang.tcl#12171

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:678:b0:76d:a57f:6f5a with SMTP id a24-20020a05620a067800b0076da57f6f5amr113794qkh.3.1694693782452;
Thu, 14 Sep 2023 05:16:22 -0700 (PDT)
X-Received: by 2002:a05:6830:1e4e:b0:6b8:6f61:5f61 with SMTP id
e14-20020a0568301e4e00b006b86f615f61mr1579221otj.6.1694693782195; Thu, 14 Sep
2023 05:16:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 14 Sep 2023 05:16:21 -0700 (PDT)
In-Reply-To: <abb03abf-5822-4b51-922b-0313cfc08b4cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a0d:3344:1713:3600:5977:3b85:60ec:8d3;
posting-account=hc9W-AkAAAA3t8I5aI3sdC5I5eHMjDWA
NNTP-Posting-Host: 2a0d:3344:1713:3600:5977:3b85:60ec:8d3
References: <0b0327ae-4cbb-4bf5-b779-8d601e2aec63n@googlegroups.com>
<07217679-84e0-49d2-abcf-f65565e3c99cn@googlegroups.com> <udsdv6$2548b$1@dont-email.me>
<abb03abf-5822-4b51-922b-0313cfc08b4cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <12164800-c06b-4d6c-a846-44449a43602cn@googlegroups.com>
Subject: Re: Announcement: NaviServer 4.99.28 available
From: neum...@wu-wien.ac.at (gustafn)
Injection-Date: Thu, 14 Sep 2023 12:16:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3961
 by: gustafn - Thu, 14 Sep 2023 12:16 UTC

sundar 🇮🇳 schrieb am Donnerstag, 14. September 2023 um 07:19:41 UTC+2:
> here are the details to help in this regard,
>
> [void@void bin]$ ./nsd -u void -t /home/void/Downloads/code/tcl/nsproj/pages/myserver.tcl -f
> [void@void ~]$ ps aux | grep nsd
> void 9116 0.1 0.1 92208 11904 pts/2 Sl+ 10:13 0:00 ./nsd -u void -t /home/void/Downloads/code/tcl/nsproj/pages/myserver.tcl -f
> void 9200 0.0 0.0 6588 2432 pts/5 S+ 10:14 0:00 grep nsd
> [void@void ~]$ ss -tuln | grep 8484
>
> when the last command `ss ...` is executed there is no response indicating that no process is listening on the specific port, even though the server is running.
> am i missing something?

dear sunar, as a beginner, i would recommend to start in a first step what the installation suggests to you.
After a "make install" on a unix-like system, you will see something like

You can now run NaviServer by typing the following command:
/usr/local/ns/bin/nsd -t /usr/local/ns/conf/nsd-config.tcl -f

Probably, you got also some output concerning permissions and a command to setup the permissions in the installation directory. The flag "-f" at the end of the command above denotes that you want to run the server in the foreground (which means, the output of the system log is on the console, on which you started NaviServer). This mode is good for testing and experimenting, since the developer gets immediate output.

When you start with the default configuration, the output will contain something like

[14/Sep/2023:13:57:09][83853.16fc0b000][-driver:nssock:0-] Notice: nssock:0: listening on [0.0.0.0]:8080

which means that you can connect via all IP addresses of your machine on port 8080.

In your example, you are starting the server with a user "void", which is unusual, but certainly possible. You can use any kind of user, but you have to make sure, that the server is able to read and write in the installation directory (e.g. writing pid-files, log-files). From your output, one can see that the user + group is set to "nsadmin", and that the user "void" does not have rights on the folder

** drwxr-xr-x 2 nsadmin nsadmin 4096 Sep 13 08:09 /usr/local/ns/logs/

So, starting with .... -u nsadmin .... instead of ... -u void ... will help.
I would recommend to kill all nsd-processes on your system and start a fresh instance and the first sample configuration file and adapt this in a second step according to your needs.

Re: Announcement: NaviServer 4.99.28 available

<bdcc1e9b-447f-4c20-bc35-5dca1639106bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=12172&group=comp.lang.tcl#12172

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:341:b0:401:dfc4:6f8f with SMTP id r1-20020a05622a034100b00401dfc46f8fmr129415qtw.13.1694697768987;
Thu, 14 Sep 2023 06:22:48 -0700 (PDT)
X-Received: by 2002:a05:6808:6502:b0:3a9:b9eb:9990 with SMTP id
fm2-20020a056808650200b003a9b9eb9990mr650038oib.0.1694697768669; Thu, 14 Sep
2023 06:22:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 14 Sep 2023 06:22:48 -0700 (PDT)
In-Reply-To: <12164800-c06b-4d6c-a846-44449a43602cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2401:4900:1ce3:a5f5:6695:3a28:fc86:97b9;
posting-account=Ob6dPgoAAADW672IPvNRJEQ2RbooJfqt
NNTP-Posting-Host: 2401:4900:1ce3:a5f5:6695:3a28:fc86:97b9
References: <0b0327ae-4cbb-4bf5-b779-8d601e2aec63n@googlegroups.com>
<07217679-84e0-49d2-abcf-f65565e3c99cn@googlegroups.com> <udsdv6$2548b$1@dont-email.me>
<abb03abf-5822-4b51-922b-0313cfc08b4cn@googlegroups.com> <12164800-c06b-4d6c-a846-44449a43602cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bdcc1e9b-447f-4c20-bc35-5dca1639106bn@googlegroups.com>
Subject: Re: Announcement: NaviServer 4.99.28 available
From: bpsun...@gmail.com (sundar 🇮🇳)
Injection-Date: Thu, 14 Sep 2023 13:22:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1558
 by: sundar 🇮🇳 - Thu, 14 Sep 2023 13:22 UTC

thank you. Started Naviserver :)
>> [14/Sep/2023:18:26:25][19348.7f2b9dffb6c0][-driver:nssock:0-] Notice: nssock:0: listening on [0.0.0.0]:8080

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor