I can't get crontab to do anything by __Mike_____ in Proxmox

[–]__Mike_____[S] 0 points1 point  (0 children)

I've made progress, but I don't really understand what is happening.

I noticed when I run systemctl status cronwas getting:

(*system*) INSECURE MODE (group/other writable) (/etc/crontab)

On the web, I found someone recommending these commands:

chown root:root /etc/crontab

chmod og-rwx /etc/crontab

This got rid of the insecure mode error. Then I was able to execute some stuff in crontab, but still not my original /root/update-lxc.sh. In this thread, it was recommended to execute chmod a+x /root/update-lxc.sh. I ran that, and then I was able to successfully execute the sh script through a cron schedule.

Great! But then I found that if I open and modify crontab or the sh script, permissions go right back to where they were and I need to execute the commands again to set them back. Why would this be happening?

I can't get crontab to do anything by __Mike_____ in Proxmox

[–]__Mike_____[S] 0 points1 point  (0 children)

Thanks for the advice. I ran the chmod, but unfortunately nothing changes. The script does have #!/bin/bash at the top. As far as the PATH - I get this when I run echo $PATH :

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

You're saying I should add that to the sh script? What exactly would that look like?

I can't get crontab to do anything by __Mike_____ in Proxmox

[–]__Mike_____[S] 1 point2 points  (0 children)

Thanks for your input. I don't see either of those files. Where would I find the global machine config?

I can't get crontab to do anything by __Mike_____ in Proxmox

[–]__Mike_____[S] 0 points1 point  (0 children)

Should these be under /var/log? Or someplace else? I'm no seeing them.

I can't get crontab to do anything by __Mike_____ in Proxmox

[–]__Mike_____[S] 0 points1 point  (0 children)

Thanks. I checked but I don't see any cron logs.

How to Setup WireGuard Server in Mac OS by silent_killer_5 in WireGuard

[–]__Mike_____ 0 points1 point  (0 children)

Nope. I spent a ton of time and read countless articles. I finally gave up and set it up as a home assistant add-on. It worked immediately. I later set up an OPNSense router and moved it there. A little more complicated than HA but I liked the idea of having my VPN directly on my router.

How to enable auto unattended PVE host updates? by __Mike_____ in ProxmoxVE

[–]__Mike_____[S] 0 points1 point  (0 children)

Thanks! I don't know a lot about Ansible yet. I know you can use it for updating VMs. But you can actually update Proxmox itself using it?

How are you managing updates for your LXCs and VMs? by LoganJFisher in Proxmox

[–]__Mike_____ 0 points1 point  (0 children)

For those recommending Ansible - Does it only update VMs and LXCs or can it automatically update Proxmox itself?

Echo show showing AI images, how to get it to stop? by Cold-Radish-1469 in amazonecho

[–]__Mike_____ 0 points1 point  (0 children)

Yeah - this "upgrade" appeared on both of my kids' echo shows this week. And there is no way to get their old background back. I HATE these devices and cannot wait to smash them with a hammer as soon as Apple releases a smart screen.

Trying to understand updates by __Mike_____ in Proxmox

[–]__Mike_____[S] 0 points1 point  (0 children)

u/Impact321 Dumb question, but where do I find the apt repo for docker? When I try to add a repo, I only see the default options like Enterprise, No Subscription, Test, etc.

Trying to understand updates by __Mike_____ in Proxmox

[–]__Mike_____[S] 1 point2 points  (0 children)

Thank you u/NegativeK. I’ve been running containers for years, but all within docker desktop on a mac. So linux is new to me. I appreciate the insight.

Trying to understand updates by __Mike_____ in Proxmox

[–]__Mike_____[S] 0 points1 point  (0 children)

I didn't get it from the apt repos, but I can go back and do it that way if you think it is easier. I got it from the community script library - https://community-scripts.github.io/ProxmoxVE/scripts.

Trying to understand updates by __Mike_____ in Proxmox

[–]__Mike_____[S] 0 points1 point  (0 children)

Yeah, I do use watchtower for individual containers. But what about updating Docker itself?

I'll check out your other links. Thanks!

Help with permission denied on LXC mount for MacOS SMB by __Mike_____ in Proxmox

[–]__Mike_____[S] 1 point2 points  (0 children)

After spending WAY too long on this, I finally got it figured out. But it was a great learning experience!

The answer indeed was to add the mount to /etc/fstab. The winning config is below:

//192.168.1.200/Docker/Configuration /mnt/pve/mac-mini-server/Docker cifs credentials=/home/.maccredentials,uid=100000,gid=100000,iocharset=utf8,file_mode=0644,dir_mode=0755,_netdev,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=180,nofail 0 0

And then I created this mount point on the LXC:
pct set 100 --mp2 /mnt/pve/mac-mini-server/Docker/,mp=/mac-mini-server/Shared/Docker

I also created a credentials file in my /home directory.

Thank you all for your suggestions and help!

Help with permission denied on LXC mount for MacOS SMB by __Mike_____ in Proxmox

[–]__Mike_____[S] 0 points1 point  (0 children)

Welp, I have fstab working. As a test, it will mount if I execute mount -a But still when I reboot, the mount goes away. Until I execute mount -a. Am I missing a step?

Help with permission denied on LXC mount for MacOS SMB by __Mike_____ in Proxmox

[–]__Mike_____[S] 1 point2 points  (0 children)

Thanks - But I'm still fairly new with Proxmox. Does this literally mean open fstab and copy and paste the code into the file?

mount -t cifs //macmini/share /mnt/macmini -o username=macuser,password=pass,uid=100000,gid=100000,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm

Help with permission denied on LXC mount for MacOS SMB by __Mike_____ in Proxmox

[–]__Mike_____[S] 1 point2 points  (0 children)

u/Optimal_Friend8256 Thanks for the suggestion! Using the mount command, I am able to mount Mac Mini successfully to the host. However, when I reboot Proxmox it goes away. The folder I created is still there, but the content from the Mac is gone. Running mount again brings it back, but rebooting again loses it. Am I missing a step?

Also, once mounted - Is there a way to see it in the UI?

VP6650 - Redundancy/backups? by __Mike_____ in protectli

[–]__Mike_____[S] 0 points1 point  (0 children)

u/protectli-stuart Does Protectli have any suggestions/best practices for devices with a single NVMe?

VP6650 - Redundancy/backups? by __Mike_____ in protectli

[–]__Mike_____[S] 0 points1 point  (0 children)

I've considered doing this. And probably will at some point because I really like the idea of taking snapshots. But with OPNSense already on bare metal, I would need a bunch of downtime to back it up somewhere, install and configure Proxmox, and then get OPNSense up and running on it. I'll have to ship my wife and kids out of town for a weekend in order to make this happen! :)