The officially official Devuan Forum!

You are not logged in.

#1101 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-30 10:27:49

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?

#1102 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-30 00:25:16

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 -- -s

Seeing 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-parts

returning nothing, and then use

run-parts --verbose /etc/cron.weekly

to see the new, forced weekly run happening.

#1103 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-28 23:08:09

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

  1. there is an executable /etc/init.d/anacron (script), and

  2. 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 >&2

just 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.

#1104 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-28 21:20:32

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).

#1106 Re: Hardware & System Configuration » [SOLVED] Changing a parameter in /sys/module » 2021-03-27 12:50:24

Create a file named /etc/modprobe.d/iwlwifi.conf with content

options enable_ini=N

See man modprobe.d for details.
(That man page belongs to the kmod package, which may and might not be installed)

#1107 Re: Installation » Non Booting GRUB on Beowulf » 2021-03-26 20:48:27

Some months ago I used rEFInd to rescue an old mac mini; it might work for your troubles too...

#1109 Re: Other Issues » Runit » 2021-03-23 21:29:42

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).

#1110 Re: Hardware & System Configuration » [SOLVED] USB 3.0 card, external drive and unknown algorithms » 2021-03-23 20:52:18

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).

#1111 Re: Hardware & System Configuration » [SOLVED] USB 3.0 card, external drive and unknown algorithms » 2021-03-22 04:37:18

A PCI "adddress" has format "bus : device . function" so I would guess on

-b 0x04 -d 0x00 -f 0x00

The 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.

#1112 Re: Other Issues » [SOLVED] Need a lil coding help with an extension (shell script), openbox/pcman » 2021-03-19 22:00:50

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.

#1113 Re: Other Issues » [SOLVED] Need a lil coding help with an extension (shell script), openbox/pcman » 2021-03-18 23:18:00

Perhaps double quotes around %f makes a difference? and around %d as well, probably.

#1114 Re: Hardware & System Configuration » [SOLVED] Backup entire installed Beowulf w/software + configs + /home? » 2021-03-16 00:20:33

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 smile

#1115 Re: Hardware & System Configuration » [SOLVED] Backup entire installed Beowulf w/software + configs + /home? » 2021-03-15 23:18:57

Well, there should be less than 20 s* entries in /dev so a little bit of eye-to-hand copying would work for me smile

#1116 Re: Hardware & System Configuration » [SOLVED] Backup entire installed Beowulf w/software + configs + /home? » 2021-03-15 21:32:06

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.

#1117 Re: Hardware & System Configuration » [SOLVED] Backup entire installed Beowulf w/software + configs + /home? » 2021-03-15 21:09:42

Ok, let's start with those starting with "s" other than "snapshot", "stderr", "stdin" and "stdout" (irrelevant if they are there or not).

#1119 Re: Desktop and Multimedia » [SOLVED] Nvidia error at boot » 2021-03-15 12:35:51

Hmm I think your last postsand my edit crossed in time; please confirm again while I go and get coffee ...

#1120 Re: Desktop and Multimedia » [SOLVED] Nvidia error at boot » 2021-03-15 11:59:29

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.

#1121 Re: Desktop and Multimedia » [SOLVED] Nvidia error at boot » 2021-03-15 11:47:41

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.

#1122 Re: Other Issues » (Unattended-upgrades) Apparently I'm running Debian... Again. » 2021-03-15 10:45:34

The steps for a bug report are almost as simple as your fixing of that file:

  1. find out which package is concerned (unattended-upgrades)

  2. find out which version of that package you'r using (1.11.2)

  3. 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.2

    then 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.

#1123 Re: Hardware & System Configuration » [SOLVED] Strange gparted situation » 2021-03-15 03:28:54

interesting.

I would have thought they would be made by udev but then it would be originating from /sys (or somwhere else?) unless something has blessed the system with some special udev rules; then likely in /etc/udev/rules.d rather than /lib/udev/rules.d.
Or possibly there's some residue from some past "journey" in /etc/fstan?

#1124 Re: Hardware & System Configuration » [SOLVED] Strange gparted situation » 2021-03-15 01:15:15

Maybe there are some dangling links in some /dev/disk/by-* directory?

#1125 Re: Installation » I just installed Devuan 3.1.0 Beowulf and it's cool » 2021-03-13 05:26:42

How do you test that your system is using TLS to connect to the DNS providers?

DNS over TLS has the standard port 853 rather than port 53 for "traditional DNS", so you might verify with tcpdump or similar.

Board footer

Forum Software