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

Impossible to restore big courses (greater than 50 Mo) #18

Closed
martignoni opened this issue Jun 25, 2017 · 7 comments
Closed

Impossible to restore big courses (greater than 50 Mo) #18

martignoni opened this issue Jun 25, 2017 · 7 comments
Assignees
Labels
Status: doc done Documentation is published on the website Type: bug Something isn't working

Comments

@martignoni
Copy link
Member

When attempting the restoration of big courses, error errorcopyingbackupfile occurs.

@martignoni martignoni added the Type: bug Something isn't working label Jun 25, 2017
@martignoni martignoni self-assigned this Jun 25, 2017
@martignoni
Copy link
Member Author

Related to the size of temp directory, limited to 64MB (see https://github.com/martignoni/make-moodlebox/blob/master/make_moodlebox.sh#L478).

@martignoni
Copy link
Member Author

For reference, here's a possible solution to the bug. Needs a separate partition :-(

https://moodle.org/mod/forum/discuss.php?d=335066#p1401738

@martignoni
Copy link
Member Author

martignoni commented Jun 26, 2017

Separate partition is not an option.

Still looking for another solution. As a (partial) workaround, one could increase the temp directory size in fstab.

@martignoni
Copy link
Member Author

After above fixes, it should be possible to restore course up to 120 MB.

Restoring bigger courses would need to disable RAM temp partition, with an overall bad performance of the MoodleBox.

@martignoni
Copy link
Member Author

I'd like to provide a durable fix for this.

@martignoni martignoni reopened this Oct 28, 2017
@martignoni
Copy link
Member Author

martignoni commented Oct 28, 2017

The following solution (tested) seems to work:

  • When creating the MoodleBox image, make a new /var/www/moodledata/backup directory (mkdir -p /var/www/moodledata/backup)
  • Fix owner (chown -R www-data:www-data /var/www/moodledata/backup)
  • Fix permissions (chmod -R ug+ws,o-w /var/www/moodledata/backup).
  • Soft link it to /var/www/moodledata/temp/backup/ (ln -s /var/www/moodledata/backup /var/www/moodledata/temp/backup)
  • Add a crontab @reboot redoing the link at boot time, since the temp folder lives in RAM and everything inside is deleted at shutdown.

If this solution is retained, we could lower the size of the RAM partition for the temp dir.

martignoni added a commit that referenced this issue Oct 30, 2017
@martignoni
Copy link
Member Author

Fixed by d0c6574.

@martignoni martignoni added the Status: doc needed Documentation on the website is needed label Nov 11, 2017
@martignoni martignoni added Status: doc done Documentation is published on the website and removed Status: doc needed Documentation on the website is needed labels Feb 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: doc done Documentation is published on the website Type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant