cinereus Posted May 4, 2020 Posted May 4, 2020 I made a minor edit to my go file and now it's not behaving correctly. I am getting a "cp: cannot stat '/mnt/user/test/file': No such file or directory" error. The file definitely exists and used to cp correctly. I also get this error: The file location is 100% correct. If I immediately try the same copy command it works fine. I thought perhaps it could be a permissions error? But if I change the permissions of the go file they reset at reboot anyway. Perhaps the array isn't getting mounted early enough any more? Why else wouldn't these files be accessible? But they were before without any issues... Quote
Squid Posted May 4, 2020 Posted May 4, 2020 The "go" file is executed very early. Unless you have it execute another script in the background that waits for the array to start (or via the user scripts plugin), there is next to no hope that the array is started when your command executes 1 Quote
cinereus Posted May 4, 2020 Author Posted May 4, 2020 How odd that it was doing so before. Can I store files on /boot/ that will survive a reboot? Quote
cinereus Posted May 4, 2020 Author Posted May 4, 2020 (edited) Thanks. Anywhere in that folder or subfolder I assume? EDIT: Just saw the very helpful arrayStarted=true variable in User Scripts. Is it as simple as just putting a script to run when array is up or do I need to use that too. Edited May 4, 2020 by cinereus Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.