Skip to content

Not seems to work at all #153

Closed
Closed

Description

@lablnet

image

Activity

  1. steevanb commented on Aug 24, 2020

    @steevanb
    Member

    Hi,

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

  2. lablnet commented on Aug 24, 2020

    @lablnet
    Author

    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

  3. steevanb commented on Aug 24, 2020

    @steevanb
    Member

    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?

  4. lablnet commented on Aug 24, 2020

    @lablnet
    Author

    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

  5. lablnet commented on Aug 24, 2020

    @lablnet
    Author

    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

  6. steevanb commented on Aug 24, 2020

    @steevanb
    Member

    Thanks i will take a look as soon as possible.

  7. lablnet commented on Aug 27, 2020

    @lablnet
    Author

    Thanks i will take a look as soon as possible.

    Any update, if possible?

  8. steevanb commented on Aug 28, 2020

    @steevanb
    Member

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

  9. steevanb commented on Aug 31, 2020

    @steevanb
    Member

    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.

  10. lablnet commented on Aug 31, 2020

    @lablnet
    Author

    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

  11. lablnet commented on Sep 1, 2020

    @lablnet
    Author

    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

  12. steevanb commented on Sep 1, 2020

    @steevanb
    Member

    It seems ok on my side:
    Zest benchmark

  13. steevanb commented on Sep 1, 2020

    @steevanb
    Member

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

  14. steevanb commented on Sep 1, 2020

    @steevanb
    Member

    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.

  15. lablnet commented on Sep 2, 2020

    @lablnet
    Author

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

    image

  16. lablnet commented on Sep 2, 2020

    @lablnet
    Author

    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

  17. peter279k commented on Sep 2, 2020

    @peter279k

    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.

  18. lablnet commented on Sep 2, 2020

    @lablnet
    Author

    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

  19. peter279k commented on Sep 2, 2020

    @peter279k

    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 :).

    圖片

  20. steevanb commented on Sep 2, 2020

    @steevanb
    Member

    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.

  21. lablnet commented on Sep 2, 2020

    @lablnet
    Author

    Its fixed thanks both @peter279k and @steevanb

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

  22. peter279k commented on Sep 2, 2020

    @peter279k

    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 :).

  23. steevanb commented on Sep 2, 2020

    @steevanb
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions