Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colord.service fails #3257

Open
Aqua1ung opened this issue Feb 2, 2025 · 6 comments
Open

colord.service fails #3257

Aqua1ung opened this issue Feb 2, 2025 · 6 comments
Labels

Comments

@Aqua1ung
Copy link

Aqua1ung commented Feb 2, 2025

Someone should look into this one please:

dad@DadsGram~ $ systemctl status colord.service
× colord.service - Manage, Install and Generate Color Profiles
     Loaded: loaded (/usr/lib/systemd/system/colord.service; static)
     Active: failed (Result: exit-code) since Sun 2025-02-02 11:24:54 EST; 1min 7s ago
    Process: 2998 ExecStart=/usr/libexec/colord (code=exited, status=1/FAILURE)
   Main PID: 2998 (code=exited, status=1/FAILURE)
        CPU: 14ms

I am guessing that this is not what should be happening. Or is it?

@bryteise
Copy link
Member

bryteise commented Feb 6, 2025

I'm unable to replicate the failure on my system. Any chance of more detailed logs?

@Aqua1ung
Copy link
Author

Aqua1ung commented Feb 7, 2025

dad@DadsGram~ $ sudo systemctl status colord.service
Password: 
× colord.service - Manage, Install and Generate Color Profiles
     Loaded: loaded (/usr/lib/systemd/system/colord.service; static)
     Active: failed (Result: exit-code) since Thu 2025-02-06 18:39:18 EST; 37mi>
    Process: 123277 ExecStart=/usr/libexec/colord (code=exited, status=1/FAILUR>
   Main PID: 123277 (code=exited, status=1/FAILURE)
        CPU: 21ms

Feb 06 18:39:18 DadsGram systemd[1]: Starting colord.service...
Feb 06 18:39:18 DadsGram colord[123277]: CdMain: failed to load mapping databas>
Feb 06 18:39:18 DadsGram systemd[1]: colord.service: Main process exited, code=>
Feb 06 18:39:18 DadsGram systemd[1]: colord.service: Failed with result 'exit-c>
Feb 06 18:39:18 DadsGram systemd[1]: Failed to start colord.service.

See also this thread.

@MarcusPro7
Copy link

MarcusPro7 commented Feb 10, 2025

I'm unable to replicate the failure on my system. Any chance of more detailed logs?

Hi William,

Christian and I are experiencing the same issue. After several attempts, I managed to find a solution.

$ls -l /var/lib/colord/
$sudo rm -f /var/lib/colord/*.db
$sudo chown -R colord:colord /var/lib/colord
$sudo chmod 755 /var/lib/colord
$sudo -u colord /usr/libexec/colord --verbose
11:58:19        Verbose debugging enabled (on console 1)
11:58:19        CdMappingDb: trying to open database '/var/lib/colord/mapping.db'
11:58:19        CdMappingDb: creating table to repair: no such table: mappings
11:58:19        CdMappingDb: altering table to convert: no such table: mappings_v2
11:58:19        CdDeviceDb: trying to open database '/var/lib/colord/storage.db'
11:58:19        CdDeviceDb: creating table to repair: no such table: devices
11:58:19        CdProfileDb: trying to open database '/var/lib/colord/storage.db'
free(): invalid pointer
Aborted

after reboot

$ systemctl status colord.service
● colord.service - Manage, Install and Generate Color Profiles
     Loaded: loaded (/usr/lib/systemd/system/colord.service; static)
     Active: active (running) since Mon 2025-02-10 11:58:42 CET; 11s ago
   Main PID: 746 (colord)
      Tasks: 5 (limit: 8494)
     Memory: 7.6M (peak: 8.0M)
        CPU: 66ms
     CGroup: /system.slice/colord.service
             └─746 /usr/libexec/colord

Feb 10 11:58:42 PT-IT02 systemd[1]: Starting colord.service...
Feb 10 11:58:42 PT-IT02 systemd[1]: Started colord.service.

I started from a clean installation in order to replicate the problem.

Installed version: 42950
6.13.1-1540.native

@bryteise
Copy link
Member

Looks like it got into a bad state for some reason. clearing out the state and restarting sounds reasonable and looks like it worked.

@Aqua1ung
Copy link
Author

Aqua1ung commented Feb 10, 2025

Looks like it got into a bad state for some reason. clearing out the state and restarting sounds reasonable and looks like it worked.

I am guessing that doing Marcus' fix won't interfere with whatever you guys decide to go with in order to fix this in newer releases, right? Can I apply his fix without having to worry that it might screw up colord in upcoming releases? (My guess is yes, but I thought I'd ask just to be on the safe side.)

@bryteise
Copy link
Member

Yea, go ahead. That's quite safe.

@ephut ephut removed the new label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants