The rtthread dcm data persistence component was used in the project, but mkdir:/data failed was reported during dcm_cache_save
But this error log is not the code of this project, it is confirmed that it is the log printed inside the dcm interface
Then confirmed that the macro #define DCM_DEFAULT_STORAGE_NAME “/user/data/db/dcm” is already in rtconfig.h
Declare that this macro is also useful for business code at system startup
The final investigation is because dcm_default_storage_name needs to be assigned when the system starts, and the dcm_strg.o of the dcm component depends on
If this variable is not assigned, it will default to mkdir:/data, but if /data has no permission, it will report that error.
So dcm_default_storage_name = DCM_DEFAULT_STORAGE_NAME is solved (it needs to be called at startup)
Read More:
- Nginx Container Error: nginx: [emerg] mkdir() “/var/cache/nginx/client_temp“ failed (13: Permission denied)
- Cache penetration, cache breakdown and cache avalanche solutions
- [Go] Solve the empty interface interface{} cannot use (type []string) as type []interface {}
- The tree component in easyUI does not display data or displays undefined solutions
- IDEA Create Scala Project Error: scalac: Error: Error compiling the sbt component ‘compiler-interface-2.10.0-52.0‘
- [Solved] Redis Cache Error: org.springframework.data.redis.serializer.SerializationException: Could not read JSON..
- ABAP: Overbooking BAPI_ACC_DOCUMENT_POST error reported FI/CO interface: inconsistent FI/CO voucher header data to be updated
- [Solved] element-plus Error: Failed to resolve component
- [Solved] Failed to load response data: no data found for resource with given identifier
- [Solved] error Component name “index“ should always be multi-word vue/multi-word-component-names
- [How to Solve] canvas.save(Canvas.ALL_SAVE_FLAG)
- [Sp;ved] Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ssm]
- [Solved] Vue Error: Failed to mount component: template or render function not defined
- [Solved] NPM Install Error: EPERM: operation not permitted, mkdir xxx
- (node:2233) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ‘/usr/loca~‘
- Tomcat startup error: Failed to start component [StandardServer[8005]] solution
- json-server Error: EPERM: operation not permitted, mkdir ‘C:\Progra m Files\nodejs\node_
- [Solved] Mac Install mongodb error: NonExistentPath: Data directory /data/db not found.
- Arduino cache multiple definition error [How to Solve]
- Vue3 Warning: [Vue warn]: Extraneous non-emits event listeners (changeParentProps) were passed to component