Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to mount buckets via systemd unless fuse package installed #9

Closed
juliogonzalez opened this issue Oct 9, 2018 · 8 comments

Comments

@juliogonzalez
Copy link
Owner

juliogonzalez commented Oct 9, 2018

As reported by @chrisbarnett1 at ef0ec63#r30831205:

It seemed to be needed for our CentOS 7 configuration. We are using systemd.mount. I've written a mount unit file and placed it in /etc/systemd/system/srv-s3assets.mount which mounts our bucket to > /srv/s3assets. We can then use systemctl start|stop srv-s3assets.mount to mount/unmount.

We were building the s3fs-fuse package ourselves and had it in a private yum repo. When the package appeared in the EPEL repo that version (and its dependencies) got installed when we created > a new CentOS server

This is the error we were getting:

mount: wrong fs type, bad option, bad superblock on s3fs-fuse

fuse-lib was installed on the system but not fuse. Installing fuse fixed our issue. I guess this requirement could be down to how we are mounting the S3 bucket maybe. Anyway we've resolved the issue at our end, just thought it maybe useful to have fuse as a dependency for others

Thanks for all the work you've done putting this repo together. Definitely made life easier for us :) and its great its part of EPEL now

Many thanks,
Chris

@juliogonzalez
Copy link
Owner Author

juliogonzalez commented Oct 9, 2018

Problem validated at openSUSE 42.3:

linux-cagf:~ # grep s3fs /etc/fstab
s3fs#cf-templates-12ygdzmfdu02u-us-east-2 /mnt fuse allow_other,nonempty,use_cache=/tmp/cache 0 0

linux-cagf:~ # mount /mnt/
mount: wrong fs type, bad option, bad superblock on s3fs#cf-templates-12ygdzmfdu02u-us-east-2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

linux-cagf:~ # zypper in -y fuse
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  fuse

1 new package to install.
Overall download size: 81.6 KiB. Already cached: 0 B. After the operation, additional 242.5 KiB will be used.
Continue? [y/n/...? shows all options] (y): y
Retrieving package fuse-2.9.3-11.3.x86_64                                                                                                                                                                                                 (1/1),  81.6 KiB (242.5 KiB unpacked)
Retrieving: fuse-2.9.3-11.3.x86_64.rpm ..................................................................................................................................................................................................................................[done]
Checking for file conflicts: ............................................................................................................................................................................................................................................[done]
(1/1) Installing: fuse-2.9.3-11.3.x86_64 ................................................................................................................................................................................................................................[done]
Additional rpm output:
setting /usr/bin/fusermount to root:trusted 4755. (wrong permissions 4750)

linux-cagf:~ # mount /mnt/

linux-cagf:~ # 

@juliogonzalez
Copy link
Owner Author

juliogonzalez commented Oct 9, 2018

Same problem at openSUSE 15.0:

linux-cagg:~ #  grep s3fs /etc/fstab
s3fs#cf-templates-12ygdzmfdu02u-us-east-2 /mnt fuse allow_other,nonempty,use_cache=/tmp/cache 0 0

linux-cagg:~ # mount /mnt/
mount: /mnt: wrong fs type, bad option, bad superblock on s3fs#cf-templates-12ygdzmfdu02u-us-east-2, missing codepage or helper program, or other error.

linux-cagg:~ # zypper in -y fuse
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  fuse

1 new package to install.
Overall download size: 82.9 KiB. Already cached: 0 B. After the operation, additional 224.9 KiB will be used.
Continue? [y/n/...? shows all options] (y): y
Retrieving package fuse-2.9.7-lp150.1.30.x86_64                                                                                                                                                                                           (1/1),  82.9 KiB (224.9 KiB unpacked)
Retrieving: fuse-2.9.7-lp150.1.30.x86_64.rpm ............................................................................................................................................................................................................................[done]
Checking for file conflicts: ............................................................................................................................................................................................................................................[done]
(1/1) Installing: fuse-2.9.7-lp150.1.30.x86_64 ..........................................................................................................................................................................................................................[done]
Additional rpm output:
setting /usr/bin/fusermount to root:trusted 4755. (wrong permissions 4750)

linux-cagg:~ # mount /mnt/

linux-cagg:~ #

@juliogonzalez
Copy link
Owner Author

And finally at Fedora 28 (the packages for 27, 29 and EPEL7 are generated from the same spec):

[root@localhost ~]# grep 's3fs' /etc/fstab
s3fs#cf-templates-12ygdzmfdu02u-us-east-2 /mnt fuse allow_other,nonempty,use_cache=/tmp/cache 0 0

[root@localhost ~]# mount /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on s3fs#cf-templates-12ygdzmfdu02u-us-east-2, missing codepage or helper program, or other error.

[root@localhost ~]# yum install -y fuse
Last metadata expiration check: 0:02:36 ago on Tue Oct  9 19:10:22 2018.
Dependencies resolved.
===============================================================================================================================================================================================================================================================================
 Package                                                             Arch                                                           Version                                                               Repository                                                      Size
===============================================================================================================================================================================================================================================================================
Installing:
 fuse                                                                x86_64                                                         2.9.7-11.fc28                                                         fedora                                                          81 k
Installing dependencies:
 fuse-common                                                         x86_64                                                         3.2.1-11.fc28                                                         fedora                                                          20 k

Transaction Summary
===============================================================================================================================================================================================================================================================================
Install  2 Packages

Total download size: 101 k
Installed size: 202 k
Downloading Packages:
(1/2): fuse-common-3.2.1-11.fc28.x86_64.rpm                                                                                                                                                                                                    191 kB/s |  20 kB     00:00    
(2/2): fuse-2.9.7-11.fc28.x86_64.rpm                                                                                                                                                                                                           752 kB/s |  81 kB     00:00    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                          128 kB/s | 101 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                       1/1 
  Installing       : fuse-common-3.2.1-11.fc28.x86_64                                                                                                                                                                                                                      1/2 
  Installing       : fuse-2.9.7-11.fc28.x86_64                                                                                                                                                                                                                             2/2 
  Running scriptlet: fuse-2.9.7-11.fc28.x86_64                                                                                                                                                                                                                             2/2 
  Verifying        : fuse-2.9.7-11.fc28.x86_64                                                                                                                                                                                                                             1/2 
  Verifying        : fuse-common-3.2.1-11.fc28.x86_64                                                                                                                                                                                                                      2/2 

Installed:
  fuse.x86_64 2.9.7-11.fc28                                                                                                          fuse-common.x86_64 3.2.1-11.fc28                                                                                                         

Complete!

[root@localhost ~]# mount /mnt

[root@localhost ~]# 

@juliogonzalez
Copy link
Owner Author

So it's clear: fuse package is needed to mount the bucket via systemd, /etc/fstab or mount.

I will submit patches for openSUSE, Fedora, and EPEL7.

@juliogonzalez
Copy link
Owner Author

@juliogonzalez
Copy link
Owner Author

Everything submitted now to openSUSE and Fedora/EPEL, hopefully without errors:

As soon as the requests are merged and available at all the distributions, I will close this issue.

@juliogonzalez
Copy link
Owner Author

@chrisbarnett1, if you have time, you can check the EPEL7 submission and verify that it works for you, and if it works, add a +1 to the bodhi request.

You can get the package from EPEL testing.

@juliogonzalez
Copy link
Owner Author

juliogonzalez commented Oct 31, 2018

All SUSE/openSUSE requests were accepted.

Same for all Fedora requests and EPEL7.

Closing this issue as solved, and closing the bugzilla issues for SUSE/openSUSE and Fedora/EPEL.

Thanks again @chrisbarnett1 for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant