You are not logged in.
You seem to mix up non-root and root user; the user's cron jobs ar run as that user and only root's cron jobs are run as root.
The anacron problem is not that problem, since it gets run by root.
I keep my apparmor purged. I would purge selinux too had it been possible; it stays disabled.
For testing you might want to try changing /etc/default/anacron to say
ANACRON_RUN_ON_BATTERY_POWER=yesjust for the possibility that anacron misreads something.
Then, you might try, as root, a manual run to see if it says something
# start-stop-daemon -v --start --exec /usr/sbin/anacron -- -s -dand then even a forced run ignoring date stamping
# start-stop-daemon -v --start --exec /usr/sbin/anacron -- -s -d -n -fI'm running out of ideas
...
I've set up an anacron test myself now and we'll see in a couple of days if I have a similar problem.
Ok that looks like the "normal" installed files. Hmmmm....
Do you use apparmor or selinux? Either one can do ugly things.
Peculiar. Yes, the run-parts .. command if run as root would avoid the permission errors, but your test shows that the dev-fstrim does get invoked, which is enough of detail.
yes, you can use /var/log/WTF for persistent logging.
Peculiar. How do your /etc/anacrontab and /etc/default/anacron look?
So apparently the anacron start/stop script gets invoked every hour as it should, but it fails to perform.
Add set -x on a line after your added date ... in /etc/init.d/anacron, and then wait for next invocation which now logs the whole script execution to /tmp/WTF. This in particular should have the line:
+ start-stop-daemon --start --exec /usr/sbin/anacron -- -sSeeing that to be so you would next try to force run the weekly scripts again. First ensure any previous run has completed, with
pgrep -a run-partsreturning nothing, and then use
run-parts --verbose /etc/cron.weeklyto see the new, forced weekly run happening.
Ok. cron.log shows that it finds and loads and processes the /etc/cron.d/anacron scheduling, which would trigger the start/stop script if
there is an executable /etc/init.d/anacron (script), and
the pathname /run/systemd/system is not a directory (eg doesn't exist)
To verify that you would add the following two lines into the script /etc/init.d/anacron:
exec 2>>/tmp/WTF
date -R >&2just after the PATH=... line.
That should cause an hourly logging to appear in the file /tmp/WTF, and that file will also contain any other stderr output that the script run generates.
In detail: the exec 2>>/tmp/WTF line associates standard error (for this script run) in append mode with the file, and the date -R >&2 line makes the date program issue a time stamp in RFC 5322 format to standard error. Any further error message from the script will be appended subsequently.
Good. As you might know, anacron is supposed to provide the extended cron function to make sure that the regular scripts are run even if the machine happens to be down at the nominal trigger time. Since the scripts are not run it is possible that this "chain of control" is broken; that cron fails to run anacron or that anacron fails to run the script(s).
The running of anacron is typically set up using the sysvinit start/stop script, once initially at boot up, and then regularly by cron with the schedule contol script /etc/cron.d/anacron. Afaict looking at my such script, it includes the particual misfeature of not running anacron imperatively but rather making this dependent on the absence of something. (A small-brain idea appearing as attempted solution to cater for a range of possible installation sites other than this one, but not bad enough for the effort of forking the package)
So, if that something is present then your set up does not run anacron as it should and consequently your weekly script won't be run "automatically". Similarly the boot up run of the script only happens at boot up if it's set up so.
If the preconditions for the regular run/start of anacron are there, the next point of call would be to review and confirm anacron local configuration, at both /etc/anacrontab and /etc/default/anacron. And for debugging purposes also add/change the start/stop script so that it makes some output to, say, /tmp/WTF (eg a date stamp) whenever it's run. Further, to speed up the testing cycle you might set it up for daily trimming rather than weekly since the auto-magic is supposedly the same for that (as configured in the typical installed /etc/anacrontab).
Just to be sure: is anacron is installed?
Create a file named /etc/modprobe.d/iwlwifi.conf with content
options enable_ini=NSee man modprobe.d for details.
(That man page belongs to the kmod package, which may and might not be installed)
Some months ago I used rEFInd to rescue an old mac mini; it might work for your troubles too...
I don't know how runit works, but for the " in a VM window, so I can't switch tty" part of the problem I would suggest that you start qemu with -serial mon:stdio so that the qemu monitor is available in the start terminal. Then use ^C a to "activate" it, and thereafter use verbatim commands like sendkey ctrl-altl-f2 (literally like that) for keys and key combinations that are not avialabable from the keyboard.
Or, you might want to use -serial mon:unix:/tmp/myvm instead to have the console available on the socket /tmp/myvm which you'd connect to with socat - unix-connect:/tmp/myvm or nc -u /tmp/myvm and then operate the qemu monitor through that (in the same way).
Did you try using the USB "address"? The above example shows bus 2 device 7 funciton 0 (well, the last is not shown but my guess).
A PCI "adddress" has format "bus : device . function" so I would guess on
-b 0x04 -d 0x00 -f 0x00The USB codes are vendor and product and those would not be the ones to use here, a neither the bus and device indices for the USB sub system.
There's also the possibillity that the filenames are "urlencoded" by the file manager. It would mean that spaces have been replaced with "%20" (and a bit more).
You might try adding the following function:
urldecode() {
bash -c "printf '%b' '$(echo "$1" | sed 's|%%| |g;s|%|\\x|g;s| |%|g')'"
}to your /bin/sh script, and then use
convert "$(urldecode $1)" ...TL;DR; In detail, that urldecode function for dash processes its given argument with sed to replace all %NN with \xNN except for occurrences of %% which instead are replaced with single %. The resulting string is printed with bash printf using the %b format which makes all \xNN into characters of hexadecimal ASCII code NN.
Note that the sed processing uses space temporarily to make the %%-to-% translation bypass the %NN-to-\xNN translation. It therefore misbehaves for an input that already has space characters.
Perhaps double quotes around %f makes a difference? and around %d as well, probably.
That's good information. Only the s* were interesting and in particular the sda* and sdb* entries which are adapters for SATA devices and their partitions. Apparently there is one "drive", sda, with 4 partitions and another, sdb, with 1 partition.
This kind of presents the same hardware picture as your post #34 execpt that it has sda4 instead of sda6.
That difference is probably the cause of your problem... and now we need @fsmithred to draw conclusions ![]()
Well, there should be less than 20 s* entries in /dev so a little bit of eye-to-hand copying would work for me ![]()
No worries. If you have a camera nearby you could take a picture and then refer to that...
Only those starting with "s" to begin with.
Ok, let's start with those starting with "s" other than "snapshot", "stderr", "stdin" and "stdout" (irrelevant if they are there or not).
Would you mind reporting what ls /dev/ shows at the (initramfs) prompt.
Hmm I think your last postsand my edit crossed in time; please confirm again while I go and get coffee ...
Thanks. Maybe the support team has improved the feature beyond useful again... I'll have a word with them...
EDIT: there is the possibility the feature has just appeared. Perhaps you, @Altoid, could give it a try.
If you look carefully you'll see a "Mark SOLVED" link near the top and one near the bottom of the page. Try "pushing" one of those.
The steps for a bug report are almost as simple as your fixing of that file:
find out which package is concerned (unattended-upgrades)
find out which version of that package you'r using (1.11.2)
send an email to submit@devuan.org with a useful subject, and the body starting "formally" with 2 lines:
Package: unattended-upgrades
Version: 1.11.2then followed by a polite and useful treatise outlining the issue and preferrably including a patch that resolves it.
In this particular case, the "bug" is lack of maintaner effort to upgrade the fork of unattended-upgrades. Therefore beowulf got committed with the debian package version.
Your patch will go part of the way towards upgrading the forked package, which also needs any other changes since the last fork version, 0.93.1+vua2.0, including any adaption to the current package building pipline.
As it happens, the maintainer role for that forked package is currently vacant.