Comments (6)
The following command is used to check if mysql is reachable, can you try that as well.
mysqladmin -h ${DB_HOST} -P ${DB_PORT} -u ${DB_USER} ${DB_PASS:+-p$DB_PASS} status
from docker-redmine.
Note it might help to read through this issue as well
#399
As far as I can tell all of this works okay when the host is ubuntu so not sure what Synology is doing things differently.
from docker-redmine.
Hi jcormier,
I tryed you command in the SSH shell and get the following:
root@CCNAS01:~# docker exec -it CC_Redmine_Prod bash
root@cc_redmine_prod:/home/redmine/redmine# mysqladmin -h Synology_NAS_IP -P 3306 -u REDMINEDBUSER -pREDMINEDBPW status
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
Uptime: 100519 Threads: 14 Questions: 30904 Slow queries: 0 Opens: 14477 Open tables: 10 Queries per second avg: 0.307
root@cc_redmine_prod:/home/redmine/redmine#
from docker-redmine.
Solved:
WRONG
DB_USERNAME: REDMINEDBUSER
DB_PASSWORD: REDMINEDBPW
CORRECT
DB_USER: REDMINEDBUSER
DB_PASS: REDMINEDBPW
And a big AND change the following:
ports:
#- 8059:3000
- 8059:80
- 8060:443
Now I'm in the loginpage and could change the PW for admin.
Hope this helps some one other who uses portainer on hin Synology NAS and would install Redmine with the MySQL from external.
from docker-redmine.
And for completeness, here are the yml for Redmine, deploying it via portainer.io on a Synology NAS in docker with an external MariaDB/MySQL Server:
version: '3.9'
services:
redmine:
image: sameersbn/redmine:latest
container_name: Redmine_Prod
hostname: redmine_prod
environment:
DB_ADAPTER: mysql2
DB_HOST: <YOUR_SQLSRV_IP>
DB_PORT: 3306
DB_NAME: redmine
DB_USER: redmine
DB_PASS: redmine
volumes:
- /volume1/docker/redmine/files:/usr/src/redmine/files:rw
- /volume1/docker/redmine/data:/home/redmine/data:rw
- /volume1/docker/redmine/log:/var/log/redmine:rw
ports:
- 8059:80
- 8060:443
restart: always
Please keep in mind, if you are using an external SQL server, you first have to create the user and the database, otherwise it will not be working and don't forget to create the folders for the volumes ;)
Hope this save others hours of finding errors... I spend over 9h to get it functional, but it depends on my low experrience with docker.
Cheers,
Firehead
from docker-redmine.
Glad to hear it
from docker-redmine.
Related Issues (20)
- Switch from using the :Async active_job.queue_adapter
- Unsupported Redmine version for version > v5 HOT 3
- How to make custom log changes persistent HOT 2
- Installing Plugin to the redmine HOT 2
- Ruby 3.2 support HOT 11
- sameersbn/mysql restarts constantly HOT 2
- Help:Unknown system variable "transaction_isolation" HOT 6
- Multiple problems on rebuilding the redmine image HOT 3
- Upgrade from 5.1.0 to 5.1.1-1 rake aborted HOT 9
- postgresql container fails to start and report error: popen failure: unable to allocate memory initdb: error: The program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/14/bin/initdb". HOT 2
- How to upgrade from sameersbn/redmine: 4.1.1-8 to sameersbn/redmine: 5.1.1-1 ? HOT 5
- redmine:5.1.1-1 ocker-compose up error HOT 3
- An error occurred while sending mail HOT 10
- Can't download large files HOT 4
- Build is failing HOT 4
- Run sameersbn/redmine with an External Azure MySQL database HOT 2
- 5.1.1-4 dies because of Matrix in gem HOT 7
- MOving back from 5.1.1 to 5.0.7 HOT 1
- Bug: github workflow should only tag "latest" for changes to master branch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-redmine.