Jump to content

go file help


Recommended Posts

Posted

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:

image.png.8fdabaa21fe2dc7944d512dd42327596.png

 

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...

Posted

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 

  • Like 1
Posted (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 by cinereus

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...