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
Description:
I think you have a problem with bal dist pull/use commands in deb-based distributions and the actual active version is not updated at all even the distribution will be downloaded correctly.
Originally I have installed slbeta3 from deb-file and updated that to slbeta4 whit bal dist. However I now recall I noticed the version issue already back then but I didn't bother to report it as it was still beta.
Steps to reproduce:
Update to the GA distribution:
$ sudo bal dist pull 2201.0.0
[sudo] password for jani:
Checking whether any latest update tool version is available...
Downloading ballerina-command-1.3.9 100% [==========] 1/1 MB (0:00:00
Updating environment variables
Update tool version updated to the latest version: 1.3.9
Cleaning old files...
Update successfully completed
Fetching the '2201.0.0' distribution from the remote server...
Downloading 2201.0.0 100% [==========] 214/214 MB (0:01:55 / 0:00:00)
Fetching the dependencies for '2201.0.0' from the remote server...
Dependency 'jdk-11.0.8+10-jre' is already available locally
'2201.0.0' successfully set as the active distribution
Looks good:
$ bal dist list
Distributions available locally:
slbeta3
slbeta4
* 2201.0.0
Distributions available remotely:
1.* channel
... To list all the previous distributions execute 'bal dist list -a'
1.2.12
1.2.13
1.2.14
1.2.15
1.2.17
1.2.16
1.2.20
1.2.23
1.2.24
1.2.25 - latest
Swan Lake channel
* 2201.0.0 - latest
Use 'bal help dist' for more information on specific commands.
However bal --version still reports Beta 3.
$ bal --version
Ballerina Swan Lake Beta 3
Language specification 2021R1
Update Tool 1.3.9
Let's update the version file manually:
$ sudo vi /usr/lib/ballerina/distributions/ballerina-version
[sudo] password for jani:
$ cat /usr/lib/ballerina/distributions/ballerina-version
ballerina-2201.0.0
$ bal --version
/usr/bin/bal: line 118: /usr/lib/ballerina/bin/../distributions/ballerina-2201.0.0/bin/./bal: Permission denied
Update Tool 1.3.9
As you can see in the problem description I was already using the latest update tool version 1.3.9 so I fail to see how bal update could have changed anything.
I see you have in fact documented the recovery steps, so that's fine. I hope this is no more issue later with new Swan Lake versions.
You can close the ticket I you're confident this issue won't happen again :)
For the record I figured out the recovery steps and I'm now fine :)
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- Reason/EngineeringMistake - The issue occurred due to a mistake made in the past. - Reason/Regression - The issue has introduced a regression. - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components. - Reason/Complex - Issue occurred due to complex scenario. - Reason/Invalid - Issue is invalid. - Reason/Other - None of the above cases.
Description:
I think you have a problem with
bal dist pull/use
commands in deb-based distributions and the actual active version is not updated at all even the distribution will be downloaded correctly.Originally I have installed slbeta3 from deb-file and updated that to slbeta4 whit
bal dist
. However I now recall I noticed the version issue already back then but I didn't bother to report it as it was still beta.Steps to reproduce:
Update to the GA distribution:
Looks good:
However
bal --version
still reports Beta 3.Let's update the version file manually:
Let's fix the permissions:
Now the expected version is reported:
Affected Versions:
Swan Lake on Ubuntu
The text was updated successfully, but these errors were encountered: