Comments (5)
No, the problem does not come from there.
cp settings.json.template settings.json
diff settings.json settings.json.template
213c213 < "user": "etherpad", --- > "user": "etherpaduser", 216,217c216,217 < "password": "mypassword", < "database": "etherpad", --- > "password": "PASSWORD", > "database": "etherpad_lite_db",
Can you try the develop container? Maybe that fixes the issue.
from etherpad-lite.
Hi, I am changing my etherpad-lite server. I import and export the database on the new server and complete the settings.json file with the parameters of my database. No error but I stay in Dirty mode even though it is disabled I don't instant why.... I am on Debian 12 node -v : v18.19.0 npm -v : 9.2.0 Etherpad version is 1.9.7 (6814aa9)
` [INFO] settings - settings loaded from: /home/etherpad/settings.json [INFO] settings - No credentials file found in /home/etherpad/credentials.json. Ignoring. [INFO] settings - Using skin "colibris" in dir: /home/etherpad/src/static/skins/colibris [WARN] settings - DirtyDB is used. This is not recommended for production. File location: /home/etherpad/var/dirty.db [INFO] settings - Random string used for versioning assets: 6d6a2899 [INFO] server - Starting Etherpad... [INFO] plugins - check installed plugins for migration [INFO] plugins - Loading plugin ep_etherpad-lite... [INFO] plugins - Loaded 1 plugins [INFO] APIHandler - Api key file read from: "/home/etherpad/APIKEY.txt" [INFO] server - Installed plugins: [INFO] settings - Report bugs at https://github.com/ether/etherpad-lite/issues [INFO] settings - Your Etherpad version is 1.9.7 (6814aa9) [INFO] plugins - npm --version: 6.14.18 [INFO] http - HTTP server listening for connections
My settings.json []( /* * The type of the database. * * You can choose between many DB drivers, for example: dirty, postgres, * sqlite, mysql. * * You shouldn't use "dirty" for for anything else than testing or * development. * * * Database specific settings are dependent on dbType, and go in dbSettings. * Remember that since Etherpad 1.6.0 you can also store this information in * credentials.json. * * For a complete list of the supported drivers, please refer to: * https://www.npmjs.com/package/ueberdb2 */ /* * An Example of MySQL Configuration (commented out). * * See: https://github.com/ether/etherpad-lite/wiki/How-to-use-Etherpad-Lite-with-MySQL */ /* "dbType" : "mysql", "dbSettings" : { "user": "etherpad", "host": "localhost", "port": 3306, "password": "mypassword", "database": "etherpad", "charset": "utf8mb4" }, */ )
I think your settings.json is formatted incorrectly. Try this:
{/*
* The type of the database.
*
* You can choose between many DB drivers, for example: dirty, postgres,
* sqlite, mysql.
*
* You shouldn't use "dirty" for for anything else than testing or
* development.
*
*
* Database specific settings are dependent on dbType, and go in dbSettings.
* Remember that since Etherpad 1.6.0 you can also store this information in
* credentials.json.
*
* For a complete list of the supported drivers, please refer to:
* https://www.npmjs.com/package/ueberdb2
*/
/*
* An Example of MySQL Configuration (commented out).
*
* See: https://github.com/ether/etherpad-lite/wiki/How-to-use-Etherpad-Lite-with-MySQL
*/
/*
"dbType" : "mysql",
"dbSettings" : {
"user": "etherpad",
"host": "localhost",
"port": 3306,
"password": "mypassword",
"database": "etherpad",
"charset": "utf8mb4"
}
}
from etherpad-lite.
No, the problem does not come from there.
cp settings.json.template settings.json
diff settings.json settings.json.template
213c213
< "user": "etherpad",
---
> "user": "etherpaduser",
216,217c216,217
< "password": "mypassword",
< "database": "etherpad",
---
> "password": "PASSWORD",
> "database": "etherpad_lite_db",
from etherpad-lite.
/*
"dbType" : "mysql",
"dbSettings" : {
"user": "etherpad",
"host": "localhost",
"port": 3306,
"password": "mypassword",
"database": "etherpad",
"charset": "utf8mb4"
},
*/
The problem is that the MySQL section is commented out with /* and */.
Remove those and you should be able to connect to your database.
Also, above the MySQL section you'll find a DirtyDB section that you have to remove or comment using the beforementioned /* and */.
from etherpad-lite.
Well done, all thanks and sorry for this issue ;(
from etherpad-lite.
Related Issues (20)
- Cannot find module 'busboy' HOT 2
- Websocket not working on develop HOT 1
- Limit number of versions of a pad or delete them in Pad Settings HOT 5
- Add a configuration variable in docker image to handle plugins with a config
- How to change the admin password with Etherpad Lite that runs inside a docker container? HOT 2
- v2.0.0: installing plugins from registry in docker fails HOT 5
- Unable to access admin page "Error: ENOENT: no such file or directory, stat '/home/lufi/etherpad-lite/src/templates/admin/index.html' HOT 1
- docker build fails with pnpm-lock.yaml missing HOT 2
- Plugins' subdepencies are not being installed HOT 1
- installing etherpad plugins from GitHub repos is broken
- No Basic Auth HOT 2
- Pinning support when installing plugins HOT 2
- Unknown file extension ".ts" for server.ts HOT 9
- How to remove plugins ? HOT 4
- Support proxy server in plugin installation script HOT 11
- No admin templates - Etherpad 2.0.1 HOT 7
- Etherpad-lite 2.0.1: start.bat problem in windows HOT 4
- Etherpad 2.0.1: Depreciation error and git version warning HOT 4
- How to delete a pad when you can't use the admin interface HOT 1
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 etherpad-lite.