Closed Lncn closed 12 years ago
I fixed the repository tab by changing the Max Element Cache Size to 8MB (it was at 16MB), but if I try to click the revision number of one of the files, I get the Internal Error again.
Two problems here. (1) This version of the plugin has a serious performance problem that causes things to timeout with large changesets. (2) This version of the plugin doesn't work with redmine 1.3.
Go here:
https://github.com/kubitron/redmine_git_hosting/
Hopefully this will help.
Hey thanks man! I actually went to pick this back up yesterday evening and found your fork with the performance and "resilient" changes and figured I would try that next. (I see most of those changes are in your master now, unless I missed something...)
I'll let you know how it goes.
Yup. Everything on my master branch. Let me know.
I would say, if this helps, that you should close out this issue. If you decide to use my master branch, post future bugs on my project page.
Yes, your master branch fixed my issues. I nearly forgot to close this. Thanks!
I should note though, the redmine_diff_email plugin did not interact well with the version of this plugin that I was using. I never figured out the root cause because I uninstalled redmine_diff_email, updated redmine_git_hosting with kubitron's master changes, then reinstalled redmine_diff_email and all is well.
This may or may not be the exact cause, but I don't have much experience with the internals of this plugin or Redmine (Or Ruby/Rails to be honest). Here is a little background, as my setup may have something to do with the problem:
I am running Redmine (1.3) on an internal network in my office and I wanted to create a project for users to post issues on bugs and feature requests for Redmine itself so we can track any changes we make to the server.
I basically wanted to keep the production/test code under git control on the server and I will simply 'git push' from the served directory to the git repository where Gitolite stores the repos. This basically acts as a working backup and allows us to visually track our Redmine setup's changesets within Redmine repository browser.
I set this up today and was apparently wrong is how easy I thought this would be. Here is what I did:
1) Created "Redmine" project within Redmine 2) On the server's Redmine directory, /var/www/redmine/, I did a
git init
to initialize the repo andgit add .
to add all files under redmine. I committed this to the local repo as the Initial commit 3) Now, I wanted to have the redmine code show up on the project's repository tab, so I did agit push
and got no complaints from the git or the gitolite serverNow, when I check the repository tab in our Redmine project, I get a 404 error. I did a little snooping and noticed that the production.log said that the MySQL INSERT into the changeset cache was failing. (Also, I noticed the log jumps ~30MB each time I do this):
As you can obviously see, these lines aren't complete. The rest of the '''ActiveRecord::StatementInvalid (Mysql::Error: MySQL server has gone away: INSERT''' line is something like 30MB long!! It's the command_output response to the
git show
. Obviously, this show command's diff is VERY large, since I added all files in a single commit, so this could be the problem...I'm assuming either I don't have something set up correctly to accept such a large response in the MySQL table, or I'm hitting a timeout or something. Anyone have any clue on what I could do to fix this or if this is actually a bug?