Cannot save extra parameters

willson
Posts: 4
Joined: Sun Oct 01, 2017 2:26 am

Cannot save extra parameters

Postby willson » Sun Oct 01, 2017 2:31 am

Hello,

Under the "Shares" tab in my hda, I am trying to add extra parameters to my shares, as per the Manual Greyhole setup instructions. I am trying to add:

Code: Select all

dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole
but every time I click the "Change" button, this fails. If I edit the smb.conf manually with the lines, then greyhole works as expected, but eventually the settings get removed because Amahi is re-creating the smb.conf file. Opening the Chrome dev tools, I notice it's giving a 500 Internal Server error when calling the API to update the extra params.

Looking at production.log, I get this result:

Code: Select all

Processing by SharesController#update_extras as JSON Parameters: {"utf8"=>"✓", "share"=>{"extras"=>"dfree command = /usr/bin/greyhole-dfree\r\nvfs objects = greyhole"}, "commit"=>"Change", "id"=>"1"} Completed 500 Internal Server Error in 116ms (ActiveRecord: 86.3ms) NoMethodError (undefined method `lines' for #<ActionController::Parameters:0x007febc47f5410>): app/controllers/application_controller.rb:111:in `sanitize_text'
Is there a way to work around this problem?

Thanks!

willson
Posts: 4
Joined: Sun Oct 01, 2017 2:26 am

Re: Cannot save extra parameters

Postby willson » Sun Oct 01, 2017 2:45 am

Update: I've manually added the two commands to the "shares" table in mysql, and then triggered the smb.conf to be rewritten by toggling one of the share's visibility off and on. This created a proper smb.conf for that.

Is there any side effects to doing it this way?

User avatar
bigfoot65
Project Manager
Posts: 10637
Joined: Mon May 25, 2009 4:31 pm

Re: Cannot save extra parameters

Postby bigfoot65 » Sun Oct 01, 2017 6:41 am

Is there any side effects to doing it this way?
There may be. This indicates there may be more to the problem then just one issue.

Please provide the URL for:

Code: Select all

apaste --sysinfo
ßîgƒσστ65
Applications Manager

willson
Posts: 4
Joined: Sun Oct 01, 2017 2:26 am

Re: Cannot save extra parameters

Postby willson » Sun Oct 01, 2017 11:48 am

Here you go: https://da.gd/Gw6C

Some additional info, I do not have Greyhole UI installed, and haven't really done much outside of the installation flows suggested by the wiki, other than install plex

User avatar
bigfoot65
Project Manager
Posts: 10637
Joined: Mon May 25, 2009 4:31 pm

Re: Cannot save extra parameters

Postby bigfoot65 » Sun Oct 01, 2017 12:02 pm

Ok don’t see anything out of the norm.

Not sure why the options would not save unless it was a browser issue.

What browser were you using?
ßîgƒσστ65
Applications Manager

willson
Posts: 4
Joined: Sun Oct 01, 2017 2:26 am

Re: Cannot save extra parameters

Postby willson » Sun Oct 01, 2017 12:17 pm

Same issue on Chrome, Firefox, and Edge. I'm running on Windows 10. I unfortunately don't have another linux or mac to try it on

User avatar
bigfoot65
Project Manager
Posts: 10637
Joined: Mon May 25, 2009 4:31 pm

Re: Cannot save extra parameters

Postby bigfoot65 » Sun Oct 01, 2017 12:23 pm

Ok.

Don’t know what could cause the problem unless the initial install had issues.

If that’s the case, you would need to start over.

You could submit a bug report. More investigation would be needed.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 2 guests