Although disabling multithreaded execution isn't a workable solutionthat for sure...
for the mainline
, it will actually work at a very small scale, it will simply answer onewell, this is good news for me :) thanks for the info
request at a time.
i was thinking i may install [in a very distant future] a home server with
almost no load...
speaking of load: I tested the no-threaded server with 'loadtest -n5' and did
not see crashing or some db corruptions, so it actually may be useful.
Subject: Re: citserver NetBSD 100% CPU from pthreads
speaking of load: I tested the no-threaded server with 'loadtest -n5' anddid
not see crashing or some db corruptions, so it actually may be useful.
It shouldn't crash, and it definitely shouldn't corrupt the database. What you might notice, for example, is that if a very large message (say, several megabytes or more) is being submitted or transmitted, all the other sessions will block until it's finished. If it weren't for that, the whole server could be single threaded and we wouldn't have to worry about locking resources while writing to them, or anything like that ... it would be developer heaven
:)
Your stack trace suggests what I had suspected -- the select() system call is perhaps behaving differently on NetBSD than it does on FreeBSD and Linux.
Your stack trace suggests what I had suspected -- the select() system callah, the select() then!
is perhaps behaving differently on NetBSD than it does on FreeBSD and Linux.
take a quick peak at their man page select(2):
https://man.netbsd.org/NetBSD-10.0/select.2
especially this:
# o< --------------------------------------------------------------------------
NOTES
It is recommended to use the poll(2) interface instead, which tends to be
more portable and efficient.
# o< --------------------------------------------------------------------------
these people tend to hate select + plus their BUGS section in select(2) is
bigger than the rest of the man page :)
... it would be developer heaven :)hehe :) Valhala :)
that is why i like good'ol multiprocessing with fork()-s :) I know, I know -
nobody recommends it and also there are voices to remove it from POSIX
completely :)
Thanks, I will give that a try
Subject: textclient not honouring ansi_color=off in citadelrc
Not a big deal, just to report it:
My Versions:
* the last text client downloaded from easyinstall.citadel.org 2024-11-16
Problem description:
* editing $HOME/.citadelrc for textclient configuration
* entering ansi_color=off
* starting client
* Expected result: client to start without colors
* Result: client still has ansi colors
Additional information:
In commands.c the variable rc_ansi_color is initialised to:
rc_ansi_color = 1;
And later on the logic for reading ~/.citadelrc is:
if (!strncasecmp(buf, "ansi_color=", 11)) {
if ( (!strncasecmp(&buf[11], "on", 2))
|| (!strncasecmp(&buf[11], "auto", 4))
) {
rc_ansi_color = 1;
}
}
Conclusion: it could never reach value rc_ansi_color = 0;
even if in ~/.citadelrc configuration is ansi_color=off
Cheers!
Subject: Re: No working install posible on debian bookworm or other raspberry pi os
Mon Nov 11 2024 10:52:10 UTC from alcomys Subject: No working install posible on debian bookworm or other raspberry pi osHi Guys,
I have been busy day's to get citadel running on my raspberry pi but without success.
The setup and needed download when use easy install are good to go, but when it comes to login to the admin it goes wrong.
When installing the easy install the standard way so use admin and the password citadel for the web cit to login i got always an password error.
If i run the easy installer again and replace the admin and password with some of my own i have the same problem with password error.
I did searched google for an answer but there is less information on how to get it work on Debian bookworm.
Maybe someone did had the same problems as i have? and solved them?
Or maybe someone can help me out here? because it is very frustrating when trying days without success.
Thanks in Advance.
Alcomys
Is there nobody who have had the same problem as me with the password not working in Citadel Web-cit?
I did try different distro's for my raspberry pi 4-B and all have the same problem with the password.
Thanks in advance.
Subject: Re: No working install posible on debian bookworm or other raspberry pi os
More like most of us dont use RPI hardware. If i get a chance this weekend ill try latest easy install on a real ARM SBC.
Does "different distros" include Armbian?
Mon Nov 18 2024 20:34:54 UTC from alcomys Subject: Re: No working install posible on debian bookworm or other raspberry pi os
Is there nobody who have had the same problem as me with the password not working in Citadel Web-cit?
I did try different distro's for my raspberry pi 4-B and all have the same problem with the password.
Thanks in advance.
Ok my plans for tonight fell thru and i gave it a shot.
It wont be 1:1 the same as your hardware, other than being an ARM chip ( different family but same concept ), but Armbian is available for the RPI as well. However, i ran into a different issue, where around 95% of the process, the restart of the server hit 100% cpu and hung ( not seen that one before ). This was not a virgin install, so if i have time tomorrow ill blow the OS away and start over.
As a side note, while im not a docker fan, i did look and RPI4's can run docker. So that is another option for you, instead of using easyinstall.
And while someone else would need to chime in, i would assume you could go into the DB manually and reset the password to a known value. Just in case something weird is going on with your terminal when you entered it during hte install.
Subject: Re: No working install posible on debian bookworm or other raspberry pi os
Mon Nov 18 2024 21:15:51 UTC from Nurb432 Subject: Re: No working install posible on debian bookworm or other raspberry pi osMore like most of us dont use RPI hardware. If i get a chance this weekend ill try latest easy install on a real ARM SBC.
Does "different distros" include Armbian?
Mon Nov 18 2024 20:34:54 UTC from alcomys Subject: Re: No working install posible on debian bookworm or other raspberry pi os
Is there nobody who have had the same problem as me with the password not working in Citadel Web-cit?
I did try different distro's for my raspberry pi 4-B and all have the same problem with the password.
Thanks in advance.
Hi Nurb432,
Thanks for the replay.
Yes i have Armbian on my raspberry pi 4.
But i did try also other distro like ubuntu,Debian,Openelec all have the same problem that the password when logging in Web-Cit is wrong.
So the install has no problems but there is something with the password.
Subject: Re: No working install posible on debian bookworm or other raspberry pi os
With a bit of luck i can try again today. I expect a quiet day at work but you never know. Someone like IG can verify my thoughts about the DB. I have not had to look at the DB before.
Tue Nov 19 2024 11:03:35 UTC from alcomys Subject: Re: No working install posible on debian bookworm or other raspberry pi os
Hi Nurb432,Thanks for the replay.
Yes i have Armbian on my raspberry pi 4.
But i did try also other distro like ubuntu,Debian,Openelec all have the same problem that the password when logging in Web-Cit is wrong.
So the install has no problems but there is something with the password.
Thanks for the release.
I suppose that in some emails clients there is a maximum from
which is cut.
But 70 (??) is too few.
Ok, it will be 256 in the next update.
Ok i wont be of much help on the bad password thing. Tried an easy install on a fresh minimal Armbian OS, same result as before and it froze up on me during the restart. I am sure someone will chime in, but might be worth looking at the docker option in the meantime.
I could try the OEM OS, but its not anything you can install on a RPI so not worth it to try.
Subject: Problem with perfoming configuration setup after installation
Hi,
I installed Citadel on Raspbery Pi 5 8GB. I know it is possible because this process is described here:
https://pimylifeup.com/raspberry-pi-email-server/
Unfortunately, after the installation is completed, at the last stage of configuration, when the reconfiguration that ends the installation process is suspended.
Reconfiguring Citadel server
Citadel Server setup
Restarting Citadel server to apply changes
[***********************************************************************....]
I tried to repeat this process several times but without any changes.
I used the curl and wget installation. Unchanged.
Perhaps someone has already reported such a problem, or you have suggestions what I could do to be able to use your product.
Thank you in advance.
Kamil
Subject: Re: Problem with perfoming configuration setup after installation
And i could be wrong. But i thought id try latest easy install on a virgin x86 Debian load. ( technically FAI, but the Debian based one ) It also froze up right at the end of restarting the server, with nearly 100% CPU use. So does not appear to be a CPU related thing.
And i meant to include the below in the last message. sorry ..
~~~~~~~~~~~~~~~~
Not a huge executable debugger guy.. but i did run strace on the process and got pages of repeating lines, if its any help at all:
read(-1, 0x7ffe2e5f57ef,1 ) = -1 EBADF ( Bad file descriptor )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
webcit is trying to use readdir_r twice in it's install script. "This function is deprecated; use readdir(3) instead." From https://www.man7.org/linux/man-pages/man3/readdir_r.3.html
I have reported it and am waiting on any reply.
Nighttripper
And while someone else would need to chime in, i would assume
you could go into the DB manually and reset the password to a
known value. Just in case something weird is going on with your
terminal when you entered it during hte install.
Or you could just run "setup" and it would let you do the same thing.
Subject: Re: Problem with perfoming configuration setup after installation
Unfortunately, after the installation is completed, at the last
stage of configuration, when the reconfiguration that ends the
installation process is suspended.
Please indicate the exact model Pi you are using along with the operating system you're running. Also please tell us whether you attempted to install Citadel using the Docker package or the Easy Install method.
Easy Install is the traditional favorite, but the Docker version is usually a faster and cleaner and more reliable install.