This is easy to reproduce in a jammy lxd container.
$ lxc launch ubuntu:jammy j $ lxc shell j # sed -i 's#"$OUTFILE.key" 2>/dev/null#"$OUTFILE.key"#g' /usr/sbin/mellon_create_metadata # # mellon_create_metadata https://sp.10.5.100.3/mellon https://sp.10.5.100.3/v3/OS-FEDERATION/identity_providers/idp.10.5.100.2/protocols/saml2/auth/mellon < cut text here > Cannot write random bytes: 4097CC2E67760000:error:1200007A:random number generator:RAND_write_file:Not a regular file:../crypto/rand/randfile.c:190:Filename=/dev/urandom
This is easy to reproduce in a jammy lxd container.
$ lxc launch ubuntu:jammy j null#"$ OUTFILE. key"#g' /usr/sbin/ mellon_ create_ metadata create_ metadata https:/ /sp.10. 5.100.3/ mellon https:/ /sp.10. 5.100.3/ v3/OS-FEDERATIO N/identity_ providers/ idp.10. 5.100.2/ protocols/ saml2/auth/ mellon 0:error: 1200007A: random number generator: RAND_write_ file:Not a regular file:.. /crypto/ rand/randfile. c:190:Filename= /dev/urandom
$ lxc shell j
# sed -i 's#"$OUTFILE.key" 2>/dev/
# # mellon_
< cut text here >
Cannot write random bytes:
4097CC2E6776000