vuestorefront / storefront-api

Storefront GraphQL API Gateway. Modular architecture. ElasticSearch included. Works great with Magento1, Magento2, Spree, OpenCart, Pimcore and custom backends

Home Page:https://storefrontapi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sfa_app_1 exited with code 127

opened this issue · comments

Hey guys
on windows docker-compose up yields
sfa_app_1 exited with code 127
and
app_1 | /usr/local/bin/docker-entrypoint.sh: exec: line 8: /usr/local/bin/storefront-api.sh: not found

to make it work I had to add
RUN chmod 777 /usr/local/bin/storefront-api.sh
in Dockerfile

Hey,
on which branch are you?
Then I can look into it.

master branch

@ResuBaka any updates on this one?

Hey, I got the exact same issue,
app_1 | /usr/local/bin/docker-entrypoint.sh: exec: line 8: storefront-api.sh: not found sfa_app_1 exited with code 127

I tried to add "RUN chmod 777 /usr/local/bin/" to the storefront-api/dockerfile - with no luck.

RUN chmod 777 /usr/local/bin/storefront-api.sh

Can you share your Dockerfile?
I don't see Dockerfile in my project...

You can also, chmod the file in your project, it will take those permissions with it, like so

chmod +x docker/storefront-api/storefront-api.sh

Then do the build again by removing the container, then doing docker-compose up
Hope this helps

i got the same error can anyone please help @ResuBaka

Hey guys
on windows docker-compose up yields
sfa_app_1 exited with code 127
and
app_1 | /usr/local/bin/docker-entrypoint.sh: exec: line 8: /usr/local/bin/storefront-api.sh: not found

to make it work I had to add
RUN chmod 777 /usr/local/bin/storefront-api.sh
in Dockerfile

how did u solved can u help me

Thanks a lot i will try

On Thu, 6 Aug 2020 at 11:36 AM, vyyytenis @.***> wrote: in docker .env set PHP_FPM_INSTALL_WKHTMLTOPDF=true, WORKSPACE_INSTALL_WKHTMLTOPDF=true. Then docker rebuild. Then php artisan vendor:publish --provider="Barryvdh\Snappy\ServiceProvider" In snappy.php set: 'pdf' => [ 'enabled' => true, 'binary' => 'wkhtmltopdf', 'timeout' => false, 'options' => [], 'env' => [], ], 'image' => [ 'enabled' => true, 'binary' => 'wkhtmltoimage', 'timeout' => false, 'options' => [], 'env' => [], ], https://github.com/barryvdh/laravel-snappy This worked for me — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#40 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHH33ZSNADO7ZHIAWYMTFTLR7JB7DANCNFSM4KS7HRNQ .

Sorry, this is not for storefront-api. I got confused in my opened tabs. But the thing is you need to search for storefront in docker file. Sorry again for misleading

I have the same problem, as a workaround I changed the last CMD with CMD ["yarn", "start"] and added COPY tsconfig.build.json ./

I know that's not a solution but in the meantime it works :)

For anyone still having this issue in Windows, I found that it was due to the Windows-style line endings used in the Dockerfile.

All I had to do was change vue-storefront-api\docker\vue-storefront-api\Dockerfile to use LF line endings. It's probably also worth doing the same to vue-storefront-api\docker\vue-storefront-api\vue-storefront-api.sh, just in case.

Для тех, кто все еще имеет эту проблему в Windows, я обнаружил, что это связано с окончаниями строк в стиле Windows, используемыми в Dockerfile.

Все, что мне нужно было сделать, это изменить vue-storefront-api \ docker \ vue-storefront-api \ Dockerfile, чтобы использовать окончания строк LF. Вероятно, на всякий случай стоит сделать то же самое с vue-storefront-api \ docker \ vue-storefront-api \ vue-storefront-api.sh.

This is didn't help for me. Did you any other actions? What is your environment?

Tried all of the solutions above, tried @Apologin @rodsouto and @neticon-polovina solution, but still the container is falling with 127 code

commented

Hi, I had a .sh file that wouldn't run with a similar error. I changed the line ending of the file from CRLF to LF, now it looks like things are working. It's probably because I'm on Windows. I made the change from CRLF to LF on the .sh file using Visual Studio Code in the bottom right of the window.

I found the solution from this link: PayString/paystring#539 (comment)

I just thought I would share, maybe it helps someone here.

HELP NEEDED - Exited 127 PORT: 8080

@ResuBaka @filrak
Hello, I am on Windows 10 PRO and receive the errors below when running the Docker command : docker-compose -f docker-compose.yml -f docker-compose.nodejs.yml up -d

I have tried all suggestions above with accuracy and have had not luck.

vuesfdocker1
vuedocker2

@B-Griffinn Change the last line in Dockerfile from
CMD ["vue-storefront-api.sh"]
to
CMD ["yarn", "start"]
thanks @rodsouto

commented

@jai247 That doesn't seem to be working for me.

image
image

Have the same problem. Any solution yet?

has anyone tried something else and worked? I'm struggling here, none of the above solutions work.

[sfa_app 8/9] COPY storefront-api.sh /usr/local/bin/:


failed to solve: rpc error: code = Unknown desc = failed to compute cache key: "/storefront-api.sh" not found: not found

@goldenkat213 nope,

My output is as follows:
image

All 4 docker instances start, but the Vue-Storefront-Api_app_1 either starts and shuts down, or crashes with the 127 error.

I even tried the docker-edit from this person:
vuestorefront/vue-storefront-api#438

Still no luck...

Update:

This API is used in combination with VSF1. VSF2, however, is the default front-end for now.
No need to fix this if you are using VSF2.