Artix Linux Forum

Artix Linux => System => Topic started by: artik on 13 May 2020, 05:44:09

Title: [SOLVED] opentmp-files failed to start
Post by: artik on 13 May 2020, 05:44:09
I am getting the following error while booting,

Code: [Select]
ERROR: opentmp-files failed to start

However, the boot process doesn't stall and my system works file for my normal work (DB, development etc.,)

I ma running
Code: [Select]
artik 5.4.38-1
kernel and my system is up to date at the time of posting.

Could someone shed some light as to what is this and why is it fails? and How can I mitigate this?

Thanks in advance.
Title: Re: opentmp-files failed to start
Post by: artik on 13 May 2020, 05:53:25
I am getting the following error while booting,

Code: [Select]
ERROR: opentmp-files failed to start

However, the boot process doesn't stall and my system works file for my normal work (DB, development etc.,)

I ma running
Code: [Select]
artik 5.4.38-1
kernel and my system is up to date at the time of posting.

Could someone shed some light as to what is this and why is it fails? and How can I mitigate this?

Thanks in advance.

After surfing, I have learnt that it is an utility to process systemd-type tmpfiles.d. Now I am wondering how to check which application has got it installed as a dependency? Any suggestion/help would be much appreciated.
Title: Re: opentmp-files failed to start
Post by: alium on 13 May 2020, 08:19:08
hi, i am dont know, what is artik 5.4.38, maybe our kernel? package with name artik don't exist!

Code: [Select]
ERROR: opentmp-files failed to start

this provide our package 
Code: [Select]
opentmpfiles

see
Code: [Select]
pacman -Si opentmpfiles

and its starts at boot:
see

Code: [Select]
rc-status boot

put here your fstab please:
Code: [Select]
 cat /etc/fstab
Title: Re: opentmp-files failed to start
Post by: artik on 14 May 2020, 17:23:55
Yes you're correct. It is kernel.

rc-status boot
Code: [Select]
~~> rc-status boot
Runlevel: boot
 hwclock                                                                                            [  started  ]
 modules                                                                                            [  started  ]
 fsck                                                                                               [  started  ]
 root                                                                                               [  started  ]
 mtab                                                                                               [  started  ]
 swap                                                                                               [  started  ]
 localmount                                                                                         [  started  ]
 urandom                                                                                            [  started  ]
 hostname                                                                                           [  started  ]
 sysctl                                                                                             [  started  ]
 bootmisc                                                                                           [  started  ]
 net.lo                                                                                             [  started  ]
 termencoding                                                                                       [  started  ]
 keymaps                                                                                            [  started  ]
 procfs                                                                                             [  started  ]
 save-keymaps                                                                                       [  started  ]
 binfmt                                                                                             [  started  ]
 loopback                                                                                           [  started  ]
 save-termencoding                                                                                  [  started  ]
 opentmpfiles-setup                                                                                 [  stopped  ]
 elogind                                                                                            [  started  ]
 opensysusers                                                                                       [  started  ]

fstab:
Code: [Select]
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2 UUID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
LABEL=ROOT          /         ext4      rw,relatime 0 1

# /dev/sda3 UUID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
LABEL=HOME          /home     ext4      rw,relatime 0 2
Title: Re: opentmp-files failed to start
Post by: alium on 14 May 2020, 18:12:35
Deleted
Title: Re: opentmp-files failed to start
Post by: SGOrava on 14 May 2020, 19:07:44
opentmp-files handles systemd style tmpfiles configured in /usr/lib/tmpfiles.d/
Title: Re: opentmp-files failed to start
Post by: alium on 14 May 2020, 20:58:39
opentmp-files handles systemd style tmpfiles configured in /usr/lib/tmpfiles.d/
yes, but tmpfiles.d use  tmpfs and if not tmpfs present?
see https://wiki.archlinux.org/index.php/Tmpfs:  Temporary files in tmpfs directories can be recreated at boot by using tmpfiles.d.

@artik:
try add to etc/fstab:
Code: [Select]
tmpfs   /tmp         tmpfs   nodev,nosuid,size=2G          0  0

and restart the computer. Maybe that help.
Title: Re: opentmp-files failed to start
Post by: SGOrava on 14 May 2020, 21:18:09
see https://wiki.archlinux.org/index.php/Tmpfs:  Temporary files in tmpfs directories can be recreated at boot by using tmpfiles.d.

@artik:
try add to etc/fstab:
Code: [Select]
tmpfs   /tmp         tmpfs   nodev,nosuid,size=2G          0  0

and restart the computer. Maybe that help.

Yes, but why for such a think would you need to mount /tmp as tmpfs ?
The relevant link should be https://wiki.archlinux.org/index.php/Systemd#Temporary_files

I think that what is happening is that there is some unsupported option in some config file in tmpfiles.d directory.
A while ago I had problem with postgresql package which had such option is the config file and opentmpfiles refused to start.
here it would be good to get some debug or verbose output from failing service or directly from script.
Without debug output the only solution I see is to try to remove all configs from tmpfiles.d and check if the service start and that add some config files and check again...
Title: Re: opentmp-files failed to start
Post by: alium on 14 May 2020, 21:26:12
enabled tmpfs is always good, regardless of working or non-working opentmpfiles :)

it can be as you say.
i advise to turn on tmpfs anyway. it can't hurt anything. I try go from simpler to more complex things
Title: Re: opentmp-files failed to start
Post by: artik on 15 May 2020, 08:33:22
yes, but tmpfiles.d use  tmpfs and if not tmpfs present?
see https://wiki.archlinux.org/index.php/Tmpfs:  Temporary files in tmpfs directories can be recreated at boot by using tmpfiles.d.

@artik:
try add to etc/fstab:
Code: [Select]
tmpfs   /tmp         tmpfs   nodev,nosuid,size=2G          0  0

and restart the computer. Maybe that help.

Thanks for the suggestion. I have modified my fstab as suggested and rebooted the system.  However, I still get the ERROR message and my `rc-status boot` spits the following output (essentially no change)
Code: [Select]
~~> rc-status boot
Runlevel: boot
 hwclock                                                                                            [  started  ]
 modules                                                                                            [  started  ]
 fsck                                                                                               [  started  ]
 root                                                                                               [  started  ]
 mtab                                                                                               [  started  ]
 swap                                                                                               [  started  ]
 localmount                                                                                         [  started  ]
 urandom                                                                                            [  started  ]
 hostname                                                                                           [  started  ]
 sysctl                                                                                             [  started  ]
 bootmisc                                                                                           [  started  ]
 net.lo                                                                                             [  started  ]
 termencoding                                                                                       [  started  ]
 keymaps                                                                                            [  started  ]
 procfs                                                                                             [  started  ]
 save-keymaps                                                                                       [  started  ]
 binfmt                                                                                             [  started  ]
 loopback                                                                                           [  started  ]
 save-termencoding                                                                                  [  started  ]
 opentmpfiles-setup                                                                                 [  stopped  ]
 elogind                                                                                            [  started  ]
 opensysusers                                                                                       [  started  ]

Now I have upgraded my kernel to `5.4.40-1-lts` but still the problem persists indicating this is nothing to do with kernel and to do with some package that needs systemd as dependency.

How can I figure out which application needs this package? Any other suggestions?
Title: Re: opentmp-files failed to start
Post by: SGOrava on 15 May 2020, 08:43:43
Run this command and post the output here:
Code: [Select]
tmpfiles --exclude-prefix=/dev --boot --create --remove --verbose --dry-run
This is the command use by the opentmpfiles-setup "/etc/init.d/opentmpfiles-setup"
I added --verbose for more details and --dry-run to only simulate things.
Title: Re: opentmp-files failed to start
Post by: a_manthey on 17 May 2020, 11:10:03
perhaps this helps if postgresql is installed:
https://forum.artixlinux.org/index.php/topic,1321.0.html (https://forum.artixlinux.org/index.php/topic,1321.0.html)
Title: Re: opentmp-files failed to start
Post by: artik on 23 May 2020, 05:51:13
Hi all,

The error doesn't appear anymore during the boot process after the recent update. Thanks all for the suggestion and help.
Title: Re: opentmp-files failed to start
Post by: alium on 23 May 2020, 15:28:36
please marke this as solved. thx.