Coder Social home page Coder Social logo

Comments (23)

steevanb avatar steevanb commented on July 25, 2024 1

Ok thanks, but could you give me code you are benchmarking?
This is the code of your framework, but maybe you made some modifications / installations before using the benchmark kit?

from benchmark-kit.

steevanb avatar steevanb commented on July 25, 2024 1

I will have time for it during this week-end or next week, i will tell you here when i've fixed it.

from benchmark-kit.

steevanb avatar steevanb commented on July 25, 2024 1

I've found the problem: it's not the code, it's the documentation.

Commands has been renamed but i didn't change the documentation: configure:all has been renamed to configure:benchmark.

Problem is solved, you can call phpbenchkit --selfupdate to get the documentation fix and call phpbenchkit configure:benchmark.

from benchmark-kit.

steevanb avatar steevanb commented on July 25, 2024 1

It seems ok on my side:
Zest benchmark

from benchmark-kit.

steevanb avatar steevanb commented on July 25, 2024 1

Yes, for now benchmark kit 4 is under developement. Documentation is not fully written ;)

from benchmark-kit.

steevanb avatar steevanb commented on July 25, 2024

Hi,

Could you please show me the full code?
assets:install is not called by benchmark kit.

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

Hi,

Could you please show me the full code?
assets:install is not called by benchmark kit.

would you like see code i am benchmarking?
i am benchmarking this https://github.com/Zestframework/Zest

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

Ok thanks, but could you give me code you are benchmarking?
This is the code of your framework, but maybe you made some modifications / installations before using the benchmark kit?

this is same code i push yet
https://github.com/zestframework/Zest-Benchmark

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

i install kit as mentioned and i have to change url in wget because from the readme the url was not work

then i run command phpbenchkit it ask me directory name i put Zest which was inside /var/www/html/Zest/ and i run script from /html

then it show me to run phpbenchkit configure:all

when i run this it show me above mentioned error

Thanks

from benchmark-kit.

steevanb avatar steevanb commented on July 25, 2024

Thanks i will take a look as soon as possible.

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

Thanks i will take a look as soon as possible.

Any update, if possible?

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

I've found the problem: it's not the code, it's the documentation.

Commands has been renamed but i didn't change the documentation: configure:all has been renamed to configure:benchmark.

Problem is solved, you can call phpbenchkit --selfupdate to get the documentation fix and call phpbenchkit configure:benchmark.

Give me time to check pls 😊 I will be back with status yet it's late night here

Thanks for your time to look to issue

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

I've found the problem: it's not the code, it's the documentation.

Commands has been renamed but i didn't change the documentation: configure:all has been renamed to configure:benchmark.

Problem is solved, you can call phpbenchkit --selfupdate to get the documentation fix and call phpbenchkit configure:benchmark.

Nah Boss its not working
image

Even i try to run with sudo prefix as well.
I changed the permission of whole directory as well

image

Looking forward to hear from you thanks

from benchmark-kit.

steevanb avatar steevanb commented on July 25, 2024

Could you tell me your UID with echo $UID?
Do it on your host, not inside the Docker container.

from benchmark-kit.

steevanb avatar steevanb commented on July 25, 2024

I've added Zest Framework to benchmark kit.
You can call phpbenchkit --selfupdate, then answer framework to Composent type? question, and you will see Zest Framework in the list for next question.

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

Could you tell me your UID with echo $UID?
Do it on your host, not inside the Docker container.

image

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

I've added Zest Framework to benchmark kit.
You can call phpbenchkit --selfupdate, then answer framework to Composent type? question, and you will see Zest Framework in the list for next question.

Yes i see but when i follow steps it showing same result, even i run that command with sudo prefix

image

from benchmark-kit.

peter279k avatar peter279k commented on July 25, 2024

The issue is about permission denied.

That is, the /var/www/benchmark owner is not same as your current user.

The /var/www/benchmark owner should be www-data user and it's not lablnet.

To resolve above issue, I think it can add sudo before the phpbenchkit configure:benchmark.

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

The issue is about permission denied.

That is, the /var/www/benchmark owner is not same as your current user.

The /var/www/benchmark owner should be www-data user and it's not lablnet.

To resolve above issue, I think it can add sudo before the phpbenchkit configure:benchmark.

I try with that too but still same issue

image

from benchmark-kit.

peter279k avatar peter279k commented on July 25, 2024

The permission denied problem is inside Docker phpbenchmarks/benchmark-kit:4 container.

The phpbenchkit configure:benchmark command will create the directory and files on /var/www/benchmark/.phpbenchmarks folder.

圖片

And it seems that the phpbenchkit script will use the docker exec with phpbenchmarks user to create above directory.

It can look at this line to find out above command.

It will be permission denied because the /var/www/benchmark/ directory owner is the root, not phpbenchmarks.

To fix above issue temporarily, it should use docker exec container_id /bin/bash -c "chown -R phpbenchmarks:phpbenchmarks /var/www/benchmark/" before running phpbenchkit configure:benchmark command.

And it will be worked :).

圖片

from benchmark-kit.

steevanb avatar steevanb commented on July 25, 2024

Thanks @peter279k.

I thought you were on a subdirectory of /var/www, but peter is right if you are not (/var/www is the root of your installation, not /var/www/Zest_Framework for example).

You can change permissions of /var/www with it's command, or do it outside of the container.
But i think the best solution is to add a subdirectory into /var/www, and give permissions of your user only to this directory.

from benchmark-kit.

lablnet avatar lablnet commented on July 25, 2024

Its fixed thanks both @peter279k and @steevanb

But the document should be improved for new person in docker and Linux environment thanks.

from benchmark-kit.

peter279k avatar peter279k commented on July 25, 2024

Its fixed thanks both @peter279k and @steevanb

But the document should be improved for new person in docker and Linux environment thanks.

That's right. They should be improved :).

from benchmark-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.