The officially official Devuan Forum!

You are not logged in.

#1 Other Issues » "pm2 startup" fails on Devuan » 2025-06-13 14:18:42

IdeaFix
Replies: 0

pm2 startup actually supports "systemv" but only in redhat/centos6 way. It depends on chkconfig.

https://github.com/Unitech/pm2/issues/4180 - nobody will patch pm2 for Devuan byt may be we will make a working init script?

#2 Re: Other Issues » Tomcat problems in Devuan » 2025-04-30 14:33:19

I found here that there is no pam_limits.so in common-session-noninteractive and common-session by design. Apache 2 can be preconfiured via /etc/apache2/envvars and what about tomcat? All manuals are only about systemd.

Now i put ulimit -n 16384 directly in  /etc/init.d/tomcat9 and it is working, but what is the right way?

#3 Re: Other Issues » Tomcat problems in Devuan » 2025-04-30 11:27:51

i made "nofile = 65535" for tomcat and "nofile = 16384" for root... after restarting tomcat, i see a changes - 1st tomcat process have nofile=16384 (cat /proc/1st_pid/limits) and ither processes has 8192.

nofile for root allows to change 1st tomcat process configuration, but not others. How to change nofile for tomcat, runned by init script?

In systemd i can make something like this:

[Service]
Type=forking
User=tomcat
Group=tomcat
LimitNOFILE = 65535

Is it possible to make the same thing in /etc/defaults/tomcat?

#4 Re: Other Issues » Tomcat problems in Devuan » 2025-04-30 10:19:31

I also see no "pam_limits.so"

here:
/etc/pam.d/common-session-noninteractive
/etc/pam.d/common-session

#5 Re: Other Issues » Unable to set the value “nofile” in /etc/security/limits.conf » 2025-04-30 08:53:48

I asked same question about tomcat. I will try to post here what I see in same situation:

All settings seems to be good and in the right places:

root@host:~# cat /etc/sysctl.conf | grep file-max
fs.file-max = 65535
root@host:~# cat /etc/security/limits.d/nofile.conf
tomcat hard nofile 65535
tomcat soft nofile 65535

Tomcat user shows right values:

root@host:~# sudo su -l tomcat -s /bin/bash
tomcat@host:~$ ulimit -n
65535
tomcat@host:~$ ulimit -Hn
65535
tomcat@host:~$ ulimit -Sn
65535

Looking for tomcat pids:

root@host:~# lsof -t -i:8080
10832
10893
12255
12304
12339
12383
12578

Checking limits, and found 8192 but not 65536:

root@host:~# cat /proc/12578/limits
Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            8388608              unlimited            bytes
Max core file size        0                    unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             192572               192572               processes
Max open files            8192                 8192                 files
Max locked memory         65536                65536                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       192572               192572               signals
Max msgqueue size         819200               819200               bytes
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us
root@host:~# cat /proc/12383/limits
Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            8388608              unlimited            bytes
Max core file size        0                    unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             192572               192572               processes
Max open files            8192                 8192                 files
Max locked memory         65536                65536                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       192572               192572               signals
Max msgqueue size         819200               819200               bytes
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us

#6 Other Issues » Tomcat problems in Devuan » 2025-04-30 07:30:46

IdeaFix
Replies: 3

Hi. I have some problems with tomcat:

1. It is unclear for me how to change running user. All modern manuals are for systemd. I tried to edit /etc/defaults/tomcat in tomcat7 style, but it is not working fine. I tried to edit /etc/init.d/tomcat9, but... Deviuan is not LFS.

2. It is unclear for me how tomcat security is working now. In systemd based systems I usually need only to put RW paths in unit file. In devuan I tried ro use tomcat9 security switch in /etc/defaults/tomcat and additional configs in policy.d. It is working now, but I found no documentation about it.

3. It is unclear for me how to run tomcat in 80 port on modern devuan. I want to find a silution wothout firewalls anp proxies. Solutions form tomcat7 and systemd based solutions are not working.

3. "Too many open files". Now i see 1024 when run "ulimit -n". I can run "ulimit -n 4096", but i can not store 4096 after reboot. I tried to add in /etc/security/limits.conf something like this

* soft nofile 2048
* hard nofile 2048

But i see 1024 after reboot. I need to change this option only for "tomcat" process or "tomcat" user. All manuals are about how to edit systemd unit to make another limit value.

#7 Re: Other Issues » [SOLVED] certbot renewal cron script » 2025-04-30 07:17:07

As far as I understand, the package is created on the Debian side. The package creator thought about Debian users, implementing the transfer of control to systemd and about other good people... that's good.

The lack of a hook for restarting Apache is probably also somehow justified.

I changed the settings. Made updates weekly and added an action for Apache.

#8 Re: Other Issues » [SOLVED] certbot renewal cron script » 2025-04-29 17:20:09

I have a similar opinion on this issue. That's why I asked questions about the standard script. The frequency of script launch and the lack of hooks is most likely the responsibility of the maintainer in debian. I think he was guided by the recommendations of the certbot developers.

test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))'

This code raises questions for me.

Accordingly, it seems to me that the standard cron task is either not quite suitable for devuan or in principle needs to be improved by the administrator.

#9 Re: Other Issues » [SOLVED] certbot renewal cron script » 2025-04-29 11:47:43

One more question. Does this mean that the apache2 service will reload (not restart) twice a day (*/12)? It's not scary, but it's not necessary. IMHO.

#10 Re: Other Issues » [SOLVED] certbot renewal cron script » 2025-04-24 22:09:20

Dhould i add --post-hook "service apache2 reload" to

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew

#11 Re: Other Issues » [SOLVED] certbot renewal cron script » 2025-04-22 19:08:47

The main question is... should certbot deb package from Debian be patched for Devuan?

this cron task is from original package:

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew

#12 Other Issues » [SOLVED] certbot renewal cron script » 2025-04-21 16:49:46

IdeaFix
Replies: 12

Hi.

Is it good for devuan?

cat /etc/cron.d/certbot
# /etc/cron.d/certbot: crontab entries for the certbot package
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportunity to validate certificates
# haven't been revoked, etc.  Renewal will only occur if expiration
# is within 30 days.
#
# Important Note!  This cronjob will NOT be executed if you are
# running systemd as your init system.  If you are running systemd,
# the cronjob.timer function takes precedence over this cronjob.  For
# more details, see the systemd.timer manpage, or use systemctl show
# certbot.timer.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew

I think about something loke this:

0 */12 * * * root certbot renew --post-hook "service apache2 reload"

0  0,12 *  *  * certbot renew --post-hook "service apache2 reload"

#13 Other Issues » allow tomcat9 to read and write not only in sandbox » 2024-11-12 17:57:09

IdeaFix
Replies: 0

Hi.

All manuals are about systemd units. I tried to edit /etc/default/tomcat9 with this lines

AUTHBIND=yes
TOMCAT9_SECURITY=yes
SECURITY_MANAGER="true"

Also i made  /etc/tomcat9/policy.d/06my.policy

with text inside:

grant codeBase "file:/opt/dir1/-" {
  permission java.security.AllPermission;
};
grant codeBase "file:/tmp/-" {
  permission java.security.AllPermission;
};

but it is not working at all.

#14 Other Issues » php8.2-fpm depends on systemd-standalone-tmpfiles » 2024-08-31 16:56:48

IdeaFix
Replies: 0

subj.

Is this really necessary?

Linux web 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux
daedalus

#15 Re: Installation » How to get java8 on devuan3? » 2020-07-08 19:46:02

Very constructive, as always. You must be proud of yourself. LOL.

#16 Re: Installation » How to get java8 on devuan3? » 2020-07-07 19:49:33

Andre4freedom
I need JDK too. And without a hacks.

kuleszdl
There are some problems with update-alternatives and environment variables. Even old Slackware was more user friendly... no php (exept official) on 32bit systems, no java (exept official). But we have OpenRC. And tomorrow, people from adoptopenjdk will make a systemd dependence.... smile Devuan is not reliable and it is impossible to use devuan for serious purposes.

#17 Re: Installation » How to get java8 on devuan3? » 2020-07-03 04:38:57

rolfie
I know, that Beowulf isn't good enough smile But now, I need to run an application, depends on java8 under OS with 2-3 years of support.

It is difficult decision for me, but may be, i will choose Ubuntu.

#18 Re: Installation » How to get java8 on devuan3? » 2020-07-02 19:49:49

Hi.

I have such system:

root@web:# cat /etc/apt/sources.list
#deb http://deb.debian.org/debian/ wheezy main contrib non-free
#deb http://security.debian.org/ wheezy/updates main contrib non-free
#deb http://deb.debian.org/debian/ wheezy-updates main contrib non-free

#deb http://archive.debian.org/debian/ wheezy main contrib non-free
#deb http://security.debian.org/ wheezy/updates main contrib non-free

#deb http://pkgmaster.devuan.org/merged jessie main
#deb http://pkgmaster.devuan.org/merged jessie-updates main
#deb http://pkgmaster.devuan.org/merged jessie-security main
#deb http://pkgmaster.devuan.org/merged jessie-backports main

#deb http://auto.mirror.devuan.org/merged jessie          main contrib non-free
#deb http://auto.mirror.devuan.org/merged jessie-updates  main contrib non-free
#deb http://auto.mirror.devuan.org/merged jessie-security main contrib non-free
#deb http://auto.mirror.devuan.org/merged jessie-backports main contrib non-free

#deb http://deb.devuan.org/merged ascii main contrib non-free
#deb http://deb.devuan.org/merged ascii-updates main contrib non-free
#deb http://deb.devuan.org/merged ascii-security main contrib non-free
#deb http://deb.devuan.org/merged ascii-backports main contrib non-free
#deb http://deb.devuan.org/merged ascii-proposed-updates main contrib non-free

deb http://deb.devuan.org/merged beowulf main contrib non-free
deb http://deb.devuan.org/merged beowulf-updates main contrib non-free
deb http://deb.devuan.org/merged beowulf-security main contrib non-free
deb http://deb.devuan.org/merged beowulf-backports main contrib non-free
deb http://deb.devuan.org/merged beowulf-proposed-updates main contrib non-free

root@web:# dpkg -l | grep -E "(deb7|deb8|deb9)"

root@web:# uname -a
Linux web 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
root@web:#

I do not want to use a package from another version. May be, it is possible to find a repository with devuan3 package of openjdk-8-jdk?

#19 Re: Installation » How to get java8 on devuan3? » 2020-07-02 09:48:23

Is it good to install packages from devuan2 to devuan3?

#20 Installation » How to get java8 on devuan3? » 2020-07-01 21:07:25

IdeaFix
Replies: 14

Subj. Help me please to find a best way.

#21 Re: Off-topic » deb.sury.org now requires systemd » 2020-06-19 10:50:21

tdrnetworks wrote:

We've updated our repo today, with new upstream builds.

Currently serving:  PHP 7.2.31,    7.3.19,   and 7.4.7.

Please, help me to install php-imagick. I see only php-imagick from original devuan ascii repo.

#23 Re: Off-topic » deb.sury.org now requires systemd » 2020-04-26 15:19:18

You found a time to make a lot of words... but I need my services works now, not tomorrow. And may be i will just change a linux distribution.

Some time ago i build (just for fun) a nice 80286 computer. With 25MHz CPU and i287XL NPU, with 16MB of ram, 1MB of vram, good lan, sound and SCSI card. I read about embedded linux, but it is a lie. There is no linux on 286 (hey, there is no linux on 386!). Xenix? Minix? Old UNIX? No... the best OS for this computer is DOS. Somebody fiound a time and money (or even a motivation) to make a web server, ssh server and client, ftp server and other for dos and it is working smile Also, DOS includes useful LAN stack, and XENIX actually not.

Here we have the same thing - Devuan developers have a lot of problems and Devuan 3 will be released may be after Debian 11, BUT! You tell me about a great OS for free... no, i have no great os for free, i have a choice.

Sorry for my english, but i spended about 60 hours of my private time to make this wonderfull os works with 2020Q1 applications.

I think that are so used to it that it is possible you have lost sight of a very important fact: I can buy  a first class OS to run my boxes, but i can not buy Devuan. Only donate without any guarantee that the terrible Debian will not destroy the subj at the next vote.

#24 Re: Off-topic » deb.sury.org now requires systemd » 2020-04-26 02:08:49

szutt wrote:
IdeaFix wrote:

Maybe choosing devuan was my mistake....

Making a sarcastic comment in such a context is a mistake.

No sarcasm. There is actually no way to get php 7.3 in devuan. It is possible to build it from tdrnetworks sources but with no tests, or use beowulf (with "debian" in grub). Now I can not update owncloud, wordpress (with some custom code) and a lot of other really simple services in ascii 2.1. Also, i have some small servers with 686-pae and "broken" sury. Yes, it is my problem. No sarcasm... no support, no roadmap, no place in production.

It was my mistake to use devuan. It was my fault - to trust devuan. No sarcasm.

We are actually have no rock stable actual LAMP out of the box... but talk about arm64, amd drivers, laptops... with no sarcasm.

IMHO

#25 Off-topic » mysql in beowulf shutting down very long time » 2020-04-25 23:51:02

IdeaFix
Replies: 0

I updated my ascii 2.1 to beowulf 3.0 without any problems, but restart of the server takes about 5 minutes now:

Apr 26 04:39:40 cloud mysqld: 2020-04-26  4:39:40 0 [Note] /usr/sbin/mysqld (initiated by: debian-sys-maint[debian-sys-maint] @ localhost []): Normal shutdown
Apr 26 04:39:40 cloud mysqld: 2020-04-26  4:39:40 0 [Note] Event Scheduler: Purging the queue. 0 events
Apr 26 04:39:40 cloud mysqld: 2020-04-26  4:39:40 0 [Note] InnoDB: FTS optimize thread exiting.
Apr 26 04:39:40 cloud mysqld: 2020-04-26  4:39:40 0 [Note] InnoDB: Starting shutdown...
Apr 26 04:39:40 cloud mysqld: 2020-04-26  4:39:40 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
Apr 26 04:39:40 cloud mysqld: 2020-04-26  4:39:40 0 [Note] InnoDB: Buffer pool(s) dump completed at 200426  4:39:40
Apr 26 04:40:41 cloud mysqld: 2020-04-26  4:40:41 0 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
Apr 26 04:41:41 cloud mysqld: 2020-04-26  4:41:41 0 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
Apr 26 04:42:22 cloud mysqld: 2020-04-26  4:42:22 0 [Note] InnoDB: Shutdown completed; log sequence number 373103826; transaction id 2474777
Apr 26 04:42:22 cloud mysqld: 2020-04-26  4:42:22 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
Apr 26 04:42:22 cloud mysqld: 2020-04-26  4:42:22 0 [Note] /usr/sbin/mysqld: Shutdown complete
Apr 26 04:42:22 cloud mysqld:
Apr 26 04:42:22 cloud mysqld_safe: mysqld from pid file /run/mysqld/mysqld.pid ended

may be I should reconficure something to restart/stop mysql service more quickly?

Board footer

Forum Software