EzDevInfo.com

openproject

OpenProject is a web-based project management system built on Ruby on Rails OpenProject.org - Open source project collaboration software openproject is free and open source software for project management with a wide set of features and plugins and an active international community.

Start Rails application on Boot

I have OpenProject, a Ruby on Rails application, I want to make it up with the system boot, made a script and call this script in Upstart, but when I see the log, the following message appears: /usr/bin/env: ruby: File or directory not found. The script is as follows:

#!/bin/bash

cd /home/openproject/openproject
bundle exec rails server -d >> ~/log

Source: (StackOverflow)

Setting up OpenProject on OpenShift

I'm trying to install OpenProject on OpenShift but I'm having difficulties in understanding the process. I've managed to create an OpenShift application and SSH into the domain, however I don't have permissions to download the zip file / create the folder as in the instructions.

I have to mention that my GIT/Ruby/Openshift knowledge is very limited.

Has anyone tried this before? Can you tell me if it's possible and how?

Thanks!


Source: (StackOverflow)

Advertisements

builder install --without rmagick failed in openproject

I got openproject running in windows after a long struggle since new to ruby world. I cannot suggest to my colleagues until install this openproject in Oracle Linux (part of RHEL).

Checked out openproject from Git successfully using following cmd

git clone https://github.com/opf/openproject.git
cd openproject
git checkout stable

next When i run builder install --without rmagick getting following error,

...
....
.....
Using addressable 2.3.4
Using awesome_nested_set 2.1.6
Using debug_inspector 0.0.2

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby -r ./siteconf20141018-4810-1x3qn6f-0.rb extconf.rb 
creating Makefile

make  clean

