Comments (9)
Still says unable to open database file {"node_id": 0}
in logs
[Edit]
I changed the ownership of /docker/ddns-updater
to 1000:1000 and it's sort of working now.
[Edit #2]
Yeah it's fine now, I added an A+ Dynamic DNS Record and it's fine now.
I had seen the instructions that the config file was to be owned by the user docker used, but I've never had to do that for any other docker container before so I was a bit confused.
from ddns-updater.
I'm an idiot.
from ddns-updater.
Don't be harsh on you, it happens to all of us 😄
However, did the line 2019/04/29 15:36:32 Info: Node 0: Found 1 records to update
came before the rest? That seems odd and should not happen 🤔
Also you might want to pull the last image as I fixed several things today. Thanks !
from ddns-updater.
from ddns-updater.
What did you do to fix this? I'm having the same issue and have no idea what the problem is. https://xkcd.com/979/
from ddns-updater.
Please post back the output from ls -l
on the directory containing the database file to see permissions and ownership.
Merry Christmas 🎄 !
from ddns-updater.
$ls -l /docker/ddns-updater
total 5
-rw-r--r-- 1 root root 295 Dec 25 02:09 config.json
from ddns-updater.
Yes it's owned by root
that's why it doesn't work.
Run this to make it owned by user ID 1000 and group ID 1000:
chown 1000:1000 /docker/ddns-updater/config.json
from ddns-updater.
If you bind mount the directory, you have to change the ownership of the directory too, forgot to mention. In my case I only bind mount the config file.
Most containers out there use the root user by default, which is dangerous as anyone getting access to the container can almost do anything your host root user can do, see this for more information for example.
Sometimes root user is needed (i. e. run a VPN) but 90% of the time it's not.
The disadvantage is that you have to match the bind mounted files with the user running the container. Note that you can change the user running the container with --user=1001:1001
for example or --user="root"
.
from ddns-updater.
Related Issues (20)
- `eurodns.com`
- Bug: ERROR cannot write configuration to file: open /updater/data/config.json: permission denied HOT 2
- `cdmon.com`
- Feature request: View more previous IPs
- Help: I'm getting "domain is not valid" HOT 3
- Ionos Error HOT 1
- Ionos provider integration is broken HOT 2
- Bug: Can't disable UI server HOT 3
- Bug: ERROR validating domain HOT 3
- Feature request: Namesilo Support HOT 2
- Bug: Dynu: Tool said Success, but IP didn't change on Dynu HOT 1
- Feature request: add do.de (Domain-Offensive)
- ip_version: ipv6 not working HOT 1
- Feature request: Please add support for Tunnelbroker.net
- Feature request: Mailinabox provider
- Feature request: Force IP Update periodically optionally
- Add support for RFC 2136
- Documentation: Cloudflare configuration documentation requires some improvements. HOT 1
- namecheap config is mussing host variable HOT 1
- Feature request: "Auto Start with System" and "Minimize to Tray"
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 ddns-updater.