Forris: Internal error Can't find device that mounts as '/srv'

I’m using mSata SSD drive as /srv. But SSD failed (is not recognized by Omnia). And now I’m not able to open the storage page to configure new SSD.

It shows error:

Remote Exception: Internal error Can't find device that mounts as '/srv' and thus can't decide what provides /srv!('<class 'LookupError'>')
Remote request
{"module": "storage", "action": "get_settings", "kind": "request"}

Stack trace

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/foris_controller_backends/storage/__init__.py", line 32, in get_srv
    r'^(/dev/[^ ]*|ubi[^ ]*) {} .*'.format(srv_mount_point)
  File "/usr/lib/python3.6/site-packages/foris_controller_backends/files/__init__.py", line 104, in _read_and_parse
    raise FailedToParseFileContent(path, content)
foris_controller.exceptions.FailedToParseFileContent: /proc/mounts: /dev/mmcblk0p1 / btrfs rw,noatime,ssd,space_cache,commit=5,subvolid=259,subvol=/@ 0 0
proc /proc proc rw,noatime 0 0
sysfs /sys sysfs rw,noatime 0 0
none /sys/fs/cgroup cgroup rw,relatime,cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,pids,clone_children 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
tmpfs /dev tmpfs rw,relatime,size=512k,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
debugfs /sys/kernel/debug debugfs rw,noatime 0 0
none /srv tmpfs rw,relatime,size=51200k 0 0
mountd(pid5784) /tmp/run/mountd autofs rw,relatime,fd=5,pgrp=5782,timeout=60,minproto=5,maxproto=5,indirect 0 0
/dev/md0 /mnt/local_data ext4 rw,relatime,data=ordered 0 0
/dev/md1 /mnt/nfs ext4 rw,relatime,data=ordered 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/foris_controller/message_router.py", line 117, in process_message
    data = module_instance.perform_action(message["action"], message.get("data", {}))
  File "/usr/lib/python3.6/site-packages/foris_controller/module_base.py", line 61, in perform_action
    res = action_function(data)
  File "/usr/lib/python3.6/site-packages/foris_controller_modules/storage/__init__.py", line 11, in action_get_settings
    return self.handler.get_settings()
  File "/usr/lib/python3.6/site-packages/foris_controller/utils.py", line 113, in inner
    res = func(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/foris_controller_modules/storage/handlers/openwrt.py", line 20, in get_settings
    return self.settings.get_srv()
  File "/usr/lib/python3.6/site-packages/foris_controller_backends/storage/__init__.py", line 37, in get_srv
    .format(srv_mount_point)
LookupError: Can't find device that mounts as '/srv' and thus can't decide what provides /srv!

Environment

{'CONTENT_LENGTH': '0',
 'DOCUMENT_ROOT': '/www',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'cs,en-US;q=0.7,en;q=0.3',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'foris.session=f13499418ebea47b9ef3418c3196de58; '
                'foris.ws.session=aeb20530880962e405c473ad652f3c8d',
 'HTTP_COOKIE_INSTALLING_PERMISSION': 'required',
 'HTTP_DNT': '1',
 'HTTP_HOST': 'router',
 'HTTP_REFERER': 'http://router/foris/config/main/notifications/',
 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 '
                    'Firefox/71.0',
 'PATH_INFO': '/main/storage/',
 'PATH_TRANSLATED': '/www/main/storage/',
 'QUERY_STRING': '',
 'REDIRECT_STATUS': '200',
 'REMOTE_ADDR': '192.168.1.161',
 'REMOTE_PORT': '36138',
 'REQUEST_METHOD': 'GET',
 'REQUEST_SCHEME': 'http',
 'REQUEST_URI': '/foris/config/main/storage/',
 'SCRIPT_FILENAME': '/www/foris/config',
 'SCRIPT_NAME': '/foris/config',
 'SERVER_ADDR': '192.168.1.1',
 'SERVER_NAME': 'router',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'lighttpd/1.4.54',
 'bottle.app': <bottle.Bottle object at 0x20bb530>,
 'bottle.raw_path': '/storage/',
 'bottle.request': <LocalRequest: GET http://router/foris/config/main/storage/>,
 'bottle.request.urlparts': SplitResult(scheme='http', netloc='router', path='/foris/config/main/storage/', query='', fragment=''),
 'bottle.route': <GET '/<page_name:re:.+>/' <function config_page_get at 0x2399a60>>,
 'foris.backend': UbusSender('/var/run/ubus.sock'),
 'foris.language': 'cs',
 'foris.session': <foris.middleware.sessions.SessionForisProxy object at 0x24c4c40>,
 'foris.session.data': {'csrf_token': 'tCzxAlbvx3T4vs6an9LAO89I63y2YKVA',
                        'user_authenticated': True},
 'foris.session.id': 'f13499418ebea47b9ef3418c3196de58',
 'foris.version': '100.5',
 'route.handle': <GET '/<page_name:re:.+>/' <function config_page_get at 0x2399a60>>,
 'route.url_args': {'page_name': 'storage'},
 'wsgi.errors': <flup.server.fcgi_base.OutputStream object at 0x24eb7a0>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x249b170>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}

What to do? Is enough to remove storage.srv.uuid?

storage.srv=srv
storage.srv.uuid='137955ea-c063-4722-b042-088393a388fe'
storage-opkg.srv=srv
transmission.@transmission[0].config_dir='/srv/transmission'

So it is needed to unmount existing “/srv” folder that is running on tmpfs. Then is possible to use the storage module again and setup new ssd.