| Back | Main view

Read or write cache errors when content is opened or created on IMiS ARChive v9 server

Product:IMiS/ARChive
Release:All
Date:10/14/2020

Case: When client tries to create or open content on IMiS ARChive v9 server its operation ends with read or write cache error.

Description:

Server log example 1 - client tries to open content (write cache error):
10/13/20 13:44:41.899 [iarcd:16095:7fa371ffb700] DBG[7] ProcessG1Request(), content size is 151
10/13/20 13:44:41.899 [iarcd:16095:7fa371ffb700] DBG[7] Processing request 'bo2' ...
10/13/20 13:44:41.900 [iarcd:16095:7fa371ffb700] ERR[3] Error creating cache file '/iarc/wcache/00000109-0000000006011f7e.042' (error: 13).
10/13/20 13:44:41.900 [iarcd:16095:7fa371ffb700] DBG[7] Request 'bo2' processed.
10/13/20 13:44:41.900 [iarcd:16095:7fa371ffb700] DBG[7] Response ready to be dispatched (size=178, parts=1).
10/13/20 13:44:41.900 [iarcd:16095:7fa371ffb700] DBG[7] BeginWrite(fd=214, buf_size=178, timeout=86400000ms).

Server log example 2 - client tries to open content (read cache error):
10/13/20 13:49:05.388 [iarcd:16095:7fa36affd700] DBG[7] ProcessG1Request(), content size is 153
10/13/20 13:49:05.388 [iarcd:16095:7fa36affd700] DBG[7] Processing request 'bo2' ...
10/13/20 13:49:05.389 [iarcd:16095:7fa36affd700] ERR[3] Error creating cache file '/iarc/rcache/00000109-0000000006001a0c.017' (error: 13).
10/13/20 13:49:05.389 [iarcd:16095:7fa36affd700] DBG[7] Request 'bo2' processed.
10/13/20 13:49:05.389 [iarcd:16095:7fa36affd700] DBG[7] Response ready to be dispatched (size=176, parts=1).
10/13/20 13:49:05.390 [iarcd:16095:7fa36affd700] DBG[7] BeginWrite(fd=214, buf_size=176, timeout=86400000ms).

Server log example 3 - client tries to create content (write cache error):
10/13/20 13:46:01.210 [iarcd:16095:7fa36b7fe700] DBG[7] ProcessG1Request(), content size is 100
10/13/20 13:46:01.210 [iarcd:16095:7fa36b7fe700] DBG[7] Processing request 'bc2' ...
10/13/20 13:46:01.211 [iarcd:16095:7fa36b7fe700] ERR[3] Error creating cache file '/iarc/wcache/00000109-8000000000000001.000' (error: 13).
10/13/20 13:46:01.211 [iarcd:16095:7fa36b7fe700] DBG[7] Request 'bc2' processed.
10/13/20 13:46:01.211 [iarcd:16095:7fa36b7fe700] DBG[7] Response ready to be dispatched (size=173, parts=1).
10/13/20 13:46:01.211 [iarcd:16095:7fa36b7fe700] DBG[7] BeginWrite(fd=189, buf_size=173, timeout=86400000ms).

Solution:
IMiS ARChive v9 server is run under restricted user (default iarc) which must be owner of read and write cache and must have appropriate permissions on them. Next example shows how to check and correct read and write cache ownership permissions on their default locations (/iarc/rcache and /iarc/wcache):

Example of read and write cache with incorrect ownership and invalid permissions:
[root@localhost ~]# ls -ld /iarc/rcache
dr-xr-xr-x. 2 root root 6 Oct 13 13:51 /iarc/rcache
[root@localhost ~]# ls -ld /iarc/wcache
dr-xr-xr-x. 2 root root 6 Oct 13 13:51 /iarc/wcache

Ownership can be corrected with chown command:
[root@dev-saso2 ~]# chown iarc:iarc /iarc/rcache
[root@dev-saso2 ~]# chown iarc:iarc /iarc/wcache

Checking read and write cache with correct ownership:
[root@localhost ~]# ls -ld /iarc/rcache
dr-xr-xr-x. 2 iarc iarc 6 Oct 13 13:51 /iarc/rcache
[root@localhost ~]# ls -ld /iarc/wcache
dr-xr-xr-x. 2 iarc iarc 6 Oct 13 13:51 /iarc/wcache

Permissions must be set for read, write and execute on read and write cache folder for user and group (default user iarc, default group iarc):
[root@localhost ~]# chmod ug=rwx /iarc/rcache
[root@localhost ~]# chmod ug=rwx /iarc/wcache

Checking read and write cache with correct permissions:
[root@localhost ~]# ls -ld /iarc/rcache
drwxrwxr-x. 2 iarc iarc 6 Oct 13 13:51 /iarc/rcache
[root@localhost ~]# ls -ld /iarc/wcache
drwxrwxr-x. 2 iarc iarc 6 Oct 13 13:51 /iarc/wcache

Related Documents:

https://linux.die.net/man/1/chmod
https://linux.die.net/man/1/chown

| Back | Main view