Rockon stuck installing, storageadmin errors

I’ve removed and reinstalled the rockon share numerous times and have reinstalled but REALLY don’t want to this time since I finally got the BTRFS usage working.

I beleive rockstor is saving the share and docker info in storageadmin and has entries that are duplicates.

Is there any way to clean out all docker info and ensure the share data is right (no orphans).

[05/Sep/2017 12:33:11] ERROR [storageadmin.views.command:84] Exception while refreshing state for Pool(rockstor_rockstor). Moving on: deadlock detected
DETAIL:  Process 12290 waits for ShareLock on transaction 119973; blocked by process 13806.
Process 13806 waits for ShareLock on transaction 119912; blocked by process 12290.
HINT:  See server log for query details.

[05/Sep/2017 12:33:11] ERROR [storageadmin.views.command:85] deadlock detected
DETAIL:  Process 12290 waits for ShareLock on transaction 119973; blocked by process 13806.
Process 13806 waits for ShareLock on transaction 119912; blocked by process 12290.
HINT:  See server log for query details.
Traceback (most recent call last):
  File "/opt/rockstor/src/rockstor/storageadmin/views/command.py", line 80, in _refresh_pool_state
    p.save()
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 734, in save
    force_update=force_update, update_fields=update_fields)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 762, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 827, in _save_table
    forced_update)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/base.py", line 877, in _do_update
    return filtered._update(values) > 0
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 580, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/sql/compiler.py", line 1062, in execute_sql
    cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/sql/compiler.py", line 840, in execute_sql
    cursor.execute(sql, params)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/utils.py", line 98, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
OperationalError: deadlock detected
DETAIL:  Process 12290 waits for ShareLock on transaction 119973; blocked by process 13806.
Process 13806 waits for ShareLock on transaction 119912; blocked by process 12290.
HINT:  See server log for query details.

[05/Sep/2017 12:33:18] ERROR [storageadmin.views.command:118] Exception while importing Snapshots of Share(rockon): deadlock detected
DETAIL:  Process 13806 waits for ShareLock on transaction 120024; blocked by process 14059.
Process 14059 waits for ShareLock on transaction 119973; blocked by process 13806.
HINT:  See server log for query details.

[05/Sep/2017 12:33:18] ERROR [storageadmin.views.command:119] deadlock detected
DETAIL:  Process 13806 waits for ShareLock on transaction 120024; blocked by process 14059.
Process 14059 waits for ShareLock on transaction 119973; blocked by process 13806.
HINT:  See server log for query details.
Traceback (most recent call last):
  File "/opt/rockstor/src/rockstor/storageadmin/views/command.py", line 114, in post
    import_snapshots(share)
  File "/opt/rockstor/src/rockstor/storageadmin/views/share_helpers.py", line 143, in import_snapshots
    Snapshot.objects.get(share=share, name=s).delete()

So somehow after a while the plex rockon installed (I rebooted and ran the docker run command I saw in ps ax| grep docker). Will continue to monitor.

I would really like to see a system reset option where it clears the database and allows you to run rockstor as you would off first boot (prompting for user and password creation).

Actually now it’s back. There seem to be phantom docker containers that rockstor thinks are running. Radarr is not showing up for installed or available so I created a radarr-linuxserver.io and once i added additional storage it breaks…

CommandException: Error running a command. cmd = /usr/bin/docker run -d --restart=unless-stopped --name radarr-linuxserver.io -v /mnt2/radarr:/config -v /mnt2/usenet-download:/downloads -v /mnt2/radarr-movies:/movies -v /mnt2/transmission:/transmission -v /etc/localtime:/etc/localtime:ro -p 7878:7878/tcp -e PUID=1001 -e PGID=1001 linuxserver/radarr. rc = 125. stdout = ['']. stderr = ['/usr/bin/docker: Error response from daemon: Conflict. The container name "/radarr-linuxserver.io" is already in use by container bdd849de0af0c959803c01b6a711562e54bf469b586bd11b94d532b03116a466. You have to remove (or rename) that container to be able to reuse that name..', "See '/usr/bin/docker run --help'.", '']
[05/Sep/2017 15:57:04] ERROR [storageadmin.views.rockon:81] Rockon(Radarr-patch) is in pending state but there is no pending or failed task for it. 
[05/Sep/2017 15:58:08] ERROR [storageadmin.views.rockon:81] Rockon(Headphones) is in pending state but there is no pending or failed task for it. 

Headphones is another one doing this.

docker ps -a doesn’t show either…