The officially official Devuan Forum!

You are not logged in.

#1026 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-31 22:26:53

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.

#1027 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-30 22:38:59

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=yes

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

and then even a forced run ignoring date stamping

# start-stop-daemon -v --start --exec /usr/sbin/anacron -- -s -d -n -f

I'm running out of ideas sad ...
I've set up an anacron test myself now and we'll see in a couple of days if I have a similar problem.

#1028 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-30 21:01:32

Ok that looks like the "normal" installed files. Hmmmm....

Do you use apparmor or selinux? Either one can do ugly things.

#1029 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?

#1030 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.

#1031 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.

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

#1034 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)

#1035 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...

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

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

#1039 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.

#1040 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.

#1041 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.

#1042 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

#1043 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

#1044 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.

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

#1047 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 ...

#1048 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.

#1049 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.

#1050 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.

Board footer

Forum Software