Added by Dan Stover almost 11 years ago
I am running into a bug in the latest beta of OpenProject 3.0. I am trying to log in as admin and keep clicking on the arrow to get the login drop down and nothing happens.
Any advice would be appreciated…Dan.
Replies (7)
Hi Dan,
do you run OpenProject in production or in development? Which browser do you use? What about the other Javascript?
Best
Ratzi
I only have the one version running at the moment on a new virtual machine using Ubuntu 12.04. Not sure what you mean by production or development. Do you mean which database am I using?
I am using Firefox 26.0. I am not using any other Javascript personally. Do you mean Javascript that is on Openproject?
Please let me know if I can provide further diagnostic information.
Thanks for your response…Dan.
Hi Dan
Dan Stover wrote:
When I talk about production and development I mean the rails environment (database, assets, etc.). If you just start OpenProject with ‘rails s’ than you run it in development.
Yes I mean other Javascript functions in OpenProject. E.g. menu folding, timelines, inline edit of work packages etc.
Yes. Please tell me the exact version of your OpenProject installation you can find the information in:
Modules -> Administration -> Information.
Best
Ratzi
Good afternoon,
I too have had the same difficulties, but only when I attempted to deploy a production site using Passenger and Rails.
When I complete install like in documentation (3.0 on ubuntu 12.04) I am able to have the site work as it should.
When I install Apache2 along with Passenger & Rails gems, I end up with the same situation as what you are describing.
Can you please confirm that this is the same setup with you?
I am not using Passenger as far as I know. I have followed the installation instructions and cannot find what I have done wrong.I am on Ubuntu 12.04 and OP 3.0.
Thanks in advance for any further info…Dan.
Installation Guide for Ubuntu 12.04
OpenProject running with Apache Phassenger
Install Ubuntu 12.04 server instance (based on information given and from my own research)
1.0 Install all necessary updates / upgrades
$ sudo apt-get update && sudo apt-get upgrade
1.1.0 Install Dependencies
$ sudo apt-get install git curl
1.1.1 Install Dependencies: Gems
$ sudo apt-get install build-essential libxslt-dev libxml2-dev libmysql-ruby libmysqlclient-dev libpq-dev libsqlite3-dev libyaml-0-2
1.1.2 Install Dependencies: Images
$ sudo apt-get install libmagickwand-dev libmagickcore-dev libmagickcore4-extra libgraphviz-dev libgvc5
1.1.3 Install Dependencies: MySQL
$ sudo apt-get install mysql-server
note* run through the defaults and input the password for root user
1.1.4 Install Dependencies: MemCached
$ sudo apt-get install memcached
1.1.5 Install Apache2
(don’t do this step, it caused my development enviro to go all funky such as the drop downs not working)
(If you do wish to use it with Apache and Passenger, you must install these dependencies or passenger module will ask you to install them)
$ sudo apt-get install apache2 apache2-mpm-prefork apache2-prefork-dev libcurl4-openssl-dev
2.0.0 Create User \ Group openproject
$ sudo groupadd openproject
$ sudo useradd —create-home —gid openproject openproject
$ sudo passwd openproject
2.0.1 Switch to openproject user
$ su openproject -c ‘bash -l’
2.0.2 Switch to home directory
$ cd ~
2.1.0 Install RVM
$ \curl -L https://get.rvm.io | bash -s stable
$ source $HOME/.rvm/scripts/rvm
2.1.1 Install Ruby using RVM
$ rvm autolibs disable
$ rvm install 2.0.0
2.1.2 Install bundler using gem
$ gem install bundler
3.0.0 Clone openproject repository
$ git clone https://github.com/opf/openproject.git
$ cd openproject
3.1.0 Run Bundler to install all gems
$ bundle install —without postgres rmagick
3.2.0 Configure yml files
$ cd config
3.2.1
$ cp database.yml.example database.yml
$ cp configuration.yml.example configuration.yml
3.2.2 Configuring the database.yml
3.2.3 Configuring the configuration.yml
edit: remove comment to enable memcached
rails_cache_store: :memcache
3.3.0
Should have the following: /home/openproject/openproject/config -> database.yml and configuration.yml
4.0.0 Configure database | config files
$ mysql -u root -p
CREATE DATABASE openproject CHARACTER SET utf8;
CREATE USER ‘openproject’
'localhost' IDENTIFIED BY 'my_password'; GRANT ALL PRIVILEGES ON openproject.* TO 'openproject'
‘localhost’;CREATE DATABASE openproject_development CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON openproject_development.* TO ‘openproject’@‘localhost’;
CREATE DATABASE openproject_test CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON openproject_test.* TO ‘openproject’@‘localhost’;
5.0.0 Run database migrations (it will tell you it already existed but I do it anyway)
$ bundle exec rake db:create:all
5.1.0 Render secret token
$ bundle exec rake generate_secret_token
5.2.0 Run migrate and seed - I prefer to do them separate but you can do them together as such
$bundle exec rake db:migrate
$bundle exec rake db:seed
5.3.0 Precompile everything for production site as this will reduce load times between requests to the server
$ RAILS_ENV=“production” bundle exec rake assets:precompile
5.4.0 Test it by running in development mode, access the site via http://ipaddress:3000 before wasting time loading into apache
$ bundle exec rails server
Please note, this build is great, but the production enviro never works for me. its a sad day… sigh
Apache / Passenger is what is probably killing my installs :(
If you wish to try it out, do them in the order of the nomenclature
2.1.3 Install Rails | Phusion Passenger
(This step is for Phusion Passenger, Don’t try unless you want it to screw up your site, or at least I can get it to work up to this point)
$ gem install rails —no-ri —no-rdoc
2.1.4
$ gem install passenger
2.2.0
$ passenger-install-apache2-module
2.2.1 Write everything down
It will now provide information used for loading the passenger module into apache which points to your ruby / rail stuff as well as what is required for your virtual host.
So please write this information down and do not rely on this instruction manual in case you happen to get a later version of passenger or 2.0.0 patch level.
6.0.0 Deploy into Apache using Passenger - require info from passenger setup
$ su ‘username’
6.0.1 Copy production.rb file when doing any changes
$ cp /config/environments/production.rb /config/environments/production.rb.backup
6.0.2 Access file for editing, i prefer VIM
$ sudo vi production.rb
edit: change from true to false, apache should have done so already
config.server_static_assets = false
6.1.0 Create the Passenger load file from information given from passenger install
$ sudo vi /etc/apache2/mods-available/passenger.load
edit:
LoadModule passenger_module /home/openproject/.rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.37/buildout/apache2/mod_passenger.so
6.1.1 Create the Passenger conf file from information given from install
edit:
PassengerRoot /home/openproject/.rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.37
PassengerDefaultRuby /home/openproject/.rvm/gems/ruby-2.0.0-p353/wrappers/ruby
6.2.0 Enable necessary components on Apache - Mod and Site
$ sudo a2enmod passenger
6.2.1
create virtual host file in /etc/apache2/sites-available
$ sudo vi /etc/apache2/sites-available/openproject
edit:
<VirtualHost *:80>
ServerName www.momentum-project.ca:
DocumentRoot /home/openproject/openproject/public
RailsEnv production
<Directory /home/openproject/openproject/public>
AllowOverride all
Options -MultiViews
6.2.2 Enable openproject virtual host file
$ sudo a2ensite openproject
6.2.3 Disable default site
$ sudo a2dissite default
7.0.0 Browse to machine from local or another workstation depending on setup (I prefer another workstation)
http://X.X.X.X
login with default admin credentials:
admin
admin
Known issues: Complete install and test using localhost:3000 while utilizing WEBrink or whatever it is called. I’ve completed install with many different dependencies installed and noticed the Apache dependencies crashed my enviro everytime. I don’t want to say crash, but it basically puts it in a state as described as, drop downs don’t work.
Other known issues from what I can see is production never worked for me no matter how I installed. Development is slow no matter what suggested actions are taken.
I am really hoping this is all worked out, this has so far been the best open source project management system out there. User friendly, has all the functionality I need and is better than chiliproject / redmine… Well until all of this is sorted out and your documentation / feedback is improved. Very sad to see that there are very few replies to the forums. sigh
Hello,
I had a similar Problem. The Javascript Error was:
SCRIPT5007: Unable to get property ‘version’ of undefined or null reference
application-2735e2571858e34bdc34d81429580202.js, line 608 character 132
I looked around the Internet and found:
It seems that newer Versions of jquery do not Support $.browser. It helped to add the
jquery-migrate gem in my case.
Had also to edit
app/assets/javascripts/application.js.erb
(added a line
behind