-
-
Notifications
You must be signed in to change notification settings - Fork 170
Labels
Description
openemr developer environments are failing to start up with
openemr-1 | trying raw github composer token
openemr-1 | % Total % Received % Xferd Average Speed Time Time Time Current
openemr-1 | Dload Upload Total Spent Left Speed
100 112 0 112 0 0 263 0 --:--:-- --:--:-- --:--:-- 262
openemr-1 | Number of github api requests remaining is null
openemr-1 | Message received from api request is ""Bad credentials""
openemr-1 | ./openemr.sh: line 561: null: unbound variable
This is due to a combination of events around
openemr-devops/docker/openemr/flex/openemr.sh
Line 561 in fb1a80d
| if [[ "${githubTokenRateLimit}" -gt 100 ]]; then |
- The token in docker-compose.yml is no longer valid. That results in 'Bad credentials'.
- githubTokenRateLimit gets set to the string 'null'.
- Because
[[ "${githubTokenRateLimit}" -gt 100 ]]occurs in arithmetic context, bash see it as(( $null > 100 )). $nullis not defined, so we get an unbound variable error.
So we need to fix the token, but before we do that we need to ensure that we check if githubTokenRateLimit is numeric at all before doing arithmetic on it.