make
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I.   -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing  -fPIC  -O0 -std=c99  -c binding_of_caller.c
binding_of_caller.c:4:21: error: vm_core.h: No such file or directory
binding_of_caller.c:5:22: error: rubys_gc.h: No such file or directory
binding_of_caller.c:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
binding_of_caller.c: In function ‘binding_memsize’:
binding_of_caller.c:34: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:34: error: (Each undeclared identifier is reported only once
binding_of_caller.c:34: error: for each function it appears in.)
binding_of_caller.c: In function ‘binding_free’:
binding_of_caller.c:40: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:40: error: ‘bind’ undeclared (first use in this function)
binding_of_caller.c:41: warning: implicit declaration of function ‘RUBY_FREE_ENTER’
binding_of_caller.c:46: warning: implicit declaration of function ‘RUBY_FREE_LEAVE’
binding_of_caller.c: In function ‘binding_mark’:
binding_of_caller.c:52: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:52: error: ‘bind’ undeclared (first use in this function)
binding_of_caller.c:53: warning: implicit declaration of function ‘RUBY_MARK_ENTER’
binding_of_caller.c:56: warning: implicit declaration of function ‘RUBY_MARK_UNLESS_NULL’
binding_of_caller.c:63: warning: implicit declaration of function ‘RUBY_MARK_LEAVE’
binding_of_caller.c: At top level:
binding_of_caller.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘binding_data_type’
binding_of_caller.c: In function ‘binding_alloc’:
binding_of_caller.c:77: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:77: error: ‘bind’ undeclared (first use in this function)
binding_of_caller.c:78: warning: implicit declaration of function ‘TypedData_Make_Struct’
binding_of_caller.c:78: error: ‘binding_data_type’ undeclared (first use in this function)
binding_of_caller.c: At top level:
binding_of_caller.c:82: error: expected ‘)’ before ‘*’ token
binding_of_caller.c:86: error: expected ‘)’ before ‘*’ token
binding_of_caller.c:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
binding_of_caller.c: In function ‘frametype_name’:
binding_of_caller.c:108: error: ‘VM_FRAME_MAGIC_MASK’ undeclared (first use in this function)
binding_of_caller.c:109: error: ‘VM_FRAME_MAGIC_METHOD’ undeclared (first use in this function)
binding_of_caller.c:110: error: ‘VM_FRAME_MAGIC_BLOCK’ undeclared (first use in this function)
binding_of_caller.c:111: error: ‘VM_FRAME_MAGIC_CLASS’ undeclared (first use in this function)
binding_of_caller.c:112: error: ‘VM_FRAME_MAGIC_TOP’ undeclared (first use in this function)
binding_of_caller.c:113: error: ‘VM_FRAME_MAGIC_CFUNC’ undeclared (first use in this function)
binding_of_caller.c:114: error: ‘VM_FRAME_MAGIC_PROC’ undeclared (first use in this function)
binding_of_caller.c:115: error: ‘VM_FRAME_MAGIC_IFUNC’ undeclared (first use in this function)
binding_of_caller.c:116: error: ‘VM_FRAME_MAGIC_EVAL’ undeclared (first use in this function)
binding_of_caller.c:117: error: ‘VM_FRAME_MAGIC_LAMBDA’ undeclared (first use in this function)
binding_of_caller.c: In function ‘binding_of_caller’:
binding_of_caller.c:125: error: ‘rb_thread_t’ undeclared (first use in this function)
binding_of_caller.c:125: error: ‘th’ undeclared (first use in this function)
binding_of_caller.c:126: warning: implicit declaration of function ‘GetThreadPtr’
binding_of_caller.c:128: error: ‘rb_control_frame_t’ undeclared (first use in this function)
binding_of_caller.c:128: error: ‘cfp’ undeclared (first use in this function)
binding_of_caller.c:128: warning: implicit declaration of function ‘RUBY_VM_PREVIOUS_CONTROL_FRAME’
binding_of_caller.c:129: error: ‘limit_cfp’ undeclared (first use in this function)
binding_of_caller.c:140: warning: implicit declaration of function ‘valid_frame_p’
binding_of_caller.c:141: warning: implicit declaration of function ‘find_valid_frame’
binding_of_caller.c:145: error: ‘rb_binding_t’ undeclared (first use in this function)
binding_of_caller.c:145: error: ‘bind’ undeclared (first use in this function)
binding_of_caller.c:150: warning: implicit declaration of function ‘GetBindingPtr’
binding_of_caller.c:152: warning: implicit declaration of function ‘rb_vm_make_env_object’
binding_of_caller.c:154: warning: implicit declaration of function ‘rb_vm_get_sourceline’
binding_of_caller.c: In function ‘frame_count’:
binding_of_caller.c:176: error: ‘rb_thread_t’ undeclared (first use in this function)
binding_of_caller.c:176: error: ‘th’ undeclared (first use in this function)
binding_of_caller.c:179: error: ‘rb_control_frame_t’ undeclared (first use in this function)
binding_of_caller.c:179: error: ‘cfp’ undeclared (first use in this function)
binding_of_caller.c:180: error: ‘limit_cfp’ undeclared (first use in this function)
make: *** [binding_of_caller.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/binding_of_caller-0.7.2 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/extensions/x86_64-linux/1.8/binding_of_caller-0.7.2/gem_make.out
An error occurred while installing binding_of_caller (0.7.2), and Bundler cannot continue.
Make sure that `gem install binding_of_caller -v '0.7.2'` succeeds before bundling.

i cannot understand whether this error related to any dependency problem or am i checked out an wrong version.

Please help me out.


Source: (StackOverflow)

Setting up Open Project email

has anyone ever set up their open project email that the program comes with? Open Project is an open source program. I was just curious, lets say I set up my email settings, how do I test it to make sure it works? I am not sure what to be looking for.

Best

Mike


Source: (StackOverflow)

Cannot install openproject in Windows7 64 bit - undefined method `dlopen' for Fiddle:Module

I cannot install openproject in my system, i have followed all the steps mentioned in the openproject wiki document

I have Windows 7 64 bit and
installed ruby using railsinstaller 2.2.4 from here
mysql mysql-5.6.21-winx64 from here
mysql 32 bit client from here
openproject from git location
Followed document from openproject guide.
i am getting following error,kindly guide to get rid of this issue.
I am very new to Ruby

C:\Users\Administrator\openproject>bundle exec rake db:create:all
require 'rails/all'... 2.309s
Bundler.require... rake aborted!
NoMethodError: undefined method `dlopen' for Fiddle:Module
C:/Users/Administrator/openproject/config/application.rb:68:in `block in <top (required)>'
C:/Users/Administrator/openproject/config/application.rb:44:in `block in bench'
C:/Users/Administrator/openproject/config/application.rb:43:in `bench'
C:/Users/Administrator/openproject/config/application.rb:67:in `<top (required)>'
C:/Users/Administrator/openproject/Rakefile:33:in `require'
C:/Users/Administrator/openproject/Rakefile:33:in `<top (required)>'
(See full trace by running task with --trace)

Source: (StackOverflow)

Why do I get "No such file to load"? [duplicate]

This question already has an answer here:

I am working on installing Open Project and I ran bundle exec rails server and got:

root@bistro2:/home/openproject/openproject# bundle exec
/usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8:in `require': no such file to load -- rubygems (LoadError)
        from /usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8
        from /usr/lib/ruby/vendor_ruby/bundler.rb:11:in `require'
        from /usr/lib/ruby/vendor_ruby/bundler.rb:11
        from /usr/bin/bundle:4:in `require'
        from /usr/bin/bundle:4
root@bistro2:/home/openproject/openproject# 

Source: (StackOverflow)

Rails mailer smtp configuration with gmail

So I am having trouble setting up this rails application(OpenProject, if it makes a difference). When I try the send a test mail in the openproject settings it displays a message in that the e-mail was sent but I don’t ever receive it at the address.

Contents of config/configuration.yml production: delivery_method: :smtp smtp_settings: tls: true address: "smtp.gmail.com" port: '587' domain: "smtp.gmail.com" authentication: :plain user_name: "your_email@gmail.com" password: "your_password"

development:
  delivery_method: :smtp
  smtp_settings:
    tls: true
    address: "smtp.gmail.com"
    port: '587'
    domain: "smtp.gmail.com"
    authentication: :plain
    user_name: "your_email@gmail.com"
    password: "your_password"

test:
  delivery_method: :test

If I use:

telnet smtp.gmail.com 587

Trying 64.233.171.108...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP r1sm2094806qam.42 – gsmtp

This leads me to think I can send to gmail but I cant receive from gmail. I have also tried all of the configurations such as port 25 and 456 as well as with SSL vs TLS and none. so I don't think it is just my ISP blocking the mail.

In my google settings → accounts and Import → add another email address you own Send mail through your SMTP server.

SMTP server: smtp.my_domain_name.com            Port: 587
    Username: my_username_on_my_domain
    Password: passwd
        TLS (recommended)       ← (I have this selected)
        SSL

I get the message Couldn't reach server. Please double-check the server and port number.

I did run

netstat -a

If the results of that would be helpful let me know.

Any help would be greatly appreciated. Thanks.


Source: (StackOverflow)

uninitialized constant I18n::JS Ruby on Rails

I am still having trouble with Ruby on Rails. I run rails s (this is for my openproject app) and I get this (before it was working). I also wanted to make a note I am now using Ruby 2.0 and I still get the same error.

require 'rails/all'... 0.850s
Bundler.require... 7.700s
/home/bistro/openproject/config/application.rb:89:in `<class:Application>': uninitialized constant I18n::JS (NameError)
        from /home/bistro/openproject/config/application.rb:61:in `<module:OpenProject>'
        from /home/bistro/openproject/config/application.rb:60:in `<top (required)>'
        from /home/bistro/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.2.16/lib/rails/commands.rb:53:in `require'
        from /home/bistro/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.2.16/lib/rails/commands.rb:53:in `block in <top (required)>'
        from /home/bistro/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.2.16/lib/rails/commands.rb:50:in `tap'
        from /home/bistro/.rvm/gems/ruby-1.9.3-p484/gems/railties-3.2.16/lib/rails/commands.rb:50:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'

Source: (StackOverflow)

PUT requests on RubyOnRails via Passenger 4.0.37 always take 30 seconds

We installed a RoR app using libapache2-mod-passenger. This application is 'openproject' (https://www.openproject.org/)

It has been working great for the past few months, but a few days ago, we moved several other stuff to this webserver (that already had php and php module for apache), such as a wordpress instalation and a few custom php pages...

I think I might have done a system upgrade via apt (using Debian 7) but can't recall anything relevant being updated...

The RoR app seemed fine at the time. Now I came to discover that when sumitting something new to this RoR app, it will always take 30 seconds extra!

On the browser shows as a POST, as does on apache log. The app log shows these requests as PUT, as other POSTS seem to go quick

Funny thing, is also that apache log will only show stuff, past those 30 seconds.

The request made from the browser takes about 31 seconds (varying, but always more than 30) until it gets a 302 code.

Some posts that the RoR app take as post go quick just fine..

I don't know what I should look at, any ideias to fix this 30 second issue?

Thanks in advance


Source: (StackOverflow)

Sprockets::FileNotFound: couldn't find file 'jquery' openproject

I tried to install openproject in windows 7 64 bit.

I followed the steps mentioned in openproject wiki, but cannot install it successfully, see the error log

openproject>bundle exec rake assets:precompile
DL is deprecated, please use Fiddle
require 'rails/all'... 1.887s
Bundler.require... 4.181s
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansic
on/) to get coloured output on Windows
Application.initialize!... [deprecated] I18n.enforce_available_locales will defa
ult to true in the future. If you really want to skip validation of your locale
you can set I18n.enforce_available_locales = false to avoid this message.
13.447s
rake aborted!
Sprockets::FileNotFound: couldn't find file 'jquery'
  (in C:/OpenProject/openproject/app/assets/javascripts/application.js.erb:13)

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

when i tried this Stakeoverflow solution i got the following error

openproject>bundle exec rake assets:clean assets:precompile
DL is deprecated, please use Fiddle
require 'rails/all'... 1.934s
Bundler.require... 4.321s
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansic
on/) to get coloured output on Windows
Application.initialize!... [deprecated] I18n.enforce_available_locales will defa
ult to true in the future. If you really want to skip validation of your locale
you can set I18n.enforce_available_locales = false to avoid this message.
13.135s
rake aborted!
Sprockets::FileNotFound: couldn't find file 'jquery-migrate/jquery-migrate'
  (in C:/OpenProject/openproject/app/assets/javascripts/application.js.erb:14)

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

Now i was cornered in last step of the installation. Any one Help me to solve this issue.

Thanks in advance.


Source: (StackOverflow)

Ruby 2.0 is not a valid platform

Hi all I am working with Phusion Passenger and I go to run my web app and it gives me Ruby 2.0 is not a valid platform. Here is my output below, any ideas?

Thanks!

ruby_20` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :mri, :mri_18, :mri_19, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19] (Bundler::DslError)
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:209:in `block in _normalize_options'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:207:in `each'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:207:in `_normalize_options'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:56:in `gem'
  /home/bistro/openproject/Gemfile:82:in `evaluate'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:7:in `instance_eval'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:7:in `evaluate'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:17:in `build'
  /usr/lib/ruby/vendor_ruby/bundler.rb:136:in `definition'
  /usr/lib/ruby/vendor_ruby/bundler.rb:124:in `load'
  /usr/lib/ruby/vendor_ruby/bundler.rb:107:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `<top (required)>'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/lib/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:96:in `preload_app'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:153:in `<module:App>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /var/lib/gems/1.9.1/gems/passenger-4.0.29/helper-scripts/rack-preloader.rb:28:in `<main>'

