Open rkraemer opened 4 years ago
I generally use docker-compose to run these commands. In this case, it would help because you're trying to run the redmine container without starting the database container.
A similar command with docker-compose might be: which should start the depending containers as well.
$ docker-compose run redmine app:rake redmine:plugins:migrate NAME=clipboard_image_paste VERSION=0
Creating docker-redmine_postgresql_1 ... done
Initializing logdir...
Initializing datadir...
Symlinking dotfiles...
Installing configuration templates...
Configuring redmine...
Configuring redmine::database..
Configuring redmine::unicorn...
Configuring redmine::secret_token...
Generating a session token...
Note:
All old sessions will become invalid.
Please specify the REDMINE_SECRET_TOKEN parameter for persistence.
**SHOULD** be defined if you have a load-balancing Redmine cluster.
Configuring redmine::max_concurrent_ajax_uploads...
Configuring redmine::sudo_mode...
Configuring redmine::autologin_cookie...
Configuring redmine::backups...
Configuring nginx...
Configuring nginx::redmine...
Running raketask redmine:plugins:migrate...
Plugin clipboard_image_paste was not found.
Note: I don't know if you need to uninstall the plugin. If it failed during install I would have expected the database to back out the changes.
Hi there, sporadically we also have problems with the installation of plugins. Since input via the console via the Synology DSM is only possible with difficulty, we do the following:
I've not run into any spontaneous issues with plugin install.
4 Download all used plugins again and store them in the plugins folder (very important, never use the old folders!)
This is a bit confounding. The docker image never modifies any of the files from the plugin folder. During launch, it copies all the files from data/plugins to inside the container, so there shouldn't be any way for Redmine to modify them either.
If recreating the plugins dir helps, then next time it happens: Move the plugins dir to say plugins_old, recreated it like you normally do and then diff the two folders to see what has changed. diff -r plugins_old plugins
The tmp, backups, and files directory are the only ones the container actually writes to. It's always been enough to delete the tmp directory and bring the container down and back up to recover from something that's gone wrong.
I use this docker-redmine on a Synology via docker-compose and it runs well. Now I like to install the Plugin clipboard_past from "git clone https://github.com/peclik/clipboard_image_paste.git" an try to install it with docker exec -it redmine_redmine_1 redmine-install-plugins but it fails with an error.
Now I try to deinstall the Plugin as described in the wik, but this failed also. I try with and without the DB environment, but rake can
t connect to the db and therefor not deinstall the plugin.
docker run --name=redmine -it --rm \ --env='DB_ADAPTER=postgresql' \ --env='DB_HOST=localhost' \ --env='DB_PORT=5432' \--env='DB_NAME=redmine_production' \ --env='DB_USER=redmine' --env='DB_PASS=DBRedmine1' \ --volume=/volume1/docker/redmine/redmine_data:/home/redmine/data \ sameersbn/redmine:4.1.1-2 \ app:rake redmine:plugins:migrate NAME=clipboard_image_paste VERSION=0`
Note: I renamed the volume redmine_data: instead redmine.
What is wrong? As this faulty plugin can´t be deinstalled, instalation of other plugins are blocked.
Thanks for your support. regards Ralf