Systemd-journald found left-over process

this is the second time, in the last two weeks, that I got the error that systemd-journald found left-over process.

the server tries to kill the process ( 30 or more) but states that the processes are still around after sigkill.
then tries to restart the journal service and fails.
then again tries to kill what appears to be the same processes
the server does not respond to any keyboard input ( ctl alt del – ctl C , enter , etc)
I have to power down the server to get it to reboot.

not sure what the issue is or where to look
note: I did change the hostname ( saw the one person mentioned that it could be the issue )
I changed both the hostname and hosts file, sometime back in early November , so i’m not sure if that is the issue here.

system info: if needed
Dell optiplex 360
Processor ,E7400, 2.8 ,3MB Wolfdale

Tim

Not enough Information for me to suggest anything.

  1. Is it just the server that tries to kill those process’s?

Or is it you trying? Have you read through “man systemd.kill”

  1. Have you looked @sudo hostnamectl, and is it correct?

  2. Also is anything running that is not necessary?

systemctl list-units --type=service --state=running

Logs would be helpful, the relevant parts at least.

dmesg and journalctl

1fallen ;

  1. the server is killing the processes
  2. the hostnamectl matches what’s in the host and hostname
  3. after rebooting these are what processes the server is running
    UNIT LOAD ACTIVE SUB DESCRIPTION
    apache2.service loaded active running The Apache HTTP Server
    cron.service loaded active running Regular background program processing daemon
    dbus.service loaded active running D-Bus System Message Bus
    getty@tty1.service loaded active running Getty on tty1
    irqbalance.service loaded active running irqbalance daemon
    ModemManager.service loaded active running Modem Manager
    multipathd.service loaded active running Device-Mapper Multipath Device Controller
    mysql.service loaded active running MySQL Community Server
    networkd-dispatcher.service loaded active running Dispatcher daemon for systemd-networkd
    nmbd.service loaded active running Samba NMB Daemon
    polkit.service loaded active running Authorization Manager
    rsyslog.service loaded active running System Logging Service
    smbd.service loaded active running Samba SMB Daemon
    snapd.service loaded active running Snap Daemon
    ssh.service loaded active running OpenBSD Secure Shell server
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running User Login Management
    systemd-networkd.service loaded active running Network Configuration
    systemd-resolved.service loaded active running Network Name Resolution
    systemd-timesyncd.service loaded active running Network Time Synchronization
    systemd-udevd.service loaded active running Rule-based Manager for Device Events and Files
    udisks2.service loaded active running Disk Manager
    unattended-upgrades.service loaded active running Unattended Upgrades Shutdown
    user@1000.service loaded active running User Manager for UID 1000

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
24 loaded units listed.

note:
i’m also trying to setup and run a PHP/Html website, which is why apache2 is listed, also it is the last package I install , it was installed about 12/20/24. the website is not running due to an php issue ( "request can not be processed) . so I removed all the PHP code from the pages and tested the HTML only code and it loaded the page without issue.

  1. If I’m to use
    systemctl list-units --type=service --state=running
    when the error are being displayed , I can’t , no keyboard response while the server is trying to kill the processes

Tim

rubi1200 ;

what should I be looking for?
I ran journalctl and dmesg and can see some lines that look like errors
firmware space is locked read-only … RNG try using ‘no_fwh_detect’ option
some lines about snap auto-import /dev/dm-0 or sda1 or sda2 failed with exit code 1

sudo dmesg | grep failed

And possibly this:

systemctl list-units --type=service --state=failed

Your Host Name seems Ok, no issues there.
I see the same with " snap auto-import /dev/" but i don’t use snaps, so I’m no help there. Nor do I think it is related to your thread topic. :slight_smile:

Will wait to see your “dmesg” return though.

Also what path was you using for “PHP” something like this:

http://localhost/path/to/your.php

since I had to reboot the server , i’m not seeing anything from either

sudo dmesg | grep failed – returned nothing

sudo systemctl list-units --type=service --state=failed – returned 0 loaded units listed.

also I only mentioned the PHP issue in case it applied to this issue.

Yep I know we just need to find why your seeing “left-overs”

Would not hurt to check this:

journalctl --disk-usage

journalctl --disk-usage returned Archived and active journals take up to 88.0m in file system.

That’s not bad, is it still going on “left-over process”?
I can’t help but wonder about PHP though…That’s a tough one to nail down though.

as to “left-over process” - no, it has been fine since I post this (on 10/29/24) it seem to show up after several days of running.

But,
I have a new error sometime after I ran the journalctl --disk-usage command. ( sometime after 1/2/24)
not sure when these showed up
‘uhci_hcd 0000:00:id1 host controller process error’
‘uhci_hcd 0000:00:id1host controller halted’
‘uhci_hcd 0000:00:id1HC died cleaning up’

the system is not responding to any keyboard Input (directly connected) but I’m able to get access to the shares on the server , and load and review data on the MySql database (also on the server) from my Windows PC

I don’t have a terminal app on my Windwos pc, but I’m going to see if I can install one and see if I can run the sudo systemctl list-units --type=service --state=failed

Seems your USB controller fell flat on its face here …
Do you have anything attached to it that could drain a lot of power (i.e. an un-powered HUB and a rotary disk) or some such so it might go into a power shortage ?

1 Like

ogra:

yep , the usb did fall on it face.

as a test I moved the keyboard to another usb port and I’m now able to it to review the Logs

one of then shows that usb 3-1: usb disconnect device number 2 .

added: as to possible power usage:
the server only has 2 sata HD, 1 sata Dvd.
no internal cards at all.
the keyboard, monitor and rj45 network cable are connected to motherboard.

1Fallen:

it looks like the same host controller error occurred on 10/28. when I rebooted the server because the keyboard did not respond.

also the seem that the PHP clean session runs every 10 minutes.

I think i’ll try uninstalling PHP and Apache to see if that stops the error, all thought that error has not occurred since.

Note: this server has run Ubuntu since version ? what ever version was around in 2009? ( maybe 8. ? )and did an inplace upgrade from that to version 20., but I did a clean install of 22.04 this year.

I’m super curious now if that helps…I guess time will tell all.

This is very odd to me anyway “that the PHP clean session runs every 10 minutes.”

More than a few have had problems with upgrading…Fingers Crossed.