I have tried updating Ruby Gems, Updating Bundler, reinstalling Phusion - and I am not sure what else to do. Any thoughts?

Update 2:

I updated the Gem files in the Open project directory and still nothing.

It looks like Bundle updated now I am getting a different error:

Cannot execute "/var/lib/gems/1.9.1/gems/passenger-4.0.29/buildout/agents/SpawnPreparer": No such file or directory (errno=2) Application root /home/bistro/openproject Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV) production Ruby interpreter command /usr/bin/ruby1.9.1 User and groups Unknown Environment variables Unknown Ulimits Unknown

Source: (StackOverflow)

how to connect gitlab with openProject

Hello I have a requirement is it posible to connect somehow gitlab with openproject?

I have seen this https://www.openproject.org/news/57-openproject-github-integration-plugin-released
but not sure if it will help somehow with gitlab


Source: (StackOverflow)

Bundler is not installed/Path error when trying to run OpenProject setup

I don't have much experience with this type of thing, but hope someone could help. I believe I have bundler installed, but when I run the setup.rb file to install OpenProject, I keep getting an error that bundler isn't installed. When I run gem list and bundle list, it generates a list for both. What am I missing?

$ setup.rb
==> Installing OpenProject...
==> Checking Ruby Version
==> It seems you are not running the recommended patch level.
==> To avoid unexpected problems we would recommend to install 'ruby 1.8.7 (2012-10-12 patchlevel 371)'
==> Checking Bundler
The system cannot find the path specified.
==> It seems bundler is not installed. Please install bundler before running set
up.rb.
==> For bundler and more information visit: http://gembundler.com/
==> Something went wrong :(
==> Installation aborted.

Source: (StackOverflow)

openproject package install error on centos 7 x64 [on hold]

Running transaction

Installing : openproject-4.2.6-1439479767.f7bca92.centos7.x86_64 1/1

Error unpacking rpm package openproject-4.2.6-1439479767.f7bca92.centos7.x86_64

error: unpacking of archive failed on file /opt/openproject/vendor/bundle/ruby/2.1.0/gems/fog-1.23.0/tests/aws/requests/iam/role_tests.rb;55e16dff: cpio: read

Verifying : openproject-4.2.6-1439479767.f7bca92.centos7.x86_64 1/1

Failed: openproject.x86_64 0:4.2.6-1439479767.f7bca92.centos7

Tried many times, but keeps saying that there is an error unpacking.

ref: https://www.openproject.org/open-source/packaged-installation/packaged-installation-core/


Source: (StackOverflow)

ruby bundle install error when installing openproject

I'm trying to install Open Project and I'm stuck at the bundle install part for ruby.

When I run "bundle install", I get the following error:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h

Gem files will remain installed in /home/openproject/openproject/vendor/cache/ruby/gems/debug_inspector-0.0.2 for inspection. Results logged to /home/openproject/openproject/vendor/cache/ruby/gems/debug_inspector-0.0.2/ext/debug_inspector/gem_make.out An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue. Make sure that gem install debug_inspector -v '0.0.2' succeeds before bundling.

I've tried installing the gem itself but get the same error.

Any help with this would be greatly appreciated. If you need any additional info, please let me know what command I need to run to get the information and I'll provide it immediately. Thanks!


Source: (StackOverflow)