Franky66 Posted August 27, 2020 Posted August 27, 2020 Some days ago I installed the latest armbian updates to my armbian buster installation / openmediavault 5 on my odroid n2. After the installation of the following updates the cron jobs, which were setup on omv5 gui (not in crontab os) are not working anymore and are not started because of error: Here the update packages: armbian-config 20.08 armbian-firmware 20.08 linux-buster-root-legacy-odroidn2 20.08 linux-dtb-legacy-meson64 20.08 linux-image-legacy-meson64 20.08 linux-u-boot-odroidn2-legacy 20.08 Here the error message: /var/lib/openmediavault/cron.d/userdefined-ee6e5e4d-afef-449f-88fb-b6b4d0e4f1a5: 20: /etc/profile.d/armbian-check-first-login.sh: Syntax error: "(" unexpected So there seems to be a syntax problem in the new version of the "armbian-check-first-login.sh" script. I am not sure why it is used on starting the user defined cron jobs from omv5, but for now there are not working anymore. Maybe some one has the same issue?
Franky66 Posted August 27, 2020 Author Posted August 27, 2020 For now I have downgraded the script temporary to the old version and cron jobs are working again.
jshc1 Posted August 28, 2020 Posted August 28, 2020 I think the update messed up something. Many things that had "bin/sh" like xrdp have a problem now. Changing to bin/bash helps in some cases...
Neo2018 Posted September 1, 2020 Posted September 1, 2020 On 8/27/2020 at 7:20 AM, Franky66 said: Maybe some one has the same issue? I have the same problems Is there a solution for cronjobs? Thank you!
jshc1 Posted September 1, 2020 Posted September 1, 2020 28 minutes ago, Neo2018 said: I have the same problems Is there a solution for cronjobs? Thank you! It's hard to say, at the moment it works for me. Try deleting this script "armbian-check-first-login.sh" and reboot, check cron ... 1
Neo2018 Posted September 1, 2020 Posted September 1, 2020 3 hours ago, jshc1 said: It's hard to say, at the moment it works for me. Try deleting this script "armbian-check-first-login.sh" and reboot, check cron ... where is the script located? what is the exact path to the script? /etc/.... ??? Thank you!
Werner Posted September 1, 2020 Posted September 1, 2020 10 minutes ago, Neo2018 said: where is the script located? what is the exact path to the script? /etc/.... ??? Thank you! Try find / -name armbian-check-first-login.sh
Neo2018 Posted September 1, 2020 Posted September 1, 2020 45 minutes ago, Werner said: Try find / -name armbian-check-first-login.sh $ find / -name armbian-check-first-login.sh ...... /etc/profile.d/armbian-check-first-login.sh ..... ..... sudo cp /etc/profile.d/armbian-check-first-login.sh /etc/profile.d/armbian-check-first-login.sh.bak sudo rm /etc/profile.d/armbian-check-first-login.sh reboot Worked! What are the possible problems or security concerns when the armbian-check-first-login.sh file is deleted? Many thanks.
jshc1 Posted September 1, 2020 Posted September 1, 2020 18 minutes ago, Neo2018 said: What are the possible problems or security concerns when the armbian-check-first-login.sh file is deleted? Many thanks. Quoting @ryecoaaron Quote I would think it would be safe to delete /etc/profile.d/armbian-check-first-login.sh and that should fix your issue. Line 20 references /usr/bin/psd (provided by the profile-sync-daemon package) that isn't on my systems. 1
Igor Posted September 1, 2020 Posted September 1, 2020 57 minutes ago, Neo2018 said: What are the possible problems or security concerns when the armbian-check-first-login.sh file is deleted? Like the script indicates - its only useful for 1st login, so you can delete it. If you install Armbian and then install OMV you should not have this problem. Condition for running: https://github.com/armbian/build/blob/master/packages/bsp/common/etc/profile.d/armbian-check-first-login.sh#L186 ... probably 1st run was interrupted. As you can see its safer / better to remove /root/.not_logged_in_yet 1
Neo2018 Posted September 2, 2020 Posted September 2, 2020 13 hours ago, Igor said: ... probably 1st run was interrupted. As you can see its safer / better to remove /root/.not_logged_in_yet Should the complete line 186 be deleted or replaced by something specific? How should the script look like?
Igor Posted September 2, 2020 Posted September 2, 2020 Just now, Neo2018 said: Should the complete line 186 be deleted or replaced by something specific? How should the script look like? Leave script as is. Remove file: rm -f /root/.not_logged_in_yet
Neo2018 Posted September 3, 2020 Posted September 3, 2020 On 9/2/2020 at 9:38 AM, Igor said: rm -f /root/.not_logged_in_yet unfortunately that doesn't work for me. maybe I'm doing something wrong? I restored the armbian-check-first-login.sh, then executed the command rm -f /root/.not_logged_in_yet and restarted the system. cron does NOT work!
Igor Posted September 3, 2020 Posted September 3, 2020 5 minutes ago, Neo2018 said: I restored the armbian-check-first-login.sh, then executed the command rm -f /root/.not_logged_in_yet and restarted the system. cron does NOT work! Strange. OMV changes system dramatically and since I don't exactly know what ... its hard to tell what else to look for. You can also remove this script since its not needed anymore ... but it could show up with some update.
jshc1 Posted September 3, 2020 Posted September 3, 2020 not_logged_in_yet does not occur with omv, at least I never saw it after logging in.
Igor Posted September 3, 2020 Posted September 3, 2020 1 minute ago, jshc1 said: not_logged_in_yet does not occur with omv, at least I never saw it after logging in. Yeah, but obviously something is messed up. I am trying to understand if this is our problem or OMV. Not sure atm. On 8/27/2020 at 7:20 AM, Franky66 said: /var/lib/openmediavault/cron.d/userdefined-ee6e5e4d-afef-449f-88fb-b6b4d0e4f1a5: 20: /etc/profile.d/armbian-check-first-login.sh: Syntax error: "(" unexpected
eaguy Posted September 3, 2020 Posted September 3, 2020 Funny I came across a similar error today on a RP64 with a build of Focal desktop 20.08-dev that I compiled a few days ago. I updated via APT this morning. uname -a Linux xxxx 5.8.5-rockchip64 #trunk SMP PREEMPT Tue Sep 1 14:46:03 PDT 2020 aarch64 aarch64 aarch64 GNU/Linux Here are my symptoms: $ sudo useradd -m testee $ sudo passwd testee New password: Retype new password: passwd: password updated successfully $ su - testee Password: -sh: 20: /etc/profile.d/armbian-check-first-login.sh: Syntax error: "(" unexpected My own user account (created when the system first booted and initialized) is fine. It's only on new accounts the issue exists. i am not sure when this issue manifested itself. It was only today that I tried to create a new user. I offer this as some additional data - if it's not relevant to your issue then I apologize - E 1
Igor Posted September 3, 2020 Posted September 3, 2020 31 minutes ago, eaguy said: I offer this as some additional data Interesting. This means we have a bug to hunt and fix. Thanks.
delta Posted September 7, 2020 Posted September 7, 2020 I have the same problem and opened the script (/etc/profile.d/armbian-check-first-login.sh) The function "read_password" at line 20 is the only one that is prefixed with "function", could that be the problem? I guess it is possible that the interpreter changed with an update and doesn't like this keyword?
Igor Posted September 7, 2020 Posted September 7, 2020 Should be fixed with this: https://github.com/armbian/build/pull/2190
Franky66 Posted September 21, 2020 Author Posted September 21, 2020 I saw on github that the problem should be fixed but I didn't see any update in the last 14 days which installed new version of the necessary files. Will there be an update available which fixes this or do I have to manually change files and if yes what files where to change? 1
Neo2018 Posted September 21, 2020 Posted September 21, 2020 55 minutes ago, Franky66 said: I saw on github that the problem should be fixed but I didn't see any update in the last 14 days which installed new version of the necessary files. Will there be an update available which fixes this or do I have to manually change files and if yes what files where to change? I made an update 2 minutes ago, it seems to have been fixed. with the last update it was fixed! 1
Franky66 Posted September 22, 2020 Author Posted September 22, 2020 Yes that is right, with the update package "linux-buster-root-legacy-xxx 20.08.3 on my odroid n2 it is fixed and new versions of the files are installed. After rebooting with installing the other updates everything is fine now.
Recommended Posts