Open aldefouw opened 3 weeks ago
@mmcev106 I think I completed the changes for this test and submitted a pull request.
The line "And I Upload a "csv......" is causing the script to fail. Image of what REDCap shows when it fails attached.
ACTION: Import data
When I click on the link labeled "Data Import Tool" And I upload a "csv" format file located at "import_files/B.3.16.2000.100data.csv", by clicking the button near "Upload your CSV file:" to browse for the file, and clicking the button labeled "Upload" to upload the file And I click the button labeled "Upload File"
@alewis64, I've unassign you for now since this is on my plate to look into.
From @aldefouw:
We might want to script it on the docker-compose.yml if possible (not sure about cross OS compatibility), but it looks pretty likely that the host machine's permissions on volume mounts via Docker are what is important. In other words, you might need to set .../tmp/ to be more permissive on your host machine to make that folder writable.
Evidence was found of this in the CircleCI pipeline too: https://github.com/aldefouw/redcap_cypress/blob/master/.circleci/config.yml#L59-L60
(777 seems way wrong to be honest ... maybe there is a less permissive combination we can use. However, I do remember trying to make it less permissive - like 775 - and it failed to write, which doesn't make sense but since we're in a test environment I didn't waste too much time digging in.)
@mmcev106
One troubleshooting idea for the error in your screenshot is to run this:
docker exec -it redcap_docker-app-1 ls -la /var/www/html | grep temp
That will tell you what the folder permissions are for /temp/. For me, the folder is owned by root and is writable and readable by the folder owner.
If you need to adjust the permissions, you can do so through interactive terminal like you'd do on any machine:
docker exec -it redcap_docker-app-1 /bin/bash
It's hard for me to say if there is a fix we can write that would 100% fix this on every possible developer machine. From what I've read, Docker runs slightly differently on Linux versus Mac and Windows. It runs natively on Linux whereas there is a translation of permissions for Mac and (especially for) Windows.
Feature: B.3.16.1100. - Change with edit access