cancel
Showing results for 
Search instead for 
Did you mean: 
  • 404 Views

AD221 : Bug in Ch08s02 : step 1

I found a problem in Step 1 of Section 8.2. The curl command output "service unavailable".
The Deployment "temperatures-celsius-app" which the curl command attemped to call failed to start:

```
$ oc logs deploy/temperatures-celsius-app
(snip)
npm ERR! code EACCESS
npm ERR! syscall open
npm ERR! path /opt/app-root/src/.npm_cache/tmp/c0bbfbda
npm ERR! -13
(snip)
```

### Workaround

```
$ oc new-build --name temperatures-celsius-app -D $'FROM registry.ocp4.example.com:8443/redhattraining/ad221-temperatures-celsius-service\nUSER 0\nRUN chmod g+rw -R "/opt/app-root/src/.npm"\nUSER 1001'
$ oc set image deployment/temperatures-celsius-app temperatures-celsius-app=image-registry.openshift-image-registry.svc:5000/developer-cloud-deploy/temperatures-celsius-app
```

Labels (6)
1 Reply
Chetan_Tiwary_
Community Manager
Community Manager
  • 348 Views

Hello @ryusuke-yanagi !

Thanks for your time and reporting this bug here! You are right and I was able to reproduce this error at my end. I will report this bug to course developers to get this fixed asap.

Chetan_Tiwary__0-1723480481241.png

 

Join the discussion
You must log in to join this conversation.