Re: Misplaced packages?

2021-08-31 Thread Christian Ehrhardt
On Tue, Aug 31, 2021 at 11:49 PM Gunnar Hjalmarsson  wrote:
>
> On 2021-08-27 16:19, Robert Spanjaard wrote:
> > Greetings Ubuntu Developers!
> >
> > I was just browsing some sections in Synaptic, looking for lightweight
> > webbrowsers and image gallery creation. During my browse I found some
> > strange package placements:
> >
> > w3m, a text based webbrowser, is placed in the section Word Processing
> > bluefish, a text editor, is placed in World Wide Web (multiverse)
> > florence, a virtual keyboard for X, is placed in World Wide Web
> > (multiverse)
> >
> > All on Ubuntu 20.04(.3).
>
> Weird. I installed w3m (on 21.04) to take a look.
>
> $ cat /var/lib/dpkg/status | grep 'Package: w3m' -A 3
> Package: w3m
> Status: install ok installed
> Priority: optional
> Section: web
> $ apt-cache show w3m | grep Section
> Section: text
>
> It looks some kind of 'disagreement' between dpkg and apt while Synaptic
> is an interface to browse apt info.

Maybe because it had changed in the past?
One can understand why one could mark it "text" in the first place as
it is a text based browser not realizing that text is "for text
processors".
But in 0.5.2-3 it had the change of "Set Section to web."
That version is old (pre-precise), so it has been that way (web) for
quite some time.

Therefore when you check the sources "web" is what you get just as
with the /var/lib/dpkg/status check mentioned above.
$ apt source w3m
$ grep Section w3m-0.5.3/debian/control
Section: web

Also it is Section web on lauchpad for example at
https://launchpad.net/ubuntu/+source/w3m/0.5.3-37

But OTOH the cache data is on "text" - and that is what apt/synaptic will use:
$ apt-cache show w3m | grep Section
Section: text

It seems some data holds to the old "text" entry ever since.

Overview:
web: /var/lib/dpkg/status, launchpad, source
text: apt-cache, synaptic

Is there a step needed/missed to make the apt/repository data refresh
the section?

> --
> Gunnar Hjalmarsson
> https://launchpad.net/~gunnarhj
>
> --
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss@lists.ubuntu.com
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss



-- 
Christian Ehrhardt
Staff Engineer, Ubuntu Server
Canonical Ltd

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Misplaced packages?

2021-08-31 Thread akash rao
On Wed, 1 Sept 2021 at 03:19, Gunnar Hjalmarsson 
wrote:

> On 2021-08-27 16:19, Robert Spanjaard wrote:
> > Greetings Ubuntu Developers!
> >
> > I was just browsing some sections in Synaptic, looking for lightweight
> > webbrowsers and image gallery creation. During my browse I found some
> > strange package placements:
> >
> > w3m, a text based webbrowser, is placed in the section Word Processing
> > bluefish, a text editor, is placed in World Wide Web (multiverse)
> > florence, a virtual keyboard for X, is placed in World Wide Web
> > (multiverse)
> >
> > All on Ubuntu 20.04(.3).
>
> Weird. I installed w3m (on 21.04) to take a look.
>
> $ cat /var/lib/dpkg/status | grep 'Package: w3m' -A 3
> Package: w3m
> Status: install ok installed
> Priority: optional
> Section: web
> $ apt-cache show w3m | grep Section
> Section: text
>
> It looks some kind of 'disagreement' between dpkg and apt while Synaptic
> is an interface to browse apt info.
>
> --
> Gunnar Hjalmarsson
> https://launchpad.net/~gunnarhj
>
> --
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Misplaced packages?

2021-08-31 Thread Gunnar Hjalmarsson

On 2021-08-27 16:19, Robert Spanjaard wrote:

Greetings Ubuntu Developers!

I was just browsing some sections in Synaptic, looking for lightweight 
webbrowsers and image gallery creation. During my browse I found some 
strange package placements:


w3m, a text based webbrowser, is placed in the section Word Processing
bluefish, a text editor, is placed in World Wide Web (multiverse)
florence, a virtual keyboard for X, is placed in World Wide Web 
(multiverse)


All on Ubuntu 20.04(.3).


Weird. I installed w3m (on 21.04) to take a look.

$ cat /var/lib/dpkg/status | grep 'Package: w3m' -A 3
Package: w3m
Status: install ok installed
Priority: optional
Section: web
$ apt-cache show w3m | grep Section
Section: text

It looks some kind of 'disagreement' between dpkg and apt while Synaptic 
is an interface to browse apt info.


--
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: [users@httpd] Fwd: apache2 / httpd graceful/reload failures on Ubuntu 21.04

2021-08-31 Thread Dino Ciuffetti
Reading the source code:

From mod_slotmem_shm:
...
401 apr_shm_remove(fname, pool);
402 rv = apr_shm_create(&shm, size, fname, gpool);
...
408 ap_log_error(APLOG_MARK, rv == APR_SUCCESS ? APLOG_DEBUG : 
APLOG_ERR,
409  rv, ap_server_conf, APLOGNO(02611)
410  "create: apr_shm_%s(%s) %s",
411  fbased && is_child_process() ? "attach" : "create",
412  fname, rv == APR_SUCCESS ? "succeeded" : "failed");


Autoconf defines APR_USE_SHMEM_SHMGET for SHM namebased memory allocation
...
decision on anonymous shared memory allocation method... 4.4BSD-style mmap() 
via MAP_ANON
decision on namebased memory allocation method... SysV IPC shmget()


in APR, shm.c, apr_shm_create():
380 if ((new_m->shmid = shmget(new_m->shmkey, new_m->realsize,
381SHM_R | SHM_W | IPC_CREAT | IPC_EXCL)) < 
0) {
382 apr_file_close(file);
383 return errno;
384 }


From shmget() manual page, possible errors in errno:
   ENOSPC: All possible shared memory IDs have been taken (SHMMNI), or 
allocating a segment of the requested size would cause the system to exceed  
the  system-wide limit on shared memory (SHMALL).
  
So your "No space left on device" is not on your filesystem but on your shared 
memory sysv.
 
Since SHMALL on a 64bit linux system is very big (please try this: cat 
/proc/sys/kernel/shmall), I would bet on a low SHMMNI value on your system 
(pls: cat /proc/sys/kernel/shmmni)

SHMMNI is the global maximum number of shared memory segments on your system.
Default on Ubuntu should be 4096. Please try to increase the value (echo 8192 > 
/proc/sys/kernel/shmmni) or more.


HTH.
Ciao, Dino.



27 agosto 2021 11:43, "Spil Oss"  wrote:

> Hi,
> 
> I've been experiencing a failed apache2 service on Ubuntu 21.04 when
> performing a reload using the `systemctl reload apache2` command. The
> command does not always fail, but seems to be failing more often as
> the number of vhosts increases (currently ca 120). My
> 
> The `systemctl reload apache2` command exits without error, but the
> service ends up in a failed state. Running `systemctl start apache2`
> after this failure starts the service without issues.
> I had taken to do running `systemctl reload apache2; systemctl status
> apache2` to validate that I have a running service, but this would
> report "success" even when the service is "failed".
> 
> Expecting some timing issue, I increased the "RestartSec" systemd
> parameter to 500ms using
> `/etc/systemd/system/apache2.service.d/override.conf`
> [Service]
> RestartSec=500ms
> 
> This has not fixed the issue either.
> 
> Testing the reload using `apachectl -k graceful` can also trigger the
> "failed" state of the process.
> 
> The consistent error is with the persistence of shared memory
> segments. The indicated error is incorrect, there's plenty of space on
> the filesystem. The configuration has been kept as close as possible
> to the default Ubuntu config.
> 
> My gut feeling is some weird interaction between graceful and systemd
> as seen in the logs. The RestartSec change not solving the problem
> kind of goes against that.
> 
> Any help appreciated! Thanks, Bernard Spil.
> 
> $ df -h /var/run/apache2/
> Filesystem Size Used Avail Use% Mounted on
> tmpfs 1.6G 6.6M 1.6G 1% /run
> 
> $ ls mods-enabled/*.load | sed 's/mods-enabled\///;s/\.load//'
> access_compat
> alias
> auth_mellon
> authn_core
> authn_file
> authz_core
> authz_host
> authz_user
> brotli
> deflate
> dir
> env
> filter
> headers
> http2
> lbmethod_byrequests
> mime
> mpm_event
> negotiation
> proxy
> proxy_balancer
> proxy_http
> proxy_http2
> proxy_wstunnel
> remoteip
> reqtimeout
> rewrite
> setenvif
> slotmem_shm
> socache_shmcb
> ssl
> status
> 
> /var/log/apache2/error.log:
> [Fri Aug 27 00:00:18.881934 2021] [mpm_event:notice] [pid 138928:tid
> 140168396681856] AH00493: SIGUSR1 received. Doing graceful restart
> [Fri Aug 27 00:00:19.155640 2021] [slotmem_shm:error] [pid 138928:tid
> 140168396681856] (28)No space left on device: AH02611: create:
> apr_shm_create(/var/run/apache2/slotmem-shm-pd38fd8d0_acc_example_org_6.shm)
> failed
> [Fri Aug 27 00:00:19.155679 2021] [:emerg] [pid 138928:tid
> 140168396681856] AH00020: Configuration Failed, exiting
> [Fri Aug 27 00:05:01.645184 2021] [core:warn] [pid 166984:tid
> 140602886914688] AH00098: pid file /var/run/apache2/apache2.pid
> overwritten -- Unclean shutdown of previous Apache run?
> [Fri Aug 27 00:05:01.656692 2021] [mpm_event:notice] [pid 166984:tid
> 140602886914688] AH00489: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1j
> configured -- resuming normal operations
> [Fri Aug 27 00:05:01.656748 2021] [core:notice] [pid 166984:tid
> 140602886914688] AH00094: Command line: '/usr/sbin/apache2'
> 
> journalctl:
> Aug 27 02:00:13 web01.example.org systemd[1]: Starting Rotate log files...
> Aug 27 02:00:18 web01.example

apache2 / httpd graceful/reload failures on Ubuntu 21.04

2021-08-31 Thread Spil Oss
Hi,

I've been experiencing a failed apache2 service on Ubuntu 21.04 when
performing a reload using the `systemctl reload apache2` command. The
command does not always fail, but seems to be failing more often as
the number of vhosts increases (currently ca 120). My

The `systemctl reload apache2` command exits without error, but the
service ends up in a failed state. Running `systemctl start apache2`
after this failure starts the service without issues.
I had taken to do running `systemctl reload apache2; systemctl status
apache2` to validate that I have a running service, but this would
report "success" even when the service is "failed".

Expecting some timing issue, I increased the "RestartSec" systemd
parameter to 500ms using
`/etc/systemd/system/apache2.service.d/override.conf`
[Service]
RestartSec=500ms

This has not fixed the issue either.

Testing the reload using `apachectl -k graceful` can also trigger the
"failed" state of the process.

The consistent error is with the persistence of shared memory
segments. The indicated error is incorrect, there's plenty of space on
the filesystem. The configuration has been kept as close as possible
to the default Ubuntu config.

My gut feeling is some weird interaction between graceful and systemd
as seen in the logs. The RestartSec change not solving the problem
kind of goes against that.

Any help appreciated! Thanks, Bernard Spil.

$ df -h /var/run/apache2/
Filesystem  Size  Used Avail Use% Mounted on
tmpfs   1.6G  6.6M  1.6G   1% /run

$ ls mods-enabled/*.load | sed 's/mods-enabled\///;s/\.load//'
access_compat
alias
auth_mellon
authn_core
authn_file
authz_core
authz_host
authz_user
brotli
deflate
dir
env
filter
headers
http2
lbmethod_byrequests
mime
mpm_event
negotiation
proxy
proxy_balancer
proxy_http
proxy_http2
proxy_wstunnel
remoteip
reqtimeout
rewrite
setenvif
slotmem_shm
socache_shmcb
ssl
status

/var/log/apache2/error.log:
[Fri Aug 27 00:00:18.881934 2021] [mpm_event:notice] [pid 138928:tid
140168396681856] AH00493: SIGUSR1 received.  Doing graceful restart
[Fri Aug 27 00:00:19.155640 2021] [slotmem_shm:error] [pid 138928:tid
140168396681856] (28)No space left on device: AH02611: create:
apr_shm_create(/var/run/apache2/slotmem-shm-pd38fd8d0_acc_example_org_6.shm)
failed
[Fri Aug 27 00:00:19.155679 2021] [:emerg] [pid 138928:tid
140168396681856] AH00020: Configuration Failed, exiting
[Fri Aug 27 00:05:01.645184 2021] [core:warn] [pid 166984:tid
140602886914688] AH00098: pid file /var/run/apache2/apache2.pid
overwritten -- Unclean shutdown of previous Apache run?
[Fri Aug 27 00:05:01.656692 2021] [mpm_event:notice] [pid 166984:tid
140602886914688] AH00489: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1j
configured -- resuming normal operations
[Fri Aug 27 00:05:01.656748 2021] [core:notice] [pid 166984:tid
140602886914688] AH00094: Command line: '/usr/sbin/apache2'

journalctl:
Aug 27 02:00:13 web01.example.org systemd[1]: Starting Rotate log files...
Aug 27 02:00:18 web01.example.org systemd[1]: Reloading The Apache HTTP Server.
Aug 27 02:00:18 web01.example.org systemd[1]: Reloaded The Apache HTTP Server.
Aug 27 02:00:18 web01.example.org systemd[1]: logrotate.service: Succeeded.
Aug 27 02:00:18 web01.example.org systemd[1]: Finished Rotate log files.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Main
process exited, code=exited, status=1/FAILURE
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 16 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 166489 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164446 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164448 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164450 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164452 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164454 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164456 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164458 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164459 (n/a) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164460 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164461 (n/a) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164462 (apache2) with signal SIGKILL.
Aug 27 02:00:19 web01.example.org systemd[1]: apache2.service: Killing
process 164463 (n/a) with sign

Misplaced packages?

2021-08-31 Thread Robert Spanjaard

Greetings Ubuntu Developers!

I was just browsing some sections in Synaptic, looking for lightweight 
webbrowsers and image gallery creation. During my browse I found some 
strange package placements:


w3m, a text based webbrowser, is placed in the section Word Processing
bluefish, a text editor, is placed in World Wide Web (multiverse)
florence, a virtual keyboard for X, is placed in World Wide Web (multiverse)

All on Ubuntu 20.04(.3).

--
Kind Regards,

Robert Spanjaard

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss