SOLVED: Cannot save extra parameters

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

SOLVED: 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: 11924
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

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

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: 11924
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

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

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: 11924
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

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

HanoverFist
Posts: 3
Joined: Mon Nov 06, 2017 6:56 pm

Re: Cannot save extra parameters

Postby HanoverFist » Mon Nov 06, 2017 7:09 pm

I'm having the same problem. Install went fine, HDA seems to be working normally. I performed the manual Greyhole install but when I try to add the extra parameters to the shares it fails to save them when I click the "Change" button. Same behavior in both Chrome and IE. As far as I can tell everything else is working fine. Should I do a reinstall?

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

Re: Cannot save extra parameters

Postby bigfoot65 » Mon Nov 06, 2017 7:20 pm

Did you add the text manually or via copy/paste?

It could be there is a special character if you did the later.

Please provide the URL for:

Code: Select all

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

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

HanoverFist
Posts: 3
Joined: Mon Nov 06, 2017 6:56 pm

Re: Cannot save extra parameters

Postby HanoverFist » Mon Nov 06, 2017 8:42 pm

thanks for the quick reply

https://paste.fedoraproject.org/paste/8 ... 6OIGrLEz8Q

visually copied from HDA, not entirely sure if those are O or 0 on either side of the 6

I originally C&P'd but then tried typing in manually to avoid the stated potential problem - no difference...

Who is online

Users browsing this forum: No registered users and 8 guests