You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't expect this issue to be fixed - it could even be closed straight away. My goal is to have Google index some of the keywords so anyone searching for the error can see the problem and a workaround.
Logs
mill --version
Could not start a Mill server process.
This could be caused by too many already running Mill instances or by an unsupported platform.
Trying to run Mill in-process ...
WARNING: Starting a build REPL without --repl is deprecated
I've these logs for a while. I don't think it's causing problems, but it makes a bit of clutter and I found out the problem and a workaround.
Problem
in the /out subdirectory of a project, I see multiple worker folders:
There is a mix of JVM versions used, hence the different names.
The max count is hard-coded, and I think mill can't reuse worker folders that have different JVM verisons. They still count towards the max count of parallel mill server instances however.
You could reproduce this by running 5 mill tasks simultaneously, changing to a different versions of JVM, and then running some more mill tasks.
Workaround
For each folder where the mill version doesn't match your current JVM version, delete the folder (or just delete them all, bit simpler). Mill will make new ones with the right versions and such.
Further notes
Maybe mill shouldn't count worker folders that use non-current JVM versions (or should remove them on clean?).
I thought it's worth getting this information indexed though, as it seems fairly probably people will upgrade mill whilst working on the same project(s) and thus might come across these logs.
The text was updated successfully, but these errors were encountered:
james-s-w-clark
changed the title
Could not start a Mill server process - unused worker folders on different mill versions
Could not start a Mill server process - unused worker folders on different JVM versions
Jun 13, 2022
james-s-w-clark
changed the title
Could not start a Mill server process - unused worker folders on different JVM versions
Could not start a Mill server process - unused worker folders on different JVM/mill versions
Jun 13, 2022
james-s-w-clark
changed the title
Could not start a Mill server process - unused worker folders on different JVM/mill versions
Could not start a Mill server process - unused worker folders on different mill versions
Jun 13, 2022
james-s-w-clark
changed the title
Could not start a Mill server process - unused worker folders on different mill versions
Could not start a Mill server process - unused worker folders on different java versions
Jun 13, 2022
Double checked, it's JVM changes that lead to the issue. Mill versions aren't the issue.
With JVM upgrades being more frequent now, this might be a bit more important.
Foreword
I don't expect this issue to be fixed - it could even be closed straight away. My goal is to have Google index some of the keywords so anyone searching for the error can see the problem and a workaround.
Logs
I've these logs for a while. I don't think it's causing problems, but it makes a bit of clutter and I found out the problem and a workaround.
Problem
in the
/out
subdirectory of a project, I see multiple worker folders:There is a mix of JVM versions used, hence the different names.
The max count is hard-coded, and I think mill can't reuse worker folders that have different JVM verisons. They still count towards the max count of parallel mill server instances however.
You could reproduce this by running 5 mill tasks simultaneously, changing to a different versions of JVM, and then running some more mill tasks.
Workaround
For each folder where the mill version doesn't match your current JVM version, delete the folder (or just delete them all, bit simpler). Mill will make new ones with the right versions and such.
Further notes
Maybe mill shouldn't count worker folders that use non-current JVM versions (or should remove them on
clean
?).I thought it's worth getting this information indexed though, as it seems fairly probably people will upgrade mill whilst working on the same project(s) and thus might come across these logs.
The text was updated successfully, but these errors were encountered: