Jump to content


Photo

BUG: with docker emby image on virtualbox guest linux distro

docker emby v4 embyserver centos virtualbox shared folder mount vboxsf container emby/embyserver

  • Please log in to reply
12 replies to this topic

#1 DeaDSouL OFFLINE  

DeaDSouL

    Newbie

  • Members
  • 6 posts
  • Local time: 07:59 PM

Posted 27 January 2019 - 11:17 AM

Hello,

 

I'm sorry, but I could not figure where to report bugs/issues with the docker: emby/embyserver image?

 

So, I'm posting it here  :D

 

the bug is with the emby/embyserver:4.0.1.0 

 

I've created a CentOS VM using VirtualBox.

after that, I've followed the docker installation guide mentioned on docker.com

 

then added my shared folders from [host] to [guest] with the read/write permissions of course.

 

the problem is that the docker emby image, crashes and exit, if the '/config' location was pointed to a shared-folder from the [host]. even if it has the correct permissions!

 

and here is some information:

 

[host] Distro that is running VirtualBox:

[deadsoul@workstation ~]$ cat /etc/redhat-release
Mageia release 6 (Official) for x86_64
[deadsoul@workstation ~]$ uname -a
Linux workstation.hom 4.14.89-server-1.mga6 #1 SMP Mon Dec 17 15:00:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[deadsoul@workstation ~]$ cat /proc/version
Linux version 4.14.89-server-1.mga6 (iurt@scwx861.mageia.org) (gcc version 5.5.0 (Mageia 5.5.0-1.mga6)) #1 SMP Mon Dec 17 15:00:02 UTC 2018
[deadsoul@workstation ~]$ cat /etc/mageia-release
Mageia release 6 (Official) for x86_64
[deadsoul@workstation ~]$ 

[host] VirtualBox info:

[deadsoul@workstation ~]$ VBoxHeadless --version
Oracle VM VirtualBox Headless Interface 5.2.22
(C) 2008-2018 Oracle Corporation
All rights reserved.

5.2.22r126257
[deadsoul@workstation ~]$ /sbin/modinfo vboxnetadp
filename:       /lib/modules/4.14.89-server-1.mga6/dkms-binary/3rdparty/vbox/vboxnetadp.ko.xz
version:        5.2.22 r126257 ((0xA2CDe001U))
license:        GPL
description:    Oracle VM VirtualBox Network Adapter Driver
author:         Oracle Corporation
srcversion:     29B5552C5D92B8323EE00BD
depends:        vboxdrv
name:           vboxnetadp
vermagic:       4.14.89-server-1.mga6 SMP mod_unload
[deadsoul@workstation ~]$ /sbin/modinfo vboxnetflt
filename:       /lib/modules/4.14.89-server-1.mga6/dkms-binary/3rdparty/vbox/vboxnetflt.ko.xz
version:        5.2.22 r126257 ((0xA2CDe001U))
license:        GPL
description:    Oracle VM VirtualBox Network Filter Driver
author:         Oracle Corporation
srcversion:     59BC88F16B267340502BA6B
depends:        vboxdrv
name:           vboxnetflt
vermagic:       4.14.89-server-1.mga6 SMP mod_unload
[deadsoul@workstation ~]$ /sbin/modinfo vboxdrv
filename:       /lib/modules/4.14.89-server-1.mga6/dkms-binary/3rdparty/vbox/vboxdrv.ko.xz
version:        5.2.22 r126257 (0x00290001)
license:        GPL
description:    Oracle VM VirtualBox Support Driver
author:         Oracle Corporation
srcversion:     D24FE4B53DF0D2A2995E45D
depends:
name:           vboxdrv
vermagic:       4.14.89-server-1.mga6 SMP mod_unload
parm:           force_async_tsc:force the asynchronous TSC mode (int)
[deadsoul@workstation ~]$ 

[guest] Distro that is running docker info:

[root@wsvmdockertest CentOS]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@wsvmdockertest CentOS]# uname -a
Linux wsvmdockertest.hom 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@wsvmdockertest CentOS]# cat /proc/version 
Linux version 3.10.0-957.1.3.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Thu Nov 29 14:49:43 UTC 2018
[root@wsvmdockertest CentOS]#

[guest] VirtualBox guest additions info:

[root@wsvmdockertest CentOS]# modinfo vboxguest
filename:       /lib/modules/3.10.0-957.1.3.el7.x86_64/misc/vboxguest.ko
version:        5.2.14 r123301
license:        GPL
description:    Oracle VM VirtualBox Guest Additions for Linux Module
author:         Oracle Corporation
retpoline:      Y
rhelversion:    7.6
srcversion:     87A2347C02617B1A8239C8B
alias:          pci:v000080EEd0000CAFEsv00000000sd00000000bc*sc*i*
depends:
vermagic:       3.10.0-957.1.3.el7.x86_64 SMP mod_unload modversions
[root@wsvmdockertest CentOS]# modinfo vboxsf
filename:       /lib/modules/3.10.0-957.1.3.el7.x86_64/misc/vboxsf.ko
version:        5.2.14 r123301
alias:          fs-vboxsf
license:        GPL
author:         Oracle Corporation
description:    Oracle VM VirtualBox VFS Module for Host File System Access
retpoline:      Y
rhelversion:    7.6
srcversion:     E55F865E93C04E4FFB34C09
depends:        vboxguest
vermagic:       3.10.0-957.1.3.el7.x86_64 SMP mod_unload modversions
parm:           follow_symlinks:Let host resolve symlinks rather than showing them (int)
[root@wsvmdockertest CentOS]# 

[guest] Docker info:

[root@wsvmdockertest CentOS]# docker --version
Docker version 18.09.1, build 4c52b90
[root@wsvmdockertest CentOS]# docker info
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 3
Server Version: 18.09.1
Storage Driver: overlay2
 Backing Filesystem: xfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 96ec2177ae841256168fcf76954f7177af9446eb
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 3.10.0-957.1.3.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 7.636GiB
Name: wsvmdockertest.hom
ID: 4YXA:ZX3N:ACS2:CEEV:S2B6:5PCS:FRMW:H4ES:QYAQ:AXDK:MPT2:5FN7
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

[root@wsvmdockertest CentOS]# docker version
Client:
 Version:           18.09.1
 API version:       1.39
 Go version:        go1.10.6
 Git commit:        4c52b90
 Built:             Wed Jan  9 19:35:01 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.1
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       4c52b90
  Built:            Wed Jan  9 19:06:30 2019
  OS/Arch:          linux/amd64
  Experimental:     false
[root@wsvmdockertest CentOS]# 

[guest] Shared folder info:

[root@wsvmdockertest CentOS]# mount | grep /dockers
Dockers on /dockers type vboxsf (rw,nodev,relatime)
[root@wsvmdockertest CentOS]# grep Dockers /etc/fstab
Dockers     /dockers        vboxsf  uid=1000,gid=1000,rw    0       0
[root@wsvmdockertest CentOS]# ls -lahn /dockers/emby/config-v4/
total 0
drwxr-xr-x. 1 1000 1000  132 Jan 27 04:39 .
drwxr-xr-x. 1 1000 1000   96 Jan 27 04:22 ..
drwxr-xr-x. 1 1000 1000  272 Jan 25 13:58 cache
drwxr-xr-x. 1 1000 1000  116 Jan 25 01:45 config
drwxr-xr-x. 1 1000 1000  708 Jan 25 09:23 data
drwxr-xr-x. 1 1000 1000  448 Jan 25 01:41 localization
drwxr-xr-x. 1 1000 1000 2.0K Jan 27 04:33 logs
drwxr-xr-x. 1 1000 1000   50 Jan 25 09:24 metadata
drwxr-xr-x. 1 1000 1000  186 Jan 25 01:45 plugins
drwxr-xr-x. 1 1000 1000   14 Jan 25 01:41 root
drwxr-xr-x. 1 1000 1000    0 Jan 25 01:46 transcoding-temp
[root@wsvmdockertest CentOS]# id 1000
uid=1000(deadsoul) gid=1000(deadsoul) groups=1000(deadsoul),991(vboxsf)
[root@wsvmdockertest CentOS]# find /dockers/emby/config-v4/ -uid 1000 -a -gid 1000 | wc -l
63908
[root@wsvmdockertest CentOS]# find /dockers/emby/config-v4/ | wc -l
63908
[root@wsvmdockertest CentOS]# find /dockers/emby/config-v4/ -not -uid 1000 -o -not -gid 1000 | wc -l
0

[guest] Docker run command:

docker pull emby/embyserver:4.0.1.0
docker run -d \
    --network physical_nw \
    --ip 192.168.1.114 \
    --hostname "emby-v4.hom" \
    --mac-address "00:11:22:33:01:14" \
    --volume /dockers/emby/config-v4:/config \
    --volume /mnt/Media:/mnt/Media \
    --volume /dockers/emby/backup-v4:/mnt/Backups \
    --publish 8096:8096 \
    --publish 8920:8920 \
    --env UID=1000 \
    --env GID=1000 \
    --env GIDLIST=100,39 \
    --restart unless-stopped \
    --name emby-v4 \
    -it emby/embyserver:4.0.1.0 sh

[guest] Docker run logs:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/ # Info Main: Application path: /system/EmbyServer.dll
Info Main: Emby
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Unix 3.10.0.957
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 16
	Program data path: /config
	Application directory: /system
Info App: Application version: 4.0.1.0
Info App: Loading assemblies
Info App: File /config/plugins/AudioDb.dll has version 1.0.4.0
Info App: File /system/plugins/AudioDb.dll has version 1.0.4.0
Info App: File /config/plugins/Emby.Server.CinemaMode.dll has version 1.0.10.0
Info App: File /system/plugins/Emby.Server.CinemaMode.dll has version 1.0.10.0
Info App: File /config/plugins/Fanart.dll has version 1.0.2.0
Info App: File /system/plugins/Fanart.dll has version 1.0.2.0
Info App: File /config/plugins/MovieDb.dll has version 1.0.6.0
Info App: File /system/plugins/MovieDb.dll has version 1.0.6.0
Info App: File /config/plugins/MusicBrainz.dll has version 1.0.1.0
Info App: File /system/plugins/MusicBrainz.dll has version 1.0.1.0
Info App: File /config/plugins/NfoMetadata.dll has version 1.0.10.0
Info App: File /system/plugins/NfoMetadata.dll has version 1.0.10.0
Info App: File /config/plugins/OMDb.dll has version 1.0.3.0
Info App: File /system/plugins/OMDb.dll has version 1.0.3.0
Info App: File /config/plugins/OpenSubtitles.dll has version 1.0.11.0
Info App: File /system/plugins/OpenSubtitles.dll has version 1.0.11.0
Info App: File /config/plugins/StudioImages.dll has version 1.0.0.0
Info App: File /system/plugins/StudioImages.dll has version 1.0.0.0
Info App: File /config/plugins/Tvdb.dll has version 1.0.1.0
Info App: File /system/plugins/Tvdb.dll has version 1.0.1.0
Info App: Loading AudioDb, Version=1.0.4.0, Culture=neutral, PublicKeyToken=null from /config/plugins/AudioDb.dll
Info App: Loading AutoBoxSets, Version=1.2.2.0, Culture=neutral, PublicKeyToken=null from /config/plugins/AutoBoxSets.dll
Info App: Loading Emby.Server.CinemaMode, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Server.CinemaMode.dll
Info App: Loading Fanart, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Fanart.dll
Info App: Loading IMVDb, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null from /config/plugins/IMVDb.dll
Info App: Loading MBBackup, Version=1.3.4.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MBBackup.dll
Info App: Loading MovieDb, Version=1.0.6.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MovieDb.dll
Info App: Loading MusicBrainz, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MusicBrainz.dll
Info App: Loading NfoMetadata, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null from /config/plugins/NfoMetadata.dll
Info App: Loading OMDb, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /config/plugins/OMDb.dll
Info App: Loading OpenSubtitles, Version=1.0.11.0, Culture=neutral, PublicKeyToken=null from /config/plugins/OpenSubtitles.dll
Info App: Loading StudioImages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/StudioImages.dll
Info App: Loading Tvdb, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Tvdb.dll
Info App: Loading MediaBrowser.Api, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.WebDashboard, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.Model, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.Common, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.Controller, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.Providers, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Photos, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Server.Implementations, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.LiveTV, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Server.MediaEncoding, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Dlna, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.LocalMetadata, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Notifications, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Codecs.Dxva, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Codecs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Server.Connect, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Server.Sync, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info App: Loading EmbyServer, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null
Info SqliteUserRepository: Sqlite version: 3.26.0
Info SqliteUserRepository: Sqlite compiler options: COMPILER=gcc-6.3.0,ENABLE_COLUMN_METADATA,ENABLE_DBSTAT_VTAB,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS3_TOKENIZER,ENABLE_FTS4,ENABLE_FTS5,ENABLE_JSON1,ENABLE_PREUPDATE_HOOK,ENABLE_RTREE,ENABLE_SESSION,ENABLE_UNLOCK_NOTIFY,ENABLE_UPDATE_DELETE_LIMIT,LIKE_DOESNT_MATCH_BLOBS,MAX_SCHEMA_RETRY=25,MAX_VARIABLE_NUMBER=250000,OMIT_LOOKASIDE,SECURE_DELETE,THREADSAFE=1
Error Main: Error in appHost.Init
	*** Error Report ***
	Version: 4.0.1.0
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Unix 3.10.0.957
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 16
	Program data path: /config
	Application directory: /system
	SQLitePCL.pretty.SQLiteException: IOError: disk I/O error

	SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
	   at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
	   at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(String sql, String& tail)
	   at SQLitePCL.pretty.DatabaseConnection.PrepareStatement(IDatabaseConnection This, String sql)
	   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
	   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
	   at Emby.Sqlite.BaseSqliteRepository.CreateConnection(Boolean isReadOnly)
	   at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize()
	   at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
	   at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
	   at Emby.Server.Implementations.ApplicationHost.Init()
	   at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
	Source: SQLitePCL.pretty
	TargetSite: Void CheckOk(SQLitePCL.sqlite3, Int32)
	   at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
	   at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(String sql, String& tail)
	   at SQLitePCL.pretty.DatabaseConnection.PrepareStatement(IDatabaseConnection This, String sql)
	   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
	   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
	   at Emby.Sqlite.BaseSqliteRepository.CreateConnection(Boolean isReadOnly)
	   at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize()
	   at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
	   at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
	   at Emby.Server.Implementations.ApplicationHost.Init()
	   at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
	
Error Main: UnhandledException
	*** Error Report ***
	Version: 4.0.1.0
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Unix 3.10.0.957
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 16
	Program data path: /config
	Application directory: /system
	SQLitePCL.pretty.SQLiteException: IOError: disk I/O error

	SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
	   at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
	   at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(String sql, String& tail)
	   at SQLitePCL.pretty.DatabaseConnection.PrepareStatement(IDatabaseConnection This, String sql)
	   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
	   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
	   at Emby.Sqlite.BaseSqliteRepository.CreateConnection(Boolean isReadOnly)
	   at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize()
	   at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
	   at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
	   at Emby.Server.Implementations.ApplicationHost.Init()
	   at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
	   at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options)
	   at EmbyServer.Program.Main(String[] args)
	Source: SQLitePCL.pretty
	TargetSite: Void CheckOk(SQLitePCL.sqlite3, Int32)
	   at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
	   at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(String sql, String& tail)
	   at SQLitePCL.pretty.DatabaseConnection.PrepareStatement(IDatabaseConnection This, String sql)
	   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
	   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
	   at Emby.Sqlite.BaseSqliteRepository.CreateConnection(Boolean isReadOnly)
	   at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize()
	   at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
	   at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
	   at Emby.Server.Implementations.ApplicationHost.Init()
	   at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
	   at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options)
	   at EmbyServer.Program.Main(String[] args)
	
UnhandledException
SQLitePCL.pretty.SQLiteException: IOError: disk I/O error

SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
   at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
   at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(String sql, String& tail)
   at SQLitePCL.pretty.DatabaseConnection.PrepareStatement(IDatabaseConnection This, String sql)
   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Emby.Sqlite.BaseSqliteRepository.CreateConnection(Boolean isReadOnly)
   at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize()
   at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
   at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
   at Emby.Server.Implementations.ApplicationHost.Init()
   at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
   at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options)
   at EmbyServer.Program.Main(String[] args)
Source: SQLitePCL.pretty
TargetSite: Void CheckOk(SQLitePCL.sqlite3, Int32)
   at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)
   at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(String sql, String& tail)
   at SQLitePCL.pretty.DatabaseConnection.PrepareStatement(IDatabaseConnection This, String sql)
   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Emby.Sqlite.BaseSqliteRepository.CreateConnection(Boolean isReadOnly)
   at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize()
   at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
   at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
   at Emby.Server.Implementations.ApplicationHost.Init()
   at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
   at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options)
   at EmbyServer.Program.Main(String[] args)


[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.


Edited by DeaDSouL, 29 January 2019 - 04:14 PM.


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153333 posts
  • Local time: 12:59 PM

Posted 28 January 2019 - 12:23 AM

Hi, I don't think it is accurate to call this a bug. I think it just doesn't have the necessary read write permissions to that location. I have not tested your exact setup, but If you can resolve the permissions, then it should work.



#3 DeaDSouL OFFLINE  

DeaDSouL

    Newbie

  • Members
  • 6 posts
  • Local time: 07:59 PM

Posted 29 January 2019 - 02:29 AM

Thanks for replying, but it should have the needed read/write permission. Because if i copy that folder from the mounted location to a local path, it works fine.
The way i copied it:
cp -rp /dockers /srv/
Or
rsync -av /dockers /srv/

Which means it has the needed read/write permissions and both have the same ownership (1000:1000)

Besides i’ve Already shown above the owner:group and the permissions of /dockers/emby
And searched in that path for any file/directory that isn’t owned by uid:1000 or gid:1000. And didn’t find anything. And when I searched for those files/dirs owned by 1000:1000 it showed everything in that location.
And the owner does have the rwx permissions
Again, which means it should have the needed permissions.
Unless there was something I’m missing!

I don’t see why it acts differently if it’s on a mounted directory!

Edited by DeaDSouL, 29 January 2019 - 02:40 AM.


#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153333 posts
  • Local time: 12:59 PM

Posted 29 January 2019 - 01:11 PM

@mastrmind11 do you have any tips?



#5 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 3015 posts
  • Local time: 12:59 PM
  • LocationLong Island, NY

Posted 29 January 2019 - 02:57 PM

Trying to understand this.  So you're saying you're trying to point docker config to a shared drive?



#6 DeaDSouL OFFLINE  

DeaDSouL

    Newbie

  • Members
  • 6 posts
  • Local time: 07:59 PM

Posted 29 January 2019 - 03:47 PM

@mastrmind11, Yes

 

the /dockers actually is a mounted folder from the [host] to the [guest] using the vboxsf.

 

and it has been mounted with uid,gid that is identical to the assigned ones in docker run command



#7 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 3015 posts
  • Local time: 12:59 PM
  • LocationLong Island, NY

Posted 29 January 2019 - 04:02 PM

@mastrmind11, Yes

 

the /dockers actually is a mounted folder from the [host] to the [guest] using the vboxsf.

 

and it has been mounted with uid,gid that is identical to the assigned ones in docker run command

does it work if you specify a local config dir?



#8 DeaDSouL OFFLINE  

DeaDSouL

    Newbie

  • Members
  • 6 posts
  • Local time: 07:59 PM

Posted 29 January 2019 - 04:10 PM

yes indeed it does. it just doesn't like for its passed config directory to a mountpoint!



#9 DeaDSouL OFFLINE  

DeaDSouL

    Newbie

  • Members
  • 6 posts
  • Local time: 07:59 PM

Posted 30 January 2019 - 08:09 AM

any ideas?



#10 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 3015 posts
  • Local time: 12:59 PM
  • LocationLong Island, NY

Posted 30 January 2019 - 10:40 AM

shell into the container and see if you can access the mount.  also see whether you can touch a file in the mount.



#11 DeaDSouL OFFLINE  

DeaDSouL

    Newbie

  • Members
  • 6 posts
  • Local time: 07:59 PM

Posted 31 January 2019 - 02:27 PM

@mastrmind11, I can't do that test, because it crashes it runs/starts



#12 MisterMoonlight OFFLINE  

MisterMoonlight

    Advanced Member

  • Members
  • 30 posts
  • Local time: 11:59 AM

Posted 31 January 2019 - 11:58 PM

Just for curiosity, i am running emby 4.0.1.0 inside a virtualbox 5.0 vm machine running lubuntu 16.04 and it is working fine (but not using docker)...

Than i mounted at boot time through fstab some windows cifs shared drive for my media access and it is working fine.



#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153333 posts
  • Local time: 12:59 PM

Posted 01 February 2019 - 03:49 AM

Thanks for the info !







Also tagged with one or more of these keywords: docker, emby v4, embyserver, centos, virtualbox, shared folder, mount, vboxsf, container, emby/embyserver

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users