Comments (7)
eacces hints filesystem permission issue.
could you check if the dir /opt/emqx/fs_emqx (mounted to docker?) can be read by the emqx
user?
from emqx.
Yes that was my first thought, too – but the directories were created by the Docker image of emqx 5.5.1 and are accessible by UID/GID 1000 (emqx inside the container).
Interestingly, after switching from Retained messages on disk to RAM and back to disk the error message changed:
500 INTERNAL_ERROR: exit, {noproc,{gen_server,call,[emqx_retainer,{page_read,undefined,1,20},infinity]}}, [{gen_server,call,3,[{file,"gen_server.erl"},{line,419}]},{emqx_retainer_api,lookup_retained,2,[{file,"emqx_retainer_api.erl"},{line,188}]},{minirest_handler,apply_callback,3,[{file,"minirest_handler.erl"},{line,152}]},{minirest_handler,handle,2,[{file,"minirest_handler.erl"},{line,56}]},{minirest_handler,init,2,[{file,"minirest_handler.erl"},{line,27}]},{cowboy_handler,execute,2,[{file,"cowboy_handler.erl"},{line,41}]},{cowboy_stream_h,execute,3,[{file,"cowboy_stream_h.erl"},{line,318}]},{cowboy_stream_h,request_process,3,[{file,"cowboy_stream_h.erl"},{line,302}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]
from emqx.
Hi @jandillmann,
after switching from Retained messages on disk to RAM and back to disk the error message changed
I'm also curious why this happens.
- Could you please describe what steps did you perform to make a switch?
- Were there any warnings / errors in the EMQX service logs coinciding with this switch?
{file_error,"/opt/emqx/fs_emqx@mydomain_1_10195.1",eacces}
I suspect that this is an unintended consequence of 58d0f04. If so, forcing the container's workdir to /opt/emqx/data
instead supposedly might help.
from emqx.
Hi @keynslug,
In the dashboard, I went to "MQTT Settings" -> "Retainer", switched "Storage Method" from disc
to ram
, saved, and back. I did not see any error messages in the log when switching between ram and disc.
In the compose.yaml
, the volumes are configured as this:
volumes:
- "./emqx/data:/opt/emqx/data"
- "./emqx/log:/opt/emqx/log"
Could this be the issue, even if both directories and their sub-directories and files are owned by UID/GID 1000 and rwx
?
from emqx.
Could this be the issue, even if both directories and their sub-directories and files are owned by UID/GID 1000 and
rwx
?
No this should be fine I guess. It's the fact that /opt/emqx
is not writable by UID 1000 in the container file system anymore that (supposedly) causes these weird errors. That's why I think you might try setting working_dir: /opt/emqx/data
in compose.yaml
, so that those temporary files EMQX want to write from time to time will reside there instead.
from emqx.
Sadly this did not help. I set working_dir: /opt/emqx/data
in compose.yaml
and restarted the stack with docker compose down && docker compose up -d
, but the same error as in the original issue still shows.
from emqx.
Sadly this did not help.
Oh, that was unexpected. Thanks anyway for trying out and for the original report. Hopefully #12875 fixes this properly, which should land in the next release.
from emqx.
Related Issues (20)
- Rest API, fields param not work HOT 3
- Migrate from mosquitto-go-auth to EMQX-auth-pgsql HOT 6
- [error] msg: unrecoverable_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure HOT 2
- Error:Mysql Connector Test Connectivity Error HOT 5
- When EMQX updates the load balancer, it resets the Connection Idle Timeout to the default value. HOT 2
- connection congested: HOT 2
- Then enter in "Retained Messages" got 500 Internal Error HOT 5
- peer_cert_as_username when using proxy protocol v2 HOT 1
- Unable to force-leave stale nodes HOT 12
- Enhanced Authentication Failed with Reason Code 135 (Not Authorized). HOT 9
- Configuration fails to take effect about TCP Keep Alive behavior HOT 6
- Grafana dashboard should use $__rate_interval HOT 3
- Customizable HTTP Server Actions (Sink) Retry Policies HOT 2
- 使用 MongoDB4.0 进行密码认证,无法成功接入数据源。 HOT 11
- Can't add users on touch screen device HOT 7
- Action output to external HTTP server - authorization header issue HOT 2
- The client disconnects after publish message whose topic starts with '$' HOT 2
- Not getting Emqx dashboard HOT 1
- EMQX Clustering - Message Replication HOT 4
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 emqx.