Comments (7)
Hi Artur, can you change the owner of the directory mosquitto-conf
to tedge:tedge
? CLI tedge connect
can't write a file in a directory owned by root.
Namely, run sudo chown tedge:tedge /etc/tedge/mosquitto-conf
.
from thin-edge.io.
Hi,
that wasn't the problem. I fixed it for me, but I think there should be a general solution.
I tried almost erverything. I also changed the ownership of the directories to default:
$ chown -R tedge:tedge /etc/tedge
$ chown -R mosquitto:mosquitto /etc/tedge/device-certs
But at least I had do set the TMPDIR to the same filesystem than /etc/tedge.
My /tmp
is mounted as tmpfs but /etc
is mounted as ubifs.
The following line was the final successful trial.
$ mkdir /etc/tedge/tmp
$ chwon tedge:tedge /etc/tedge/tmp
$ TMPDIR=/etc/tedge/tmp tedge connect c8y
The problem seems to be the rename() which is called in persist_tempfile().
from thin-edge.io.
Indeed your root cause analysis is correct. The configuration files are created as temporary files then renamed. That cannot be done across file-systems.
=> One needs to create the temporary file along the target file in the same directory.
from thin-edge.io.
Yes, that's what I've done with TMPDIR. But that seems to be not professional.
from thin-edge.io.
I might have been confusing. tedge connect
will be fixed asap.
from thin-edge.io.
A fix has been merged. Can you, please, double check that the connect command is now working as expected on your device.
from thin-edge.io.
The latest version works fine, thank you.
from thin-edge.io.
Related Issues (20)
- use socket activated service to launch c8y-remote-access-plugin when using systemd HOT 2
- unacknowledged local command requests are difficult to clear when MQTT broker persistence is not configured
- tedge reconnect c8y displays an erroneous warning about invalid configured URL and a former tenant HOT 2
- easily add/remove values to existing tedge config properties of an array type
- Allow running thin-edge.io components under user's account
- Publish registration and capabilities on te topics when connecting to the MQTT broker
- tedge init: only create multi-call binary symlinks if they do not exist HOT 2
- Simplify the operation handling code by replacing fragmented control flow with regular async/await
- Remove adduser dependency declaration from tedge debian package HOT 1
- Device Under Test - fully controllable online HOT 1
- c8y-remote-access-plugin init using non-standard/non-root user
- c8y-remote-access-plugin connection fails if installed in non-default location HOT 2
- sending an initial corrupt telemetry message to a child device prevents device being registered HOT 1
- c8y-remote-access-plugin connection fails due to unexpected argument HOT 2
- Installing and joining ZeroTier Network
- RAUC firmware_update workflow state was executed twice by thin-edge.io HOT 3
- bridge status is not published as a service to the cloud in 1.1.0 HOT 1
- backoff strategy for the in-built bridge HOT 4
- mosquitto broker limitation prevents offline configuration HOT 3
- c8y-mapper ignores any bridge status updates after registration and always reports "up" at registration 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 thin-edge.io.