Error create shared folder

I get this error when i try to create a shared folder:

echo '{"action":"create","item":{"SmbRecycleBinStatus":"disabled","SmbRecycleBinVersionStatus":"disabled","SmbAuditStatus":"disabled","SmbShareBrowseable":"enabled","guestAccess":"enabled","status":"enabled","name":"scanner","OwningGroup":"domain users@domainname.tld","acls":{"EVERYONE":"r","GOWNER":"rw"},"Description":"","SmbRecycleBinVersionsStatus":"disabled"}}' | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-samba/sharedfolders/create | jq
1 Like

Please execute the command and report the output here.

{
  "steps": 4,
  "pid": 5719,
  "args": "scanner",
  "event": "ibay-create"
}
{
  "step": 1,
  "pid": 5719,
  "action": "S05generic_template_expand",
  "event": "ibay-create",
  "state": "running"
}
{
  "progress": "0.25",
  "time": "0.077804",
  "exit": 0,
  "event": "ibay-create",
  "state": "done",
  "step": 1,
  "pid": 5719,
  "action": "S05generic_template_expand"
}
{
  "step": 2,
  "pid": 5719,
  "action": "S15nethserver-ibays-ibay-create",
  "event": "ibay-create",
  "state": "running"
}
{
  "progress": "0.50",
  "time": "0.002519",
  "exit": 0,
  "event": "ibay-create",
  "state": "done",
  "step": 2,
  "pid": 5719,
  "action": "S15nethserver-ibays-ibay-create"
}
{
  "step": 3,
  "pid": 5719,
  "action": "S20nethserver-ibays-set-permissions",
  "event": "ibay-create",
  "state": "running"
}
{
  "progress": "0.75",
  "time": "0.035008",
  "exit": 65280,
  "event": "ibay-create",
  "state": "done",
  "step": 3,
  "pid": 5719,
  "action": "S20nethserver-ibays-set-permissions"
}
{
  "step": 4,
  "pid": 5719,
  "action": "S90adjust-services",
  "event": "ibay-create",
  "state": "running"
}
{
  "progress": "1.00",
  "time": "0.127307",
  "exit": 0,
  "event": "ibay-create",
  "state": "done",
  "step": 4,
  "pid": 5719,
  "action": "S90adjust-services"
}
{
  "pid": 5719,
  "status": "failed",
  "event": "ibay-create"
}
{
  "type": "Error",
  "attributes": {
    "event_name": "ibay-create",
    "event_args": [
      "scanner"
    ]
  },
  "message": "sharedfolders.api_update_failed"

We still do not have enough info, try to extract and post relevant parts from the log.
Something like: grep ibay-create /var/log/messages.

(Please use markdown syntax when pasting)

i fix just change the name of share folder from “scanner” to “scan”

Does an entity called scanner already exists into server i.e. an user?

Hi

yes i have a user called scanner, this is the problem because i can’t create the folder?

@Denis_Pollini

Hi

As any user, your user scanner get’s a home directory (Also a share!) with the same name as ther User-ID, in this case scanner is the Home Directory.

As that share already exists (Due to the user scanner) you can’t create a share with the same name.

My 2 cents
Andy

4 Likes

Ok

Thanks

1 Like

Hi @Denis_Pollini,
could you please mark the topic as solved?

1 Like