alphanodes / additionals

Redmine plugin for easy customization of settings, text and content display by using personal or role-based dashboards (drag&drop), providing wiki macros and act as library for other plugins.
https://www.redmine.org/plugins/additionals
GNU General Public License v2.0
131 stars 43 forks source link

Error installing plugin #90

Open KlausAdler opened 3 years ago

KlausAdler commented 3 years ago

I try to install Pluigin in bitnami Redmine stack 4.1.1.

When executing 'bundle exec rake redmine:plugins:migrate RAILS_ENV=production' I get the following error: 'fatal: not a git repository (or any of the parent directories): .git' And after restarting redmine server, it stopps after a few seconds.

Removing the other plugins will also not help. What can I do?

image

alexandermeindl commented 3 years ago

Hi @KlausAdler

this looks like you have a problem with your redmine environment. This has nothing to do with this plugin. Maybe you can get support to your system on Bitnami community to get more information.

KlausAdler commented 3 years ago

It's strange, it appears only with the additionals plugin.

KlausAdler commented 3 years ago

I don't know what are the effects, but when I remove the following lines from additionals.gemspec, than redmine seems to work. spec.files = git ls-files -z.split("\x0").reject do |f| f.match(%r{^((test|spec|features)/|Gemfile)}) end

I'm using 'BITNAMI REDMINE STACK INSTALLERS' on windows. Do you have any idea, what is going wrong.

alexandermeindl commented 3 years ago

How did you install additionals plugin? If you use the https://github.com/AlphaNodes/additionals#installation, you use git to install it and you should have a .git directory in the root directory of the plugin. If .git directory exists in your plugin directory, it should work without modifying any file.

alexandermeindl commented 3 years ago

Hi @KlausAdler

with my last update, you installation should also work without a .git directory. I hope, this helps.

alexandermeindl commented 3 years ago

Hello @KlausAdler

could you solve the problem in the meantime or did you try it with the latest version of additionals?

KlausAdler commented 3 years ago

Hello,

I tried it again with a fresh installation. When I copy the files from the git repository to the plugin directory manually, than it works. When I get the plugin with git clone, than the installation with the new version works, but when I restart Redmine the Servers 'Thin_redmine' and Thin_redminse2' stopps after some time.

Thanks for your help.

rsubashELS commented 3 years ago

Following. Facing similar issue with additional installation.

alexandermeindl commented 3 years ago

Hi, can you provide some log files with error messages?

rsubashELS commented 3 years ago

I dont see any error in the Production log file. Can you please mention which log file is needed? Thanks

alexandermeindl commented 3 years ago

We do not use bitnami. Maybe you can get help from bitnami community about your available log files. I suppose thin is your application server - this log file would be interesting. Maybe you find information in your syslog, too (/var/log/syslog or /var/log/messages)

gessel commented 3 years ago

I cloned -b stable as an update (from 2.0.33) and got a similar error. There is a .git directory and # bundle install worked fine, as do the normal update rakes, but on accessing the site I get:

[!] There was an error while loading `additionals.gemspec`: No such file or directory - git. Bundler cannot continue.

 #  from /usr/local/www/redmine/plugins/additionals/additionals.gemspec:16
 #  -------------------------------------------
 #  
 >    spec.files         = `git ls-files -z`.split("\x0").reject do |f|
 #      f.match(%r{^((test|spec|features)/|Gemfile)})
 #  -------------------------------------------
. Bundler cannot continue.

Happy to test or provide logs. redmine4-4.1.1_5 ruby-2.7.2_1,1 FreeBSD 11.3-RELEASE-p8

gessel commented 3 years ago

oh, and deleting the lines

  spec.files         = `git ls-files -z`.split("\x0").reject do |f|
    f.match(%r{^((test|spec|features)/|Gemfile)})
  end

resolves the issue for me as well.

alexandermeindl commented 3 years ago

Hi @gessel

thanks for your feedback. Did you read my comment https://github.com/AlphaNodes/additionals/issues/90#issuecomment-762110132 Can you try if it works with the current master without changing spec.files?