tericcabrel / bmi

A Spring boot web application to calculate the body mass index
3 stars 21 forks source link

Permission denied #4

Closed hendisantika closed 7 months ago

hendisantika commented 7 months ago

How do I fix this error?

Run set -e
  set -e
  #          ./home/***/qrcode/deploy.sh
       ./deploy.sh
  shell: /usr/bin/bash -e {0}
  env:
    SERVER_HOST: ***
    SERVER_PORT: ***
    SERVER_USER: ***
/home/runner/work/_temp/478a1516-031b-4fad-8437-[2](https://github.com/hendisantika/spring-boot-qrcode-generator/actions/runs/7550972354/job/20557506622#step:4:2)50f5a6a6258.sh: line [3](https://github.com/hendisantika/spring-boot-qrcode-generator/actions/runs/7550972354/job/20557506622#step:4:3): ./deploy.sh: Permission denied
Error: Process completed with exit code 12[6](https://github.com/hendisantika/spring-boot-qrcode-generator/actions/runs/7550972354/job/20557506622#step:4:6).
hendisantika commented 7 months ago

Where we put deploy.sh?

Executing directly on server? In home directory?

hendisantika commented 7 months ago
Run set -e
  set -e
  cd $GITHUB_WORKSPACE
  #          ./home/***/qrcode/deploy.sh
  ./deploy.sh
  shell: /usr/bin/bash -e {0}
  env:
    SERVER_HOST: ***
    SERVER_PORT: ***
    SERVER_USER: ***
Warning: Permanently added '***' (ED[2](https://github.com/hendisantika/spring-boot-qrcode-generator/actions/runs/7551047057/job/20557693432#step:4:2)[5](https://github.com/hendisantika/spring-boot-qrcode-generator/actions/runs/7551047057/job/20557693432#step:4:5)51[9](https://github.com/hendisantika/spring-boot-qrcode-generator/actions/runs/7551047057/job/20557693432#step:4:9)) to the list of known hosts.
Load key "key.txt": error in libcrypto
***@***: Permission denied (publickey).
Error: Process completed with exit code 1.
tericcabrel commented 7 months ago

Hello @hendisantika 👋🏾 At this line of your GitHub Actions configuration, can you verify you defined a correct value for ${{ secrets.SERVER_KEY }}?

hendisantika commented 7 months ago

this line

Hi @tericcabrel ,

I don't know.

Suddenly, Its working now after I recopy my private key to secret.

https://qrcode.hendisantika.my.id/

Thanks