OsProcessStarter - posix_spawn() failed. errno 13

518 views
Skip to first unread message

Joachim Tuchel

unread,
Sep 1, 2021, 5:28:35 PM9/1/21
to VAST Community Forum
Hi again,

after I've head good success with OsProcessStarter and friends in WIndows and Linux in a development image, I am now having trouble starting external processes on a headless test machine. I guess I am having a problem somewhere outside of VAST, but am not sure where to look...

This is what gets written to the walkback:
OsProcessesApp class>>#convertPrimErrorArrayToException:then:
  receiver = OsProcessesApp
  arg1 = (13 'ERROR: posix_spawn() failed. errno: 13
ERROR: posix_spawn() failed. errno: 13
')
  arg2 = [] in OsVastSubprocess>>#execute
  temp1 = Signal on Exception: (ExOsProcessException) An exception has occurred
OsVastSubprocess>>#execute
  receiver = {pid:  cmd: ...}
  temp1 = (13 'ERROR: posix_spawn() failed. errno: 13
ERROR: posix_spawn() failed. errno: 13
')


  • I checked that esproclauncher is in the /bin directory of the server runtime.
  • I found that in the /bin directory of the server runtime there is no symbolic link named libc.so, so I created it, just in case this causes troubles (but I guess teh VM wouldn't get very far anyways if that was the problem).
  • I checked that the command and arguments are correct and run correctly from the command line
What can I check next? The test system runs the image as root, so I guess there is not much of a chance that this is a file permission issue....

Any ideas?


Joachim

Mariano Martinez Peck

unread,
Sep 1, 2021, 5:35:40 PM9/1/21
to VA Smalltalk
Hi Joachim,

Quick reply... could you try doing a "chmod +x esproclauncher" ?

Thanks, 

--
You received this message because you are subscribed to the Google Groups "VAST Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to va-smalltalk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/ed2853b4-6236-4d4b-b774-fec0d6e06204n%40googlegroups.com.


--

Mariano Martinez Peck

Senior Software Engineer

 mp...@instantiations.com
 @MartinezPeck
 /mariano-martinez-peck
 instantiations.com
TwitterLinkedInVAST Community ForumGitHubYouTubepub.dev

Joachim Tuchel

unread,
Sep 1, 2021, 5:55:43 PM9/1/21
to VAST Community Forum
Mariano,

That was it, thanks!

(why on earth didn't I think of this...? *headscratch*)

Joachim Tuchel

unread,
Sep 1, 2021, 6:00:38 PM9/1/21
to VAST Community Forum
Just an idea, because I might not be the last to stumble upon this. Maybe you can add a sentence about this to the documentation


The page already says:

IMPORTANT: On Linux, make sure to distribute the VAST-provided binary 'esproclauncher' with packaged runtimes


Maybe you could just add "and make sure it has execute privileges (chmod +x esproclauncher)"

I had checked it's there (and it is if you just unzip the sl package), but since most files in that folder are not executable, there was no bell ringing in my head....

Joachim

Mariano Martinez Peck

unread,
Sep 2, 2021, 2:26:23 PM9/2/21
to VA Smalltalk
Hi Joachim,

Thanks for the suggestion. In fact, I think it's a problem on our end as we are NOT shipping the files with the correct x permission on the server runtime distribution (with the normal dev image installer it is correct). This should be fixed in the next release of the product. 

Thanks for reporting! 


Joachim Tuchel

unread,
Sep 2, 2021, 4:52:50 PM9/2/21
to VAST Community Forum
Hi Mariano,

good to know it's going to be fixed in the next release. So I am glad I asked instead of researching more about posix_spawn().
Until that's done, a hint in the docs wouldn't hurt....

Joachim
Reply all
Reply to author
Forward
0 new messages