Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index» Installation» [SOLVED] Local mail issue after upgrading from Beowulf to Chimaera
- Pages:1Post reply
- #12022-03-04 23:45:18
- Marjorie
- Member
- From: Teignmouth, UK
- Registered: 2019-06-09
- Posts: 129
- Email
- I've just upgraded my desktop PC and my mail server from Beowulf to Chimaera following the Devuan guide on how to do this and having checked the Release Notes first.
- Both upgrades largely went well. The mail server, that was updated over ssh continued running through the update. One omission from the Guide is what to do if you need contrib and non-free as well an main: I did the upgrade with the sources list as described in the guide then repeated with the augmented sources.
- I did have some small problems with apache php, where 7.4 was installed by the upgrade but 7.3, which wasn't, was the one enabled. This temporarily borked my web server. Also an issue with directory ownership for chrony, where I needed to identify an apparmor config. change that I had missed as I had stayed with my (amended) old Beowulf apparmor config. instead.
- Unattended upgrades inherits a Debian config, which I needed to correct so that it will install devuan-security upgrades instead.
- Anyway the problem I still have is with reading my local mail (var/mail/marjorie) on my desktop PC. I use local mail to check any root messages from anacron, unattended upgrades, apt-listchanges, etc.
- On my mail server I can log in via ssh and then use mutt. Everything works OK, as before.
- On my desktop PVC I have one of my evolution mail accounts set up to read local mail . This worked fine on Beowulf. On Chimaera I can read the headers but when I try and open a message it complains
- Unable to retrieve message. Could not lock “/var/mail/marjorie”
- I get a similar error message when it tries to refresh the folder.
- If I start mutt then I can see the headers but if I try and open a message it complains
- Could not create temporary file!
- I can't see any differences between the relevant directory or file ownership or permissions between the two computers.
- I'm using postfix as my local mta.
- Any help in sorting this would be appreciated.
- Last edited by Marjorie (2022-03-04 23:46:19)
- Offline
- Report Quote
- #22022-03-06 13:53:20
- Marjorie
- Member
- From: Teignmouth, UK
- Registered: 2019-06-09
- Posts: 129
- Email
- The problem with mutt is now solved. The problem with evolution isn't.
- When displaying or composing emails the most recent version of mutt need to store temporary files in /var/tmp. It used to store them in /tmp, and that is what it still tells you if you look at the man page. On my PC, but not on my mail server the file permissions for /var/tmp were wrong (40755 not 41777). Correcting this solved the problem with mutt.
- I still have no solution as to why my evolution mail user agent is unable to open my local mbox mail file (/var/mail/[myusername]), reporting a locking error instead.
- Offline
- Report Quote
- #32022-03-06 18:20:37
- Altoid
- Member
- Registered: 2017-05-07
- Posts: 1,037
- Email
- Hello:
- Marjorie wrote:
- The problem with evolution isn't.
- You may want to try disabling apparmor temporarily to see if the problem subsists.
- I also found this post which may have the answer (or some indication) as to how to solve the problem you are having.
- https://github.com/netblue30/firejail/issues/3478
- Cheers,
- A.
- Offline
- Report Quote
- #42022-03-06 22:19:26
- Marjorie
- Member
- From: Teignmouth, UK
- Registered: 2019-06-09
- Posts: 129
- Email
- Hi Altoid. Thanks for the suggestion.
- I had considered apparmor as a possible cause as I've previously had to modify apparmor profiles that were too restrictive in the past.
- However I had checked the list of loaded apparmor profiles and they didn't include one for evolution. I also found the github firejail discussion, but again I wasn't using firejail to confine evolution (albeit the firejail profile is loaded).
- What I hadn't done is actually stop apparmor to check if that was the cause of the problem.
- Unfortunately the problem persists even when I stop apparmor.
- Does anyone have evolution working in Chimaera and it reading their local mbox files OK?
- As it did work in evolution in Beowulf (3.30.5-1.1) and it doesn't now in Chimaera ( 3.38.3-1) I wonder if it could be a regression in this version of evolution.
- I'm aware there is another problem with this version (syncing with google contact/calendar) that is allegedly fixed in the version in Debian testing ( 3.43.2-2).
- Last edited by Marjorie (2022-03-06 22:20:28)
- Offline
- Report Quote
- #52022-03-07 11:05:24
- Altoid
- Member
- Registered: 2017-05-07
- Posts: 1,037
- Email
- Hello:
- Marjorie wrote:
- Thanks ...
- You're welcome.
- Marjorie wrote:
- ... had considered apparmor as a possible cause ...
- ... didn't include one for evolution.
- ... wasn't using firejail to confine evolution ...
- ... problem persists even when I stop apparmor.
- I see.
- From my limited understanding of the problem at hand, there is something (could be a bug) that is not allowing access to your mailbox.
- My gut tells me that the issue is like the one that was affecting mutt.
- Maybe there's something in the /var/log/auth file that could be of use.
- Is there a log file for evolution you could look at?
- I've seen that version 3.2.3 has/had a debug setting you can enable to start it from the command line:
- See: https://askubuntu.com/questions/301665/ … -a-logfile
- I do not use apparmor or any of the other 'security' applications like tomoyo that are quietly enabled by default (!) in Linux these days, so my kernel command line includes security=none apparmor=0.
- You may want to try adding the same stanza at boot time to see if it has any effect as as well as temporarily disabling firejail while you are at it.
- Hope that helps, can't think of anything else.
- Best,
- A.
- EDIT:
- It would seem that it's a bug ...
- https://bugs.debian.org/cgi-bin/bugrepo … 1006603#10
- ... albeit with a temporary workaround:
- post #10 wrote:
- Probably the same as https://bugs.debian.org/cgi-bin/bugrepo … ug=1004484
- which points to the possible problem source and also a temporary solution.
- Best,
- A.
- Last edited by Altoid (2022-03-08 01:14:20)
- Offline
- Report Quote
- #62022-03-08 20:51:22
- Marjorie
- Member
- From: Teignmouth, UK
- Registered: 2019-06-09
- Posts: 129
- Email
- I never did get to the bottom of the inability of Evolution to get a lock on the /var/mail/marjorie Mbox folder after the Chimaera upgrade.
- However I have solved the problem, by moving my local mail from Mbox to Maildir format and configuring Postfix, Mutt and Evolution to use it. As it stores individual emails in separate files, Maildir doesn't need file locking.
- As a mail storage solution Mbox is of course obsolete, however it was what was installed, I think by default, when I first installed Ascii and at that point it did work with both Evolution and Mutt without the file locking issues so I never bothered to change it.
- Converting to Maildir was pretty simple, once I had tracked down how to do it.
- However I remain a bit puzzled why the Debian/Devuan installation defaults local mail to use mbox.
- Last edited by Marjorie (2022-03-08 20:54:04)
- Index» Devuan» Something strange happens to OpenRC after upgrade to Chimaera
- Pages:1Post reply
- #12022-02-17 18:03:26
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- I have added echo $PATH manually to the /lib/rc/sh/supervise-daemon.sh
- root@kube:~# service k3s restart
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/lib/rc/bin/
- /lib/rc/sh/supervise-daemon.sh: line 26: ebegin: command not found
- /lib/rc/sh/supervise-daemon.sh: line 52: eend: command not found
- * ERROR: k3s failed to start
- root@kube:~# ls /lib/rc/bin/ebegin
- /lib/rc/bin/ebegin
- Also I get a message about missing shell_var (/lib/rc/bin/shell_var) during booting the system.
- root@kube:~# dpkg -al | grep openrc
- ii openrc 0.42-2.1 amd64 dependency based service manager (runlevel change mechanism)
- Why rc scripts cannot find binaries from /lib/rc/bin/ ?
- Last edited by bimon (2022-02-17 18:05:00)
- Offline
- Report Quote
- #22022-02-18 17:09:36
- chris2be8
- Member
- Registered: 2018-08-11
- Posts: 138
- Run ls -l /lib/rc/bin/ebegin and check if it's marked executable. If it's a symlink to somewhere run ls -l against the destination (repeat until you reach the end if that's a symlink too). Post full output here if you can't understand it.
- Then run file /lib/rc/bin/ebegin to see what it is. If it's some kind of script look at the first line of it to see which interpreter it's trying to use. And check that exists. Trying to run a script that tries to use an interpreter that does not exist might produce that message.
- Also look at /lib/rc/sh/supervise-daemon.sh to see if it's changing the path anywhere relevant. And post lines 26 and 52 from it here if you are not sure what they are trying to do.
- Chris
- Offline
- Report Quote
- #32022-02-19 23:58:22
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- Thank you very much for trying to help me.
- root@kube:~# file /lib/rc/bin/ebegin
- /lib/rc/bin/ebegin: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=06fede7e085916fa8a23de855fd26a1dbaaf2227, for GNU/Linux 3.2.0, stripped
- root@kube:~# ls -al /lib/rc/bin/ebegin
- -rwxr-xr-x 1 root root 35496 Apr 2 2021 /lib/rc/bin/ebegin
- Offline
- Report Quote
- #42022-02-20 00:01:20
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- root@kube:~# head -n 60 /lib/rc/sh/supervise-daemon.sh
- # start / stop / status functions for supervise-daemon
- # Copyright (c) 2016 The OpenRC Authors.
- # See the Authors file at the top-level directory of this distribution and
- # https://github.com/OpenRC/openrc/blob/master/AUTHORS
- #
- # This file is part of OpenRC. It is subject to the license terms in
- # the LICENSE file found in the top-level directory of this
- # distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
- # This file may not be copied, modified, propagated, or distributed
- # except according to the terms contained in the LICENSE file.
- extra_commands="healthcheck unhealthy ${extra_commands}"
- supervise_start()
- {
- if [ -z "$command" ]; then
- ewarn "The command variable is undefined."
- ewarn "There is nothing for ${name:-$RC_SVCNAME} to start."
- return 1
- fi
- ebegin "Starting ${name:-$RC_SVCNAME}"
- # The eval call is necessary for cases like:
- # command_args="this \"is a\" test"
- # to work properly.
- eval supervise-daemon "${RC_SVCNAME}" --start \
- ${retry:+--retry} $retry \
- ${directory:+--chdir} $directory \
- ${chroot:+--chroot} $chroot \
- ${output_log+--stdout} ${output_log} \
- ${error_log+--stderr} $error_log \
- ${pidfile:+--pidfile} $pidfile \
- ${respawn_delay:+--respawn-delay} $respawn_delay \
- ${respawn_max:+--respawn-max} $respawn_max \
- ${respawn_period:+--respawn-period} $respawn_period \
- ${healthcheck_delay:+--healthcheck-delay} $healthcheck_delay \
- ${healthcheck_timer:+--healthcheck-timer} $healthcheck_timer \
- ${command_user+--user} $command_user \
- ${umask+--umask} $umask \
- ${supervise_daemon_args:-${start_stop_daemon_args}} \
- $command \
- -- $command_args $command_args_foreground
- rc=$?
- if [ $rc = 0 ]; then
- [ -n "${chroot}" ] && service_set_value "chroot" "${chroot}"
- [ -n "${pidfile}" ] && service_set_value "pidfile" "${pidfile}"
- fi
- eend $rc "failed to start ${name:-$RC_SVCNAME}"
- }
- supervise_stop()
- {
- local startchroot="$(service_get_value "chroot")"
- local startpidfile="$(service_get_value "pidfile")"
- chroot="${startchroot:-$chroot}"
- pidfile="${startpidfile:-$pidfile}"
- ebegin "Stopping ${name:-$RC_SVCNAME}"
- supervise-daemon "${RC_SVCNAME}" --stop \
- ${pidfile:+--pidfile} $chroot$pidfile
- Offline
- Report Quote
- #52022-02-20 17:40:24
- chris2be8
- Member
- Registered: 2018-08-11
- Posts: 138
- I don't have OpenRC on my system so I'm just guessing here.
- Try reading the man pages for ebegin and eend (if they have them) to see what they should do.
- Try calling them directly (passing ebegin a suitable message as a parameter). Do they work?
- The part of the script you posted defines a function the script will call further on. Does it change the PATH before calling it?
- Does anyone who has OpenRC installed have any suggestions? Even just to say it works for them.
- And one last thought, are you on a x86-64 CPU? x86-64 won't work on ARM etc.
- Chris
- Offline
- Report Quote
- #62022-02-20 18:10:42
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- chris2be8 wrote:
- Does anyone who has OpenRC installed have any suggestions? Even just to say it works for them.
- And one last thought, are you on a x86-64 CPU? x86-64 won't work on ARM etc.
- Chris
- I have another installation of Chimaera where OpenRC works very fine.
- root@chimaera:~# service k3s restart
- * Starting k3s ...
- Offline
- Report Quote
- #72022-02-20 18:46:20
- Head_on_a_Stick
- Member
- From: London
- Registered: 2019-03-24
- Posts: 2,297
- Email
- chris2be8 wrote:
- Try reading the man pages for ebegin and eend (if they have them) to see what they should do.
- They just provide status messages for startup and rc-status.
- The OP has clearly been modifying their system in various ways because I can't get the k3s service running under OpenRC without changing the source bashism to .. Since they can't be bothered telling us what they have done to either of their systems or even share more information about this k3s service I really can't be bothered digging deeper...
- To obtain a root shell use su -. Using just su will result in "command not found" messages.
- Offline
- Report Quote
- #82022-02-20 19:40:03
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- Can you please suggest a light Kubernetes distribution which works fine on Devuan?
- My experience with k0s on Chimaera is even worse than with k3s sad
- I just need to learn and experiment and may be use it for a light (not HL) hosting service.
- Even Minikube looks like a too heavy for me since it requires 2 cores and 2 Gb of RAM which does not fit a small VPS.
- May be kind ?
- https://kind.sigs.k8s.io/
- Last edited by bimon (2022-02-20 19:59:49)
- Offline
- Report Quote
- #92022-02-21 04:58:01
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- I was able to start k0s on both Beowulf and Chimaera.
- On both I had to rename networking service to net, not sure if it is wrong for something else, but at least it makes k0s working.
- cd /etc/init.d; mv networking net
- rc-update add net
- On Beowulf I then was able just to issue the command:
- service k0s start
- But on Chimaera I had to use commands:
- rc-service -s k0scontroller stop
- and
- rc-service -S k0scontroller start
- And still get some warning like:
- root@chimaera:/etc/init.d# rc-service -S k0scontroller start
- * Caching service dependencies ... [ ok ]
- Configuring network interfaces...warning: vrf: cache v6: cmd '/bin/ip -6 rule show' failed: returned 255 (RTNETLINK answers: Address family not supported by protocol
- Dump terminated
- )
- done.
- I have disabled IPv6 on that host.
- Last edited by bimon (2022-02-23 01:08:13)
- Offline
- Report Quote
- #102022-02-21 05:00:39
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- Anyway k0s at least starts now:
- root@chimaera:/# pstree
- init─┬─agetty
- ├─anacron───run-parts───apt-compat───sleep
- ├─containerd-shim─┬─kube-router───9*[{kube-router}]
- │ ├─pause
- │ └─11*[{containerd-shim}]
- ├─containerd-shim─┬─kube-proxy───8*[{kube-proxy}]
- │ ├─pause
- │ └─11*[{containerd-shim}]
- ├─containerd-shim─┬─metrics-server───8*[{metrics-server}]
- │ ├─pause
- │ └─10*[{containerd-shim}]
- ├─containerd-shim─┬─coredns───9*[{coredns}]
- │ ├─pause
- │ └─10*[{containerd-shim}]
- ├─cron
- ├─2*[dbus-daemon]
- ├─dbus-launch
- ├─dhclient───3*[{dhclient}]
- ├─elogind-daemon
- ├─6*[getty]
- ├─jitterentropy-r
- ├─matchbox-deskto───16*[{matchbox-deskto}]
- ├─qasmixer───14*[{qasmixer}]
- ├─sshd───sshd───bash───pstree
- ├─supervise-daemo───k0s─┬─containerd───13*[{containerd}]
- │ ├─kine───226*[{kine}]
- │ ├─kube-apiserver───16*[{kube-apiserver}]
- │ ├─kube-controller───13*[{kube-controller}]
- │ ├─kube-scheduler───9*[{kube-scheduler}]
- │ ├─kubelet───15*[{kubelet}]
- │ └─30*[{k0s}]
- ├─udevd
- └─vncserver─┬─Xtigervnc───12*[{Xtigervnc}]
- └─jwm
- Offline
- Report Quote
- #112022-02-21 05:23:09
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- Another Chimaera based host with name kube is unfortunately still broken, OpenRC displays already mentioned errors about missing /lib/rc/bin/ files even during boot process and not related to Kubernetes at all.
- How can I find the reason comparing kube and ice hosts? (both with Chimaera installed on them).
- Which areas shell I compare? Btw, debsums do not find any problems with integrity.
- I used command:
- wajig integrity
- for the verification.
- Last edited by bimon (2022-02-21 05:24:32)
- Offline
- Report Quote
- #122022-02-21 17:01:31
- chris2be8
- Member
- Registered: 2018-08-11
- Posts: 138
- Check running ebegin and eend manually work. Then call them from a small dummy script as a double check.
- Look at /lib/rc/sh/supervise-daemon.sh to see if it's changing the PATH anywhere relevant.
- Temporarily add echo $PATH to it just before it calls ebegin. Compare with what you get by adding echo $PATH to the start of the script.
- If PATH gets changed then work out where it gets changed by adding echo $PATH at suitable places.
- If all else fails post the whole of the original version of /lib/rc/sh/supervise-daemon.sh here to let someone who knows shell scripting look at it.
- Chris
- Offline
- Report Quote
- #132022-02-22 02:27:58
- zapper
- Member
- Registered: 2017-05-29
- Posts: 432
- Email
- I was going to say never had a problem with openrc before even when Chimaera came out, but I just read more carefully...
- wink
- But anyways...
- I wonder what changed since Beowulf to cause such an issue to the op...
- Hmm...
- Aka:
- Kubernetes
- Btw, never used the light version or the other one.
- Also, looked it up, not sure what would be a good replacement even looking it up on wikipedia.org...
- Last edited by zapper (2022-02-22 02:30:56)
- Black Lives Matter! I am white, but I prefer equality over hatred.
- Haughtiness comes before a fall, pride before destruction.
- Peace be with you!
- No one can serve two masters. Either you will hate the one and love the other, or you will be devoted to the one and despise the other. You cannot serve both God and mammon!
- Offline
- Report Quote
- #142022-02-23 01:19:18
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- I have tried a simple test script:
- root@kube:/download# cat test.sh
- export set PATH=$PATH:/lib/rc/bin;
- echo $PATH;
- ebegin hello
- eend hello
- root@kube:/download# sh test.sh
- /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/lib/rc/bin
- * hello ...
- * hello
- Some more tests on problematic host kube:
- root@kube:/etc/init.d# /etc/init.d/k0scontroller restart
- * Caching service dependencies ...
- /lib/rc/sh/rc-functions.sh: line 117: shell_var: command not found
- * Found a solvable dependency loop: mountall-bootclean.sh p> mountall-bootclean u> zfs-import a> checkfs n> mountall.sh p> mountall n> mountall-bootclean.sh.
- * Solving the loop by breaking mountall-bootclean u> zfs-import.
- * Found a solvable dependency loop: mountall.sh p> mountall u> zfs-import a> checkfs n> mountall.sh.
- * Solving the loop by breaking mountall u> zfs-import. [ ok ]
- Starting hot-plug events dispatcher: udevd1 ... (warning).
- Waiting 15 seconds and trying to continue anyway ... (warning).
- Synthesizing the initial hotplug events (subsystems)...done.
- Synthesizing the initial hotplug events (devices)...done.
- Waiting for /dev to be fully populated...done.
- Starting boot logger: bootlogdActivating swap...done.
- Checking file systems...setterm: terminal xterm-256color does not support --msg
- setterm: terminal xterm-256color does not support --msg
- done.
- Cleaning up temporary files... /tmp.
- Mounting local filesystems...done.
- Activating swapfile swap, if any...done.
- Cleaning up temporary files....
- Configuring network interfaces...done.
- So: /lib/rc/sh/rc-functions.sh: line 117: shell_var: command not found
- Continuation of the execution is in the next code fragment, please pay your attention to the "system which openrc did not boot."
- Actually I had some problems with OpenRC after upgrade, I even could not boot to any run-level, only to something like Ctrl-D (is it level 1?). So I had to install sysv-rc at first, reboot and then reinstall OpenRC once again.
- But after second install debsums integrity check passes fine, does not it mean all files installed correctly? Then why I still have no OpenRC from the point of view of k0s for example? It seems like it is not completely working OpenRC, even during boot it displays an error about something like above:
- /lib/rc/sh/rc-functions.sh: line 117: shell_var: command not found
- * You are attempting to run an openrc service on a
- * system which openrc did not boot.
- * You may be inside a chroot or you may have used
- * another initialization system to boot this system.
- * In this situation, you will get unpredictable results!
- * If you really want to do this, issue the following command:
- * touch /run/openrc/softlevel
- * ERROR: k0scontroller failed to start
- Last edited by bimon (2022-02-23 01:27:56)
- Offline
- Report Quote
- #152022-02-23 01:48:10
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- I have added echo $PATH before shell_var command:
- root@kube:/download# service k0scontroller restart
- * Caching service dependencies ...
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- /lib/rc/sh/rc-functions.sh: line 118: shell_var: command not found
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- /lib/rc/sbin:/lib/rc/bin:/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- * Found a solvable dependency loop: mountall-bootclean.sh p> mountall-bootclean u> zfs-import a> checkfs n> mountall.sh p> mountall n> mountall-bootclean.sh.
- * Solving the loop by breaking mountall-bootclean u> zfs-import.
- * Found a solvable dependency loop: mountall.sh p> mountall u> zfs-import a> checkfs n> mountall.sh.
- * Solving the loop by breaking mountall u> zfs-import. [ ok ]
- * You are attempting to run an openrc service on a
- * system which openrc did not boot.
- * You may be inside a chroot or you may have used
- * another initialization system to boot this system.
- * In this situation, you will get unpredictable results!
- * If you really want to do this, issue the following command:
- * touch /run/openrc/softlevel
- * ERROR: k0scontroller failed to start
- As you can see above one call for some reason missed the path:
- /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- /lib/rc/sh/rc-functions.sh: line 118: shell_var: command not found
- Last edited by bimon (2022-02-23 01:48:50)
- Offline
- Report Quote
- #162022-02-23 02:18:49
- bimon
- Member
- Registered: 2019-09-09
- Posts: 167
- Email
- Well, I have uninstalled some service like SafeNET cryptography and now the problem seems to disappear.
- On the other hand it worked in the previous version of Devuan Beowulf from which I have upgraded this host.
- Actually there were many warnings displayed about something wrong in SafeNET service LSB specifications even on Beowulf, but at least it worked ...
- The SafeNET software is obsolete about 5-10 years old.
- Last edited by bimon (2022-02-23 02:19:46)
- Index» Installation» [SOLVED] Permissions for script in cron
- Pages:Previous 1 2 3
- #512021-04-01 13:32:24
- ralph.ronnquist
- Administrator
- From: Clifton Hill, Victoria, AUS
- Registered: 2016-11-30
- Posts: 690
- Once done, how should I test that everything is working properly?
- One confirmation would be that your fstrim logging shows up.
- A manual forced test would be like before, i.e. if live-config is uninstalled, then
- sudo /usr/sbin/anacron -s -d -n -f
- should be telling about running the cron.{daily,weekly,monthly} jobs.
- Offline
- #522021-04-01 13:56:31
- Altoid
- Member
- Registered: 2017-05-07
- Posts: 1,045
- Hello:
- ralph.ronnquist wrote:
- One confirmation would be that your fstrim logging shows up.
- ... manual forced test would be like before, i.e. if live-config is uninstalled, then ...
- sudo /usr/sbin/anacron -s -d -n -f
- ... should be telling about running the cron.{daily,weekly,monthly} jobs.
- Right.
- I'll do all that and report back, hopefully marking this long thread as [Solved].
- ----
- Edit:
- Done.
- No more /usr/sbin/anacron --> /bin/true
- groucho@devuan:~$ ls -l /usr/sbin/anacron.orig.anacron
- -rwxr-xr-x 1 root root 34832 May 19 2019 /usr/sbin/anacron.orig.anacron
- groucho@devuan:~$
- groucho@devuan:~$
- dpkg -S anacron.orig.anacron
- diversion by live-config from: /usr/sbin/anacron
- diversion by live-config to: /usr/sbin/anacron.orig.anacron
- groucho@devuan:~$
- groucho@devuan:~$ ls -l /usr/sbin/anacron
- lrwxrwxrwx 1 root root 20 Apr 1 11:06 /usr/sbin/anacron -> anacron.orig.anacron
- groucho@devuan:~$
- groucho@devuan:~$ dpkg -S /usr/sbin/anacron
- diversion by live-config from: /usr/sbin/anacron
- diversion by live-config to: /usr/sbin/anacron.orig.anacron
- anacron: /usr/sbin/anacron
- groucho@devuan:~$
- I have purged it but I see that the diversion by live-config is still there.
- How to go back to the 'original' pre-live-config configuration?
- It seems to be working. 8^D!
- groucho@devuan:~$
- groucho@devuan:~$ sudo /usr/sbin/anacron -s -d -n -f
- [sudo] password for groucho:
- Anacron 2.3 started on 2021-04-01
- Job `cron.daily' locked by another anacron - skipping
- Job `cron.weekly' locked by another anacron - skipping
- Job `cron.monthly' locked by another anacron - skipping
- Normal exit (0 jobs run)
- groucho@devuan:~$
- groucho@devuan:~$
- ----
- Once done, who/where would I have to report this problem to?
- Does not seem to originate inrefractainstaller-base, more like in the required live-config.
- Or is it related to the bug report I linked to?
- Don't think is would be a good thing just to leave it be. (?)
- Thank you very much for the time and effort you put into solving this problem for me.
- Really appreciate it.
- Best,
- A.
- Last edited by Altoid (2021-04-01 14:34:40)
- Offline
- #532021-04-01 15:48:54
- fsmithred
- Administrator
- Registered: 2016-11-25
- Posts: 2,068
- uh-oh...
- I haven't been paying close attention to this thread.
- live-config messes with anacron via the live-config script, /lib/live/config/1110-anacron which uses dpkg-divert to disable anacron. This is useful in a live-CD where everything is read-only.
- This only activates when you boot into a live system, not an installed system.
- Refractainstaller copies the RUNNING live system to hard drive.
- You just uncovered a 10-year-old bug that I didn't know about. The installer needs to undo this during the installation.
- I suspect that the right way to undo it is to use dpkg-divert.
- # ls -l /usr/sbin/anacron*
- lrwxrwxrwx 1 root root 9 Apr 2 2018 /usr/sbin/anacron -> /bin/true
- -rwxr-xr-x 1 root root 38928 Feb 6 14:18 /usr/sbin/anacron.orig.anacron
- # dpkg-divert --remove /usr/sbin/anacron
- dpkg-divert: warning: please specify --no-rename explicitly, the default will change to --rename in 1.20.x
- Removing 'diversion of /usr/sbin/anacron to /usr/sbin/anacron.orig.anacron by live-config'
- And then to verify that it really did what it was supposed to do (but did not):
- # ls -l /usr/sbin/anacron*
- lrwxrwxrwx 1 root root 9 Apr 2 2018 /usr/sbin/anacron -> /bin/true
- -rwxr-xr-x 1 root root 38928 Feb 6 14:18 /usr/sbin/anacron.orig.anacron
- Yet dpkg-divert thinks it did the right thing:
- # dpkg-divert --remove /usr/sbin/anacron
- dpkg-divert: warning: please specify --no-rename explicitly, the default will change to --rename in 1.20.x
- No diversion 'any diversion of /usr/sbin/anacron', none removed.
- Computer, do as I say!
- # mv /usr/sbin/anacron.orig.anacron /usr/sbin/anacron
- # ls -l /usr/sbin/anacron*
- -rwxr-xr-x 1 root root 38928 Feb 6 14:18 /usr/sbin/anacron
- root@nomad:/home/phred#
- I'll reboot and see what happens.
- Update: I see this in syslog for the first time after reboot. I think it's working now.
- Apr 1 15:44:42 localhost anacron[1828]: Will run job `cron.daily' in 5 min.
- Apr 1 15:44:42 localhost anacron[1828]: Will run job `cron.weekly' in 10 min.
- Apr 1 15:44:42 localhost anacron[1828]: Will run job `cron.monthly' in 15 min.
- Offline
- #542021-04-01 19:54:43
- Altoid
- Member
- Registered: 2017-05-07
- Posts: 1,045
- Hello:
- fsmithred wrote:
- uh-oh...
- I haven't been paying close attention to this thread.
- Tsk, tsk ... 8^D!!!
- Can't do everyhting.
- fsmithred wrote:
- live-config messes with anacron via the live-config script ...
- So it seems.
- fsmithred wrote:
- ... useful in a live-CD where everything is read-only.
- ... only activates when you boot into a live system, not an installed system.
- Yes.
- fsmithred wrote:
- Refractainstaller copies the RUNNING live system to hard drive.
- The post at Dev1 that I linked to, which had the same /usr/sbin/anacron --> /bin/true and deviations apparently was not/had not been using Refractainstaller.
- So something other used live-config and generated the same problem.
- https://dev1galaxy.org/viewtopic.php?id=1901
- ie: this would not be specific to the refractainstaller but to how live-config is used by any application. (?)
- fsmithred wrote:
- You just uncovered a 10-year-old bug ...
- No.
- It was ralph.ronnquist who saw it and pointed it out to me while helping me sort out the problem I was having with anacron.
- https://dev1galaxy.org/viewtopic.php?pid=28663#p28663
- I just observed and tried to pay attention.
- A question just occurred to me: in 10 years, no one else using refractainstaller had a problem/issue with anacron?
- Maybe there's something that's not working right.
- ie:
- I realised what was going on when I saw that my fstrim script was not logging.
- If not for that, I would have never known about what was going on with anacron.
- And I don't recall any system notifications warning me of anacron failures.
- Not good, no?
- fsmithred wrote:
- The installer needs to undo this during the installation.
- Sure.
- But it is live-config that is making a signifficant change.
- No clean-up after use?
- A notification of some sort?
- eg:
- Don't forget to clean up /usr/sbin/anacron --> /bin/true afterwards.
- fsmithred wrote:
- I see this in syslog for the first time after reboot.
- ... it's working now.
- Apr 1 15:44:42 localhost anacron[1828]: Will run job `cron.daily' in 5 min.
- Apr 1 15:44:42 localhost anacron[1828]: Will run job `cron.weekly' in 10 min.
- Apr 1 15:44:42 localhost anacron[1828]: Will run job `cron.monthly' in 15 min.
- Yes, it's working.
- Thanks a lot for your input.
- Best,
- A.
- Last edited by Altoid (2021-04-01 19:59:11)
- Offline
- #552021-04-02 09:44:55
- fsmithred
- Administrator
- Registered: 2016-11-25
- Posts: 2,068
- The post at Dev1 that I linked to, which had the same /usr/sbin/anacron --> /bin/true and deviations apparently was not/had not been using Refractainstaller.
- So something other used live-config and generated the same problem.
- https://dev1galaxy.org/viewtopic.php?id=1901
- That was a miyolinux system, which uses refractainstaller.
- The way it's designed, the live-config change should not need to be undone as it only exists in the running live system. If you mount the filesystem inside the live-iso to look at it when it's not running, you would find that the diverted file does not exist. It gets created by live-config when the system boots.
- Offline
- #562021-04-02 10:42:56
- Altoid
- Member
- Registered: 2017-05-07
- Posts: 1,045
- Hello:
- fsmithred wrote:
- That was a miyolinux system ...
- Indeed ...
- GNUser wrote:
- I did not install any live-config packages, so they must have come with Miyo.
- The poster was right.
- I didn't now about refractainstaller being used by Miyo.
- fsmithred wrote:
- ... the live-config change should not need to be undone as it only exists in the running live system.
- Now it's fixed.
- Thanks for your input.
- Best,
- A.
- Index» Hardware & System Configuration» anacron not working in ascii [SOLVED]
- Pages:1Post reply
- #12018-02-24 06:17:03
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- Anacron is not running on my laptop, regardless of whether it is plugged in or not.
- Here is my /etc/anacrontab (it is the same as on my Devuan Jessie partition):
- # /etc/anacrontab: configuration file for anacron
- # See anacron(8) and anacrontab(5) for details.
- SHELL=/bin/sh
- PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
- HOME=/root
- LOGNAME=root
- # These replace cron's entries
- 1 5 cron.daily run-parts --report /etc/cron.daily
- 7 10 cron.weekly run-parts --report /etc/cron.weekly
- @monthly 15 cron.monthly run-parts --report /etc/cron.monthly
- # bruno
- 7 1 maintenance /opt/scripts/jobs-maintenance
- Here is /etc/default/anacrontab:
- # If set to "yes", start anacron even when on battery power. By
- # default, the /etc/init.d/anacron script tries to avoid running
- # anacron unless on AC power, so as to avoid running down the battery.
- # (Things like the locate updatedb cause a lot of I/O.)
- ANACRON_RUN_ON_BATTERY_POWER=yes
- I already did this, too (I had to do it in Jessie in order for anacron to run while on battery power):
- $ sudo chmod a-x /usr/lib/pm-utils/power.d/anacron
- Looking at /var/log/syslog shows no entries by anacron. Also, /var/spool/anacron is an empty directory with no timestamps. I've tried rebooting and resuming from suspend, both on AC and battery power, and anacron gives no signs of life.
- I have the 2.3-24 version installed. I also tried uninstalling it and installing the 2.3-23 version from Devuan Jessie and it made no difference.
- Any ideas? Anacron is mission-critical for me.
- Last edited by GNUser (2018-02-24 17:55:32)
- Offline
- Report Quote
- #22018-02-24 06:40:03
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- After much snooping around, I discovered that /usr/sbin/anacron was a link to /bin/true (???)
- The anacron package actually installs /usr/sbin/anacron.orig.anacron (???)
- This fixed the issue: sudo ln -fs /usr/sbin/anacron.orig.anacron /usr/sbin/anacron
- Very, very strange.
- Offline
- Report Quote
- #32018-02-24 14:31:01
- fsmithred
- Administrator
- Registered: 2016-11-25
- Posts: 2,064
- Email
- I just checked one of my ascii installs, and /usr/sbin/anacron is a real file. There are entries in /var/log/syslog, and it looks like it runs when I boot the VM. My anacrontab looks like yours, there are files in /var/spool/anacron for cron.daily .weekly and .monthly with timestamps that match what syslog shows. And my /etc/default/anacron says "No".
- 'apt-file find /usr/sbin/anacron.orig.anacron' turned up nothing. Maybe dpkg -S would show something on your end. Or 'grep anacron /root/.history' to see if you did something and forgot about it.
- Offline
- Report Quote
- #42018-02-24 15:19:44
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- Thank you for the suggestions, fsmithred.
- I have begun solving the mystery:
- bruno@thinkpad:~$ dpkg -S anacron.orig.anacron
- diversion by live-config from: /usr/sbin/anacron
- diversion by live-config to: /usr/sbin/anacron.orig.anacron
- bruno@thinkpad:~$ dpkg -l | grep live-config
- ii live-config 5.20170112+deb9u1 all Live System Configuration Components
- ii live-config-doc 5.20170112+deb9u1 all Live System Configuration Components (documentation)
- ii live-config-sysvinit 5.20170112+deb9u1 all Live System Configuration Components (sysvinit backend)
- I did not install any live-config packages, so they must have come with Miyo. I will try uninstalling live-config* and reinstalling anacron.
- Offline
- Report Quote
- #52018-02-24 15:29:38
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- No luck. I purged all three live-config packages and ancron, rebooted, and reinstalled anacron. Similar shenanigans (at least now the symlink is pointing to something sensible and not /bin/true):
- bruno@thinkpad:~$ ls -l /usr/sbin/anacron
- lrwxrwxrwx 1 root root 30 Feb 24 01:36 /usr/sbin/anacron -> /usr/sbin/anacron.orig.anacron
- bruno@thinkpad:~$ dpkg -S anacron.orig.anacron
- diversion by live-config from: /usr/sbin/anacron
- diversion by live-config to: /usr/sbin/anacron.orig.anacron
- This is my /etc/apt/sources.list:
- deb http://pkgmaster.devuan.org/merged/ ascii main
- deb http://pkgmaster.devuan.org/merged/ ascii-security main
- deb http://pkgmaster.devuan.org/merged/ ascii-updates main
- fsmithred, are you sure that your /usr/sbin/anacron is a real file and not a link? If you are sure, what am I missing?
- What is this live-config business anyway? Can I get rid of it?
- Last edited by GNUser (2018-02-24 15:30:49)
- Offline
- Report Quote
- #62018-02-24 17:54:40
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- I got it. Even after uninstalling the live-config* packages, the diversion that it created continues to live in dpkg, so one has to manually remove the diversion:
- root@thinkpad:/home/bruno# dpkg-divert --list | grep anacron
- diversion of /usr/sbin/anacron to /usr/sbin/anacron.orig.anacron by live-config
- root@thinkpad:/home/bruno# dpkg-divert --remove /usr/sbin/anacron
- root@thinkpad:/home/bruno# dpkg-divert --list | grep anacron
- # no hits
- Now I reinstall anacron and /usr/sbin/anacron is a real file as expected smile
- Last edited by GNUser (2018-02-24 17:56:23)
- /usr/sbin/anacron is a symlink to true
- Bug #1254614 reported by Shalom Crown on 2013-11-25
- 10
- This bug affects 2 people
- Affects Status Importance Assigned to Milestone
- anacron (Ubuntu) Confirmed Undecided Unassigned
- Bug Description
- The original is present in /usr/sbin/anacron.distrib
- Even when I change it , it changes back the next day during / after the anacron daily.
- This is seen on 3 machines. They are all running Lubuntu live images, from USB DOKs, with casper-rw as a separate partition (not file).
- On properly installed machines (mainly Xubuntu) there is no problem.
- transspot@lubuntu:~$ ll /usr/sbin/anac*
- lrwxrwxrwx 1 root root 9 Nov 19 12:54 /usr/sbin/anacron -> /bin/true*
- -rwxr-xr-x 1 root root 30076 Dec 20 2012 /usr/sbin/anacron.distrib*
- transspot@lubuntu:~$ cat /etc/lsb-release
- DISTRIB_ID=Ubuntu
- DISTRIB_RELEASE=13.10
- DISTRIB_CODENAME=saucy
- DISTRIB_DESCRIPTION="Ubuntu 13.10"
- ProblemType: Bug
- DistroRelease: Ubuntu 13.10
- Package: anacron 2.3-19ubuntu2
- ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
- Uname: Linux 3.11.0-12-generic i686
- ApportVersion: 2.12.5-0ubuntu2.1
- Architecture: i386
- CasperVersion: 1.336ubuntu1
- Date: Mon Nov 25 09:29:30 2013
- LiveMediaBuild: Lubuntu 13.10 "Saucy Salamander" - Release i386 (20131016.1)
- MarkForUpload: True
- ProcEnviron:
- TERM=xterm
- PATH=(custom, no user)
- XDG_RUNTIME_DIR=<set>
- LANG=en_US.UTF-8
- SHELL=/bin/bash
- SourcePackage: anacron
- UpgradeStatus: No upgrade log present (probably fresh install)
- Tags: apport-bug i386 saucy
- Shalom Crown (shalom-crown) wrote on 2013-11-25: #1
- Dependencies.txt Edit (2.8 KiB, text/plain; charset="utf-8")
- Launchpad Janitor (janitor) wrote on 2014-11-09: #2
- Status changed to 'Confirmed' because the bug affects multiple users.
- Changed in anacron (Ubuntu):
- status: New → Confirmed
- Uwe Lück (uwe-lueck) wrote on 2014-11-09: #3
- I have spent many days with learning about logrotate, cron jobs, and launchpad etiquette (as to posting a comment), which may take me into financial troubles. Now just let me …
- I discovered this here starting from bug #1385537, and it helped me to fix the latter. However, I have described there how my situation differs from the situation here.
- Another point: I have wondered and searched the web much time in order not only to find out how rotating logs and anacron etc. work, but actually: whether the developers of (Lu|Xu|U)buntu have *intended* to rotate logs by anacron.
- Idea from that: Cron jobs might *intentionally* have been disabled (by linking to /bin/true) for a *live* session, maybe not thinking about the persistent case, rather about brief rescue or installation sessions where rotating and cron jobs seem to be useless and perhaps disturb jobs the user has in mind.
- Index» Hardware & System Configuration» anacron not working in ascii [SOLVED]
- Pages:1Post reply
- #12018-02-24 06:17:03
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- Anacron is not running on my laptop, regardless of whether it is plugged in or not.
- Here is my /etc/anacrontab (it is the same as on my Devuan Jessie partition):
- # /etc/anacrontab: configuration file for anacron
- # See anacron(8) and anacrontab(5) for details.
- SHELL=/bin/sh
- PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
- HOME=/root
- LOGNAME=root
- # These replace cron's entries
- 1 5 cron.daily run-parts --report /etc/cron.daily
- 7 10 cron.weekly run-parts --report /etc/cron.weekly
- @monthly 15 cron.monthly run-parts --report /etc/cron.monthly
- # bruno
- 7 1 maintenance /opt/scripts/jobs-maintenance
- Here is /etc/default/anacrontab:
- # If set to "yes", start anacron even when on battery power. By
- # default, the /etc/init.d/anacron script tries to avoid running
- # anacron unless on AC power, so as to avoid running down the battery.
- # (Things like the locate updatedb cause a lot of I/O.)
- ANACRON_RUN_ON_BATTERY_POWER=yes
- I already did this, too (I had to do it in Jessie in order for anacron to run while on battery power):
- $ sudo chmod a-x /usr/lib/pm-utils/power.d/anacron
- Looking at /var/log/syslog shows no entries by anacron. Also, /var/spool/anacron is an empty directory with no timestamps. I've tried rebooting and resuming from suspend, both on AC and battery power, and anacron gives no signs of life.
- I have the 2.3-24 version installed. I also tried uninstalling it and installing the 2.3-23 version from Devuan Jessie and it made no difference.
- Any ideas? Anacron is mission-critical for me.
- Last edited by GNUser (2018-02-24 17:55:32)
- Offline
- Report Quote
- #22018-02-24 06:40:03
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- After much snooping around, I discovered that /usr/sbin/anacron was a link to /bin/true (???)
- The anacron package actually installs /usr/sbin/anacron.orig.anacron (???)
- This fixed the issue: sudo ln -fs /usr/sbin/anacron.orig.anacron /usr/sbin/anacron
- Very, very strange.
- Offline
- Report Quote
- #32018-02-24 14:31:01
- fsmithred
- Administrator
- Registered: 2016-11-25
- Posts: 2,064
- Email
- I just checked one of my ascii installs, and /usr/sbin/anacron is a real file. There are entries in /var/log/syslog, and it looks like it runs when I boot the VM. My anacrontab looks like yours, there are files in /var/spool/anacron for cron.daily .weekly and .monthly with timestamps that match what syslog shows. And my /etc/default/anacron says "No".
- 'apt-file find /usr/sbin/anacron.orig.anacron' turned up nothing. Maybe dpkg -S would show something on your end. Or 'grep anacron /root/.history' to see if you did something and forgot about it.
- Offline
- Report Quote
- #42018-02-24 15:19:44
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- Thank you for the suggestions, fsmithred.
- I have begun solving the mystery:
- bruno@thinkpad:~$ dpkg -S anacron.orig.anacron
- diversion by live-config from: /usr/sbin/anacron
- diversion by live-config to: /usr/sbin/anacron.orig.anacron
- bruno@thinkpad:~$ dpkg -l | grep live-config
- ii live-config 5.20170112+deb9u1 all Live System Configuration Components
- ii live-config-doc 5.20170112+deb9u1 all Live System Configuration Components (documentation)
- ii live-config-sysvinit 5.20170112+deb9u1 all Live System Configuration Components (sysvinit backend)
- I did not install any live-config packages, so they must have come with Miyo. I will try uninstalling live-config* and reinstalling anacron.
- Offline
- Report Quote
- #52018-02-24 15:29:38
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- No luck. I purged all three live-config packages and ancron, rebooted, and reinstalled anacron. Similar shenanigans (at least now the symlink is pointing to something sensible and not /bin/true):
- bruno@thinkpad:~$ ls -l /usr/sbin/anacron
- lrwxrwxrwx 1 root root 30 Feb 24 01:36 /usr/sbin/anacron -> /usr/sbin/anacron.orig.anacron
- bruno@thinkpad:~$ dpkg -S anacron.orig.anacron
- diversion by live-config from: /usr/sbin/anacron
- diversion by live-config to: /usr/sbin/anacron.orig.anacron
- This is my /etc/apt/sources.list:
- deb http://pkgmaster.devuan.org/merged/ ascii main
- deb http://pkgmaster.devuan.org/merged/ ascii-security main
- deb http://pkgmaster.devuan.org/merged/ ascii-updates main
- fsmithred, are you sure that your /usr/sbin/anacron is a real file and not a link? If you are sure, what am I missing?
- What is this live-config business anyway? Can I get rid of it?
- Last edited by GNUser (2018-02-24 15:30:49)
- Offline
- Report Quote
- #62018-02-24 17:54:40
- GNUser
- Member
- Registered: 2017-03-16
- Posts: 535
- Email
- I got it. Even after uninstalling the live-config* packages, the diversion that it created continues to live in dpkg, so one has to manually remove the diversion:
- root@thinkpad:/home/bruno# dpkg-divert --list | grep anacron
- diversion of /usr/sbin/anacron to /usr/sbin/anacron.orig.anacron by live-config
- root@thinkpad:/home/bruno# dpkg-divert --remove /usr/sbin/anacron
- root@thinkpad:/home/bruno# dpkg-divert --list | grep anacron
- # no hits
- Now I reinstall anacron and /usr/sbin/anacron is a real file as expected smile
- Last edited by GNUser (2018-02-24 17:56:23)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement