Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
6505 optimize zip downloads #6986
6505 optimize zip downloads #6986
Changes from all commits
b8d268a
8b1765a
e3973d1
ad1787a
1dc597b
ddfc88c
5402e07
aa923ba
5d27982
c99fa60
8dfe4c4
46584da
5aaaff5
48a56df
3eb3976
1cd8629
69297fb
6e2e396
72394a4
96c3708
e01c213
9e42aec
6100ed6
aaaa035
c5cca50
1d4b83f
d34ecca
f580a80
e0e0a45
2fcdfac
757a120
7f2bf94
2553845
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran into problems with the CGI script setup:
[Wed Jun 24 19:29:43.616634 2020] [cgid:error] [pid 57182:tid 140001334073088] [client 75.69.182.6:50927] AH01241: error spawning CGI child: exec of '/var/www/cgi-bin/zipdownload' failed (Permission denied): /var/www/cgi-bin/zipdownload, referer: http://ec2-34-224-6-242.compute-1.amazonaws.com/dataset.xhtml?persistentId=doi:10.5072/FK2/J5MISN&version=1.0
[Wed Jun 24 19:29:43.616865 2020] [cgid:error] [pid 57182:tid 140001334073088] [client 75.69.182.6:50927] End of script output before headers: zipdownload, referer: http://ec2-34-224-6-242.compute-1.amazonaws.com/dataset.xhtml?persistentId=doi:10.5072/FK2/J5MISN&version=1.0
To overcome these problems I had to do two things, and both should be documented, I believe:
chmod 755 zipdownload
setenforce Permissive
Ideally, we would figure out how to run the zipper with SELinux enabled. I once wrote some tips at http://guides.dataverse.org/en/4.20/developers/selinux.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really want to specifically describe every possible problem with the Apache configuration - but mentioned in the instruction that "you'll need to do whatever is necessary to make sure /cgi-bin/zipdownload is accessible from the outside". Exercise for the reader, an extra layer of weeding out those who have no business attempting to install this thing, if you wish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(after talking to Kevin I did incorporate some of the above in the doc, just to be kind :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a little weird to use the first person here. The reader was directed to this README from the Installation Guide. If "I" is used this letter should probably be signed. (There's some "me" below too.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to leave this as is. It's not part of the real Dataverse guide. It says "work in progress" at the top; and that particular section of the file is a design discussion where I (as a developer) am addressing other developers. (I added a line saying just that; and encouraging others to offer feedback).