Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Internal error when accessing work packages

Internal error when accessing work packages

Added by alex r over 10 years ago

Hi all,

I have a new instance of OpenProject installed on ubuntu 10.4 - I followed the manual instructions - and when I try to access a work package, any type of work package, I get an internal server error.

In openproject/logs/production.log I have no meesage.

In /var/log/apache2/error.log I have the following entries
App 16965 stderr: /home/openproject/openproject/config/initializers/10-patches.rb:68:in `rescue in human_attribute_name’ : [DEPRECATION] Relying on Redmine::I18n addition of `field_` to your translation key “id” on the “WorkPackage” model is deprecated. Please use proper ActiveRecord i18n!
App 16965 stderr: Caught: translation missing: en.activerecord.attributes.work_package.id (StandardWarning)

Is there another log I can look into?

Thanks a lot!
Alex


Replies (21)

RE: Internal error when accessing work packages - Added by Stu Thomas about 10 years ago

BUMP … I go the same error.log on my fresh install after trying to addd a Work Package to my first Project … Does anyone have a solution to fix this without completely reinstalling?

RE: Internal error when accessing work packages - Added by Mikael Engström about 10 years ago

Also getting the same using a demo account on demoname.openproject.com

RE: Internal error when accessing work packages - Added by alex r about 10 years ago

@Thomas, in my case the problem was caused by the order of the plugins in Gemfile.plugins. After I changed it, everything worked ok - I found the solution somewhere on the forum, but now I cannot find the post :(.

The current working order I have in my Gemfile.plugins is:

gem “openproject-pdf_export”, git: “https://github.com/finnlabs/openproject-pdf_export.git”, :branch => “stable”

gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => ‘stable’

gem ‘openproject-meeting’, :git => ‘https://github.com/finnlabs/openproject-meeting.git’, :branch => ‘stable’

gem ‘openproject-my_project_page’, :git => ‘https://github.com/finnlabs/openproject-my_project_page.git’, :branch => ‘stable’

gem ‘openproject-documents’, :git => ‘https://github.com/opf/openproject-documents.git’, :branch => ‘stable’

gem ‘reporting_engine’, :git => ‘https://github.com/finnlabs/reporting_engine.git’, :branch => ‘stable’

gem “openproject-ensure_project_hierarchy”, :git => “https://github.com/oliverguenther/openproject-ensure_project_hierarchy.git”, :branch => ‘master’

gem “openproject-backlogs”, git: “https://github.com/finnlabs/openproject-backlogs.git”, :branch => “stable”

@Mikael, unfortunately I cannot help with the demo account…

Alex

RE: Internal error when accessing work packages - Added by Dumitru Gutu about 10 years ago

Hi Alex, could you tell us what version of Openproject package do you use, a core or a community edition?
Thanks.

RE: Internal error when accessing work packages - Added by alex r about 10 years ago

Hi Dumitru,

I’m using Openproject 4 - I did a manual install by taking the stable version form github (git describe says: v4.0.4-23-g0bf3a7c.)

Alex

RE: Internal error when accessing work packages - Added by Stu Thomas about 10 years ago

I ended up doing a fresh install … which fixed the problem

RE: Internal error when accessing work packages - Added by Dumitru Gutu about 10 years ago

Yes, I can also confirm that on fresh install I wasn’t able to reproduce the error mentined by “alex”

RE: Internal error when accessing work packages - Added by Kendell Welch about 10 years ago

Did anyone ever figure this out? I have OpenProject 4 on Ubuntu. I changed the order of my Gemfile.plugins file as described above. I have uninstalled and reinstalled. Can’t get this to work. I can create projects just file, but can’t create a Work Package. Please Help!

RE: Internal error when accessing work packages - Added by alex r about 10 years ago

I was able to get rid of the error by changing the order the extra packages were installed - I modified the Gemfile.plugins, and the following order had worked for me:

gem “openproject-pdf_export”, git: “https://github.com/finnlabs/openproject-pdf_export.git”, :branch => “stable”

gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => ‘stable’

gem ‘openproject-meeting’, :git => ‘https://github.com/finnlabs/openproject-meeting.git’, :branch => ‘stable’

gem ‘openproject-my_project_page’, :git => ‘https://github.com/finnlabs/openproject-my_project_page.git’, :branch => ‘stable’

gem ‘openproject-documents’, :git => ‘https://github.com/opf/openproject-documents.git’, :branch => ‘stable’

gem ‘reporting_engine’, :git => ‘https://github.com/finnlabs/reporting_engine.git’, :branch => ‘stable’

gem “openproject-ensure_project_hierarchy”, :git => “https://github.com/oliverguenther/openproject-ensure_project_hierarchy.git”, :branch => ‘master’

gem “openproject-backlogs”, git: “https://github.com/finnlabs/openproject-backlogs.git”, :branch => “stable”

Alex

RE: Internal error when accessing work packages - Added by Kendell Welch about 10 years ago

Thanks, but I tried that. Still can’t create work packages.

RE: Internal error when accessing work packages - Added by alex r about 10 years ago

:( unfortunately I have no other idea…

RE: Internal error when accessing work packages - Added by Kendell Welch about 10 years ago

Could you possibly post your exact Gemfile.plugins file verbatim?

RE: Internal error when accessing work packages - Added by Kendell Welch about 10 years ago

Did anybody figure this out? I have completely re-installed on both Ubuntu and Debian (yes, the supported versions, and yes, complete machine wipe) and I still get an internal error. I don’t know if the packaged installer is grabbing the wrong version(s) or something, but it don’t work. I have also followed the manual installation procedure by copy-and-pasting each command verbatim, and I can’t get that to work at all.

What’s up here?

Thanks,
Kendell

RE: Internal error when accessing work packages - Added by Karsten Gallinowski almost 10 years ago

Hi Kendell,

maybe we should start over and try again what went wrong during your installation. First of all from what you wrote above I can’t tell if you did a manual or packager installation. So can you please clarify this for me.

The next step should be to install everything step by step and check if it is working or not. Especially if you do a manual installation it is a good approach to install the core without plugins first. Then test if it is working. If it is proceed.

Unfortunately the installation of plugins is a manual and error prone process. So please try to get the core to work and come back and we will figure out what the problem is with the plugins together.

Or you use the package installation (Community Edition) and we try to get everything working with this version.

What do you think?

Regards,
Karsten

RE: Internal error when accessing work packages - Added by Kendell Welch almost 10 years ago

Hi Karsten,

I’ve done both the manual installation on the recommended version of Ubuntu (that doesn’t work at all,) and then completely wiped the machine, reinstalled the recommended version of Ubuntu, and did the packaged installation (openproject-ce) …experienced this problem. I again wiped the machine and installed the recommended version of Debian. Same problem.

The really weird thing here is, it seems random as to who experiences the problem. For instance, my boss’ account works fine with all features. However my account and another IT guy’s account can’t create work packages. All three accounts are identical as far as permissions.

I can’t really re-install at this point because we’ve started using the system and have a bunch of data in the system.

This has to be something tied to the accounts, and I haven’t the slightest clue what it is. Further, I don’t know what the default login to the MySQL server is, so I can’t even poke around in there to figure it out.

-Kendell

RE: Internal error when accessing work packages - Added by Karsten Gallinowski almost 10 years ago

Hi Kendell,

the MySQL password should be located in /etc/openproject-ce/install.dat. All other configuration information are also available in the directory /etc/openproject-ce.

What about the broken SMTP configuration we discovered in the other thread?

Regards,
Karsten

RE: Internal error when accessing work packages - Added by Kendell Welch almost 10 years ago

As for my Work Package issue, I got it resolved yesterday. I upgraded to 4.1.1…the first time around was a massive fail, but after a “apt-get remove openproject-ce” and “apt-get install openproject-ce” following the supplied instructions, magically everything worked correctly. I’m going full-steam on that front.

As for the email connectivity, I’m still working on that. I’ve modified configuration.yml as described in another thread, but no luck yet. Don’t know if rebooting the server will reset it. Also, while I don’t think this is the case, I’m not 100% positive that my SMTP server is working correctly, so I’ll look in to that today. I have another project to work on today that involves my Exchange server, so will investigate during that process.

RE: Internal error when accessing work packages - Added by Karsten Gallinowski almost 10 years ago

Hi Kendell,

thanks for the info. Please keep in mind that it is NOT recommended to configure openproject-ce via configruation.yml. Please use the openproject-ce config command for that. Packager installations work a little bit different from manual installations (especially when it comes to configuration).

Please read the following article https://www.openproject.org/open-source/packaged-installation/packaged-installation-community/ on how to configuration your installation (the “OpenProject command line tool” part of the article).

As always please inform us about progress. We will try to help.

Cheers,
Karsten

RE: Internal error when accessing work packages - Added by Kendell Welch almost 10 years ago

Karsten,

I configured using openoffice-ce reconfig, and got the email to seem as if it were working (and verified that my SMTP relay is working properly.) However, when I “Send a Test Email” from the Settings page, it says that it sent, but nothing comes through. I’ve seen a couple of other mentions of this on this forum, but no clear answers. I’m open to ideas :)

Thanks
Kendell

RE: Internal error when accessing work packages - Added by Kendell Welch almost 10 years ago

I wonder if hand-editing the configuration.yml file is my problem. When I did that (which I did initially) there were references to Environment variables. I notice now after having use the reconfigure utility, those variables are still not there. Should I replace with an original copy and try again. And if so, do you or someone else have a copy of the original sitting around somewhere?

RE: Internal error when accessing work packages - Added by Kendell Welch almost 10 years ago

I found a backup of the file and restored it to its original state. The ran “openproject-ce reconfigure”…no dice.

  • (1 - 21/21)
Loading...