Tag Info

Hot answers tagged

11

Okay, so here are the specific settings that I needed in order to make this work: Host: ims.example.com Port: 389 User: MYDOMAIN\accountName Password: ******* Base DN: dc=mydomain,dc=example,dc=com On-The-Fly User Creation: YES Login: sAMAccountName Firstname: givenName Lastname: sN Email: mail The trick was removing cn=Users from the Base DN, after ...


6

You can configure how many Rails processes Apache/passenger spawns. For your size (3 concurrent requests) you should be fine with 2 rails processes: Set these in your apache config: PassengerMaxPoolSize 2 PassengerMaxInstancesPerApp 2 The MaxPoolSize determines how many instances can be started maximally, the MaxInstancesPerApp determines how many ...


5

It's possible that ruby is in the Redmine user's $PATH but not in cron's. Try specifying the full path in the crontab entry. */5 * * * * /path/to/ruby /var/www/redmine/script/runner Repository.fetch_changesets -e production Also, it would be helpful if you said what error messages or log entries you were getting instead of just saying "doesn't work". The ...


5

Well, this Redmine feature request gives it away: Currently, new changeset information is only fetched when you view the repository. So if you update an issue, and mention a revision in it, it doesn't get hyperlinked until someone has viewed the repository. While I did not find a ready-made post-commit hook to update the Redmine with new changesets, ...


5

You are using gems with native extensions, but they were compiled against libraries on the source system that have different versions on the target system. So you need to rebuild your gems on the target system. rvm use 2.0.0-p353 gem pristine --all In future it's better if you just deploy your source code and let bundler handle the gems on the target ...


4

I have no familiarity with Redmine, but it sure looks like you're trying to do an anonymous bind to Active Directory to validate credentials. That's not going to work. Having configured multiple products for LDAP integration with AD, this is a common problem that I've seen. Out of the box, AD requires that clients authenticate when binding to the directory ...


4

There are a few solutions - one is to buy a wildcard certificate and serve that everywhere. Another is to make sure you are using at least Apache 2.2.12 and enable SNI, which allows you to use SSL with name-based virtual hosts for the few browsers that support it. Or, you can add a public IP, add a virtual private IP on the server and map them on your ...


4

Point DocumentRoot at your Redmine public directory, and RailsBaseURI to point at /. Here's an example from my working Ubuntu server: <VirtualHost *:80> ServerName redmine.int.example.com ServerAlias redmine DocumentRoot /var/www/redmine/public RailsBaseURI / RailsEnv production PassengerMaxPoolSize 4 <Directory ...


4

Unfortunately the redmine Ubuntu package requires some manual configuration before you can get started. Now that redmine is installed, you still have to make it accessible through a real web server. An easy way to do this is with Apache with the mod_passenger plugin. Just edit your /etc/apache2/sites-available/default (or default-ssl), adding: RailsBaseURI ...


4

Due to the limited information, I am not going to theorize in detail as to the potential security implications of your architecture. However, I would be especially cautious about granting the ability to add users to a non-root user. With that said, I would discourage the use of the SUID bit for that purpose. If nothing else, because it introduces ...


4

We had this issue on our staging machine and it was related to a permission issue in nginx' proxy_temp-folder( /opt/nginx/proxy_temp in our case) Removing the folder and restarting nginx fixed the problem.


4

This question is better suited for serverfault. Do post this kind of admin and server related questions there in the future. But since you posted here for now, here's the solution: The file where your domain specific settings should go is specified on this line: file "SITENAME.com"; Thus you need to open/create SITENAME.COM zone db file in the same ...


4

Your environmet variables seems to indicate your server is using the Ruby Version Manager: Ruby Version Manager, often abbreviated as RVM, is a unix-like software platform designed to manage multiple installations of Ruby on the same device. The entire ruby environment including the Ruby interpreter, installed RubyGems, and documentation is ...


3

It was permissions related. After putzing around I got it working just by getting the owner and group of the files to match the user running the railsapp and proper read/write permission. Just confusing how it ever got broken. - Wayne


3

I've not done much with Rails either, but I'd take a look in config/environments/production.rb to see what options there are for logging. Logging is usually done with the Logger standard ruby library which should just generate a log based on your current environment (eg log/production.log). You will get more events logged if you aren't in the production ...


3

A trick to find the Base DN for ActiveDirectory LDAP authentication is to check what the users fully qualified domain name is. you can check that with: whoami /FQDN if you are logged in as that user, which returns something like CN=John Doe,OU=users,OU=department,DC=corp,DC=domain,DC=com and the Base DN can be found by removing the first CN. ...


3

TOTAL shot in the dark here: If you have ruby 1.9.1 installed try installing RVM (http://rvm.beginrescueend.com/) with gem install rvm Then you can rvm install ruby-1.8.7 --head and then rvm ruby-1.8.7 to switch to ruby 1.8.7


3

Its typical behavior for just about any Rails app, at least in my experience. Its particularly true of an app as large as Redmine. The load time is because you're actually starting an executable and loading the app into memory on that first launch.


3

You can come close to doing this by using the security sandbox, just disable all tags & datasources - CF will however continue to process cfm/cfml files and some tags, but everything exciting will not be accessible, however, if you really need to disable all CF handling, you will actually have to disable the server wide jrun AddHandler & re-configure ...


3

First thing to do is put a </VirtualHost> directive immediately before your vhost definition e.g. </VirtualHost> <VirtualHost *:80> ServerName redmine.website.de ServerAdmin webmaster@localhost DocumentRoot /usr/share/redmine/public </VirtualHost> If that fixes the problem or you get a different error message then you ...


3

My first guess is that the file you're editing is being included by another file, but from inside a virtualhost directive or you just need to look at all the other files in your conf.d (especially the ones that get loaded before the one you're working on) and make sure that all of them are closing their virtualhost directives. If you try to do ...


3

I asked a friend for this and the fault was really simple. I don't set the permissions for access the repository to the used user. In Redmine you can add groups and users and you can set the group of an user for each project so I need to add my user to the project with an group that is able to access the repository.


3

Yes, it can work without an smtp server, you'll be just missing the mail functionnalities (tracking updates notifications, etc, etc.)


3

You should always use monit or similar for tools you don't trust. Note that webrick is more of a reference http implementation in MRI, and doesn't scale well at all. To the point that puppetlabs considered it could only serve up to 10-20 hosts reliably, and that's with the nodes talking to the server only every 30 minutes ! I've had a great experience with ...


3

As you can see in the Gemfile, Redmine uses two different MySQL adapter gems depending on the ruby version. With Ruby 1.8, it uses the mysql gem, with Ruby 1.9, the mysql2 gem. These two gems need to be configured slightly differently in the database.yml, as the adapter name is the same as the gemname. In your case, you need to configure the adapter as ...


3

Your Ruby is too old. Redmine will deceitfully tell you that the latest version of Redmine works with Ruby 1.8.7, but I lost about two hours to this lie. I have Redmine working on CentOS 6.4 with ruby 1.9.3p385. Try updating to that version and you'll probably be able to run your rake command. Update Ruby thusly: http://www.ruby-lang.org/en/downloads/ ...


2

Do you have Phusion Passenger installed? That's the easiest way to start serving a Rails application with Apache. It's quick to install and you shouldn't need to modify your virtual host configuration. Alternatively, you can configure Apache to load balance with a cluster of Mongrels. This route requires more configuration.


2

You probably need to alias /redmine to /var/www/redmine/public, or perhaps a file-exists-conditioned local rewrite. I'm sure Google is full of "how to setup a Rails app with Passenger" guides, though, and they'll probably have more appropriate info.



Only top voted, non community-wiki answers of a minimum length are eligible