Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results were not saved in 'results' folder after "send result" button #74

Open
jyn282 opened this issue Feb 10, 2022 · 7 comments
Open

Comments

@jyn282
Copy link

jyn282 commented Feb 10, 2022

Hi, thank you for this amazing repository. :)

I've set up webMUSHRA using Docker as written in README.md.
After that, I tried complete.yaml.
The test worked well, but when I pressed the "send result" button on the last page, an error occurred as follows.

"An error occured while sending your data to the server! Please contact the. experimenter."

Also, there was no new folder in the results folder.

Could you please check on this issue?

@faroit
Copy link
Collaborator

faroit commented Feb 10, 2022

@jyn282 did you mount results and configs when launching the docker container?

@jyn282
Copy link
Author

jyn282 commented Feb 13, 2022

yes, I think so, I didn't change docker-compose.yml nor DockerFile.
That means results and configs folers were mounted to
/var/www/html/results and /var/www/html/config , is that right?
I made two folders in the above paths and also checked file authority.

@faroit
Copy link
Collaborator

faroit commented Feb 13, 2022

@jyn282 please show your docker command here

@jyn282
Copy link
Author

jyn282 commented Feb 13, 2022

Thank you for the quick reply.

I tried as follows.

Dockerfile

FROM php:7.0-apache
COPY ./ /var/www/html/

docker-compose.yml

version: '2'
services:
  webmushra:
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - ./results:/var/www/html/results
      - ./configs:/var/www/html/configs
    ports:
      - "8000:80"

Then, I build and run docker container as follows.

docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml up

I could change YAML file in configs folder on the fly but couldn't get result csv files.

@faroit
Copy link
Collaborator

faroit commented Mar 4, 2022

@jyn282 sorry for the slow reply. Have you been able to address the issue?

@jyn282
Copy link
Author

jyn282 commented Apr 22, 2022

@faroit, I pushed this job for a while and recently get back to this work.
To begin with the conclusion, I solved this problem. It turns out a permission problem. The host user doesn't have write permission (only read) so it couldn't send the result CSV files.
Here's the website that I referred to.

https://ntsim.uk/posts/file-permissisions-when-developing-with-docker

Thanks for your help! :)

@w4iei
Copy link
Contributor

w4iei commented May 10, 2022

Great thread here. I hit the same problem when creating a docker container and cloning this repository.
The root-cause of the problem came from cloning the repository as root, which doesn't allow docker/apache write access.

A chown as follows fixes the issue:
chown www-data:www-data results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants