rootfs / nfs-ganesha-docker

containerized NFS Ganesha daemon
10 stars 6 forks source link

Just built: `VFS module failed to unregister` error and exits. #1

Open abourget opened 8 years ago

abourget commented 8 years ago

This is the logs output of what I get merely by executing this container with:

docker run -ti --rm nfs-ganesha

Logs:

17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] main :MAIN :EVENT :nfs-ganesha Starting: Ganesha Version /builddir/build/BUILD/nfs-ganesha-2.2.0/src, built at May 18 2015 12:09:39 on buildvm-13.phx2.fedoraproject.org
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] nfs_set_param_from_conf :NFS STARTUP :EVENT :Configuration file successfully parsed
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] init_server_pkgs :NFS STARTUP :EVENT :Initializing ID Mapper.
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] init_server_pkgs :NFS STARTUP :EVENT :ID Mapper successfully initialized.
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] lower_my_caps :NFS STARTUP :EVENT :CAP_SYS_RESOURCE was successfully removed for proper quota management in FSAL
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] lower_my_caps :NFS STARTUP :EVENT :currenty set capabilities are: = cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,cap_net_bind_service,cap_net_raw,cap_sys_chroot,cap_mknod,cap_audit_write,cap_setfcap+eip
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] gsh_dbus_pkginit :DBUS :CRIT :dbus_bus_get failed (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory)
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] gsh_dbus_register_path :DBUS :CRIT :dbus_connection_register_object_path called with no DBUS connection
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] gsh_dbus_register_path :DBUS :CRIT :dbus_connection_register_object_path called with no DBUS connection
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] vfs_lookup_path :FSAL :CRIT :Could not get handle for path /exports, error Operation not permitted
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] init_export_root :EXPORT :CRIT :Lookup failed on path, ExportId=77 Path=/exports FSAL_ERROR=(Forbidden action,1)
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] nfs_Init_svc :DISP :CRIT :Cannot acquire credentials for principal nfs
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] Register_program :DISP :FATAL :Cannot register NFS V3 on UDP
17/07/2016 18:40:17 : epoch 578bd111 : 680f50dc4965 : nfs-ganesha-17[main] unregister_fsal :FSAL :CRIT :Unregister FSAL VFS with non-zero refcount=1

Does it require dbus now ? is it a new dependency from when this was created ?

rootfs commented 8 years ago

how about running container in privileged mode?

sunsided commented 8 years ago

Same problem here; tried using fedora:24 as well (and had to install nfs-ganesha-gluster to make it work at all), but nothing helped. Privileged mode didn't help either.

nfs-ganesha-1[main] main :MAIN :EVENT :nfs-ganesha Starting: Ganesha Version /builddir/build/BUILD/nfs-ganesha-2.4-dev-27/src, built at Aug  1 2016 17:56:07 on 
nfs-ganesha-1[main] nfs_set_param_from_conf :NFS STARTUP :EVENT :Configuration file successfully parsed
nfs-ganesha-1[main] init_server_pkgs :NFS STARTUP :EVENT :Initializing ID Mapper.
nfs-ganesha-1[main] init_server_pkgs :NFS STARTUP :EVENT :ID Mapper successfully initialized.
nfs-ganesha-1[main] export_defaults_display :CONFIG :EVENT :DEFAULTS Export Defaults (root_squash   , ----, 34-, UDP, TCP, ----, No Manage_Gids, -- Deleg, anon_uid=    -2, anon_gid=    -2, none, sys)
nfs-ganesha-1[main] export_defaults_display :CONFIG :EVENT :RESULT Export Defaults (root_squash   , ----, 34-, UDP, TCP, ----, No Manage_Gids, -- Deleg, anon_uid=    -2, anon_gid=    -2, none, sys)
nfs-ganesha-1[main] glusterfs_create_export :FSAL :EVENT :Volume elasticsearch exported at : '/'
nfs-ganesha-1[main] lower_my_caps :NFS STARTUP :EVENT :CAP_SYS_RESOURCE was successfully removed for proper quota management in FSAL
nfs-ganesha-1[main] lower_my_caps :NFS STARTUP :EVENT :currenty set capabilities are: = cap_chown,cap_dac_override,cap_dac_read_search,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,cap_linux_immutable,cap_net_bind_service,cap_net_broadcast,cap_net_admin,cap_net_raw,cap_ipc_lock,cap_ipc_owner,cap_sys_module,cap_sys_rawio,cap_sys_chroot,cap_sys_ptrace,cap_sys_pacct,cap_sys_admin,cap_sys_boot,cap_sys_nice,cap_sys_time,cap_sys_tty_config,cap_mknod,cap_lease,cap_audit_write,cap_audit_control,cap_setfcap+eip
nfs-ganesha-1[main] gsh_dbus_pkginit :DBUS :CRIT :dbus_bus_get failed (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory)
nfs-ganesha-1[main] gsh_dbus_register_path :DBUS :CRIT :dbus_connection_register_object_path called with no DBUS connection
nfs-ganesha-1[main] gsh_dbus_register_path :DBUS :CRIT :dbus_connection_register_object_path called with no DBUS connection
nfs-ganesha-1[main] nfs_Init_svc :DISP :CRIT :Cannot acquire credentials for principal nfs
nfs-ganesha-1[main] Register_program :DISP :FATAL :Cannot register NFS V3 on UDP
nfs-ganesha-1[main] unregister_fsal :FSAL :CRIT :Unregister FSAL GLUSTER with non-zero refcount=2
nfs-ganesha-1[main] glusterfs_unload :FSAL :CRIT :FSAL Gluster unable to unload.  Dying ...
rootfs commented 8 years ago

likely rpcbind is not started, added readme for help. thanks for testing.

jamshid commented 7 years ago

So rpcbind has to be running on the docker server itself? It's supposed to already be running on Mac? Though I don't know Docker for Mac can access the OSX rpcbind.

Anyway, starting rpcbind does not seem to fix this issue on a docker server running on Ubuntu 16. I verified with ps auxwf that rpcbind is running (/sbin/rpcbind -f -w).

PS: I guess running rpcbind has security concerns, starting it shows this scary warning.

username@61:~$ systemctl start rpcbind
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'rpcbind.service'.
Authenticating as: <username>,,, (<username>)
Password: 
==== AUTHENTICATION COMPLETE ===
rootfs commented 7 years ago

Are you running as root? For warning message might be asking you to sudo.