Hi, check the answer from alik khilazhev, its works. i work with his 
solution.

I solved this issue with creating link to true location of .csv 
files(/tmp/edx-s3/grades) in /edx/var/edxapp/media directory

ln -s /tmp/edx-s3/grades /edx/var/edxapp/media

and then make little changes in nginx configuration.

nano /var/app/nginx/sites-available/lms

add following rule:

location ~ ^/grades/(?P<file>.*) {
    root /edx/var/edxapp/media/grades;
    try_files /$file =404;
    expires 31536000s;
}

Edit location rule for media, tall to search in /grades if there is no such 
file in /media

location ~ ^/media/(?P<file>.*) {
    root /edx/var/edxapp/media;
    try_files /$file /media/grades/$file;
    expires 31536000s;
}

and then restart nginx

service nginx restart

It should work ;-)

El domingo, 20 de mayo de 2018, 17:19:33 (UTC-5), [email protected] 
escribió:
>
> Hi I tried this the below method 
>
> but while updating the below file
>
> nano /var/app/nginx/sites-available/lms
>
> add following rule:
>
> location ~ ^/grades/(?P<file>.*) {
>     root /edx/var/edxapp/media/grades;
>     try_files /$file =404;
>     expires 31536000s;
> }
>
> it is showing as "lms permission denied " unable to save the file please 
> let me what i need to do.  
>
> On Tuesday, September 13, 2016 at 4:10:36 PM UTC+5:30, Alik Khilazhev 
> wrote:
>>
>> I solved this issue with creating link to true location of .csv 
>> files(/tmp/edx-s3/grades) in /edx/var/edxapp/media directory
>>
>> ln -s /tmp/edx-s3/grades /edx/var/edxapp/media
>>
>> and then make little changes in nginx configuration.
>>
>> nano /var/app/nginx/sites-available/lms
>>
>> add following rule:
>>
>> location ~ ^/grades/(?P<file>.*) {
>>     root /edx/var/edxapp/media/grades;
>>     try_files /$file =404;
>>     expires 31536000s;
>> }
>>
>> Edit location rule for media, tall to search in /grades if there is no 
>> such file in /media
>>
>> location ~ ^/media/(?P<file>.*) {
>>     root /edx/var/edxapp/media;
>>     try_files /$file /grades/$file;
>>     expires 31536000s;
>> }
>>
>> and then restart nginx
>>
>> service nginx restart
>>
>> It should work ;-)
>>
>> On Friday, August 7, 2015 at 9:37:49 AM UTC+3, shubham rawat wrote:
>>>
>>> Hi, is this still the only way to download the csv?No way to do it 
>>> without s3?
>>>
>>> On Tuesday, 3 March 2015 07:45:41 UTC+5:30, Wenjie Wu wrote:
>>>>
>>>> Hi , guys,
>>>> I want to download edx grades
>>>> I did the following thing 
>>>>
>>>>    1. View the live version of your course.
>>>>    2. Click *Instructor*, then click *Data Download*.
>>>>    3. To open or save a grade report file, click the 
>>>>    {course_id}_grade_report_{date}.csv file name at the bottom of the page.
>>>>    
>>>> The download link is file:///tmp/edx-s3/grades/xxxxx.csv . I can’t 
>>>> download it !
>>>> Really need your guide!
>>>> thanks ! 
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/63577e5b-2ef4-45c5-ae52-b74e551ce25f%40googlegroups.com.

Reply via email to