May 4, 20206 yr 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...
May 4, 20206 yr 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
May 4, 20206 yr Author How odd that it was doing so before. Can I store files on /boot/ that will survive a reboot?
May 4, 20206 yr Author 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, 20206 yr by cinereus
Archived
This topic is now archived and is closed to further replies.