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
Each disk has an agent installed on it at /mnt/disk/somedirectory
Each agent runs under its own account
Each account is added to a group
The group has permissions (chmod 2770) to the /opt/hostedtoolcache which is where Flutter gets installed normally
Issue:
The first agent to the party succeeds and builds fine
The second and third agents that try to install Flutter at almost the same time (race condition) but are just behind the first and throw errors trying to rm files trying to clean up the extraction destination
The last agent is a bit slower and sees Flutter is installed but when it attempts to use the SDK gets the following error
Flutter failed to open a file at "/opt/hostedtoolcache/Flutter/3.13.9/linux/flutter/bin/cache/lockfile".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.
Try running:
sudo chown -R $(whoami) /opt/hostedtoolcache/Flutter/3.13.9/linux/flutter/bin/cache/lockfile
Assumptions:
Since the error is stating the current user doesn't have permissions and the permissions for the lockfile located at /opt/hostedtoolcache/Flutter/3.13.9/linux/flutter/bin/cache, and are NOT 770, the SDK is designed to only allow 1 user to use it at a time
Multiple users on a machine will need their own copies of the SDK to do work in parallel
Request:
Allow the Flutter SDK be installed to a location defined by a parameter
The text was updated successfully, but these errors were encountered:
I see the Flutter Env task allows a custom path to be defined. Does this mean that it is expected that the Install task was not used and this is a way to tie in a custom Flutter install to the rest of the task ecosystem?
I ended up implementing a custom version of the Flutter Install task and using the Flutter Env task to point to the install location. Things seem to be working fine now.
Still would be nice if the Install task supported a destination parameter
I see the Flutter Env task allows a custom path to be defined. Does this mean that it is expected that the Install task was not used and this is a way to tie in a custom Flutter install to the rest of the task ecosystem?
Hi, that is correct. You can install your - own SDK and connect other tasks
Scenario:
Issue:
Assumptions:
Since the error is stating the current user doesn't have permissions and the permissions for the lockfile located at /opt/hostedtoolcache/Flutter/3.13.9/linux/flutter/bin/cache, and are NOT 770, the SDK is designed to only allow 1 user to use it at a time
Multiple users on a machine will need their own copies of the SDK to do work in parallel
Request:
Allow the Flutter SDK be installed to a location defined by a parameter
The text was updated successfully, but these errors were encountered: