UCS don't create shared folders


#1

Hello, i have USC with AD migrated from SBS2008.
On test clean UCS with new AD i could create shared folders without problem , but not production in production server.
There is not real folder created on filesystem and there is no records in /etc/exports too. I could not find any errors in logs.
In web panel all looks good, and i can see right records for the folders in ldap then i connect directly by port 7389, but also i cannot find these records in samba ldap port 389.
Could you please tell me which log file i should look? And maybe some one had same problem? I need solution or way to troubleshoot it, please.


#2

Found one error in /var/log/univention/listener.log

13.03.17 09:20:22.435 DEBUG_INIT
UNIVENTION_DEBUG_BEGIN : uldap.__open host=UCS01.XXXXXXX.local port=7389 base=dc=XXXXXXX,dc=local
UNIVENTION_DEBUG_END : uldap.__open host=UCS01.XXXXXXXX.local port=7389 base=dc=XXXXXXX,dc=local
13.03.17 09:20:22.796 LISTENER ( ERROR ) : connection to notifier was closed
13.03.17 09:20:22.796 LISTENER ( ERROR ) : failed to recv result
13.03.17 09:20:22.796 LISTENER ( ERROR ) : listener: 1


#3

This helped me, but i think that system is not in good state.

root@UCS01:/var/log/univention# tail -1 /var/lib/univention-ldap/notify/transaction
4837 cn=test,cn=shares,dc=XXXXXXXXX,dc=local a
root@UCS01:/var/log/univention# cat /var/lib/univention-directory-listener/notifier_id
4686
root@UCS01:/var/log/univention# univention-directory-listener-ctrl resync samba-shares
waiting for listener modules to finish

waiting for listener modules to finish
listener shutdown done

root@UCS01:/# univention-directory-listener-ctrl resync nfs-shares
waiting for listener modules to finish


waiting for listener modules to finish
waiting for listener modules to finish
listener shutdown done

root@UCS01:/# ls / | grep test
test

root@UCS01:/# cat /etc/exports

/etc/exports: the access control list for filesystems which may be exported

to NFS clients. See exports(5).

Example for NFSv2 and NFSv3:

/srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)

Example for NFSv4:

/srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)

/srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)

“/test” *(rw,root_squash,sync,subtree_check) # LDAP:cn=test,cn=shares,dc=XXXXXX,dc=local


#4

Seems that problem is here

cat /var/lib/univention-ldap/notify/transaction


4686 zoneName=schieferco.local,cn=dns,dc=XXXXX,dc=local m
4704 cn=5117,cn=gidNumber,cn=temporary,cn=univention,dc=xxxxxxx,dc=local a

4686 and then 4704 , not 4687

13.03.17 11:18:24.453 LISTENER ( ALL ) : unblocking signals (was 1)
13.03.17 11:18:24.453 LISTENER ( INFO ) : Last Notifier ID: 4686
13.03.17 11:18:24.453 LISTENER ( ALL ) : >>>MSGID: 2
GET_DN 4687

13.03.17 11:18:24.462 LISTENER ( ALL ) : RESULT: [(null)]
13.03.17 11:18:24.462 LISTENER ( ERROR ) : connection to notifier was closed
13.03.17 11:18:24.462 LISTENER ( ERROR ) : failed to recv result
13.03.17 11:18:24.462 LISTENER ( ERROR ) : listener: 1

How could i drop counting?


#5

You could use the following SDB articles that may help:

http://sdb.univention.de/1303
http://sdb.univention.de/content/14/355/en/transaction-file-checking.html

maybe even: http://sdb.univention.de/content/14/305/en/recreate-listener-cache.html


#6

Thnak you.

This helped me!

Please replace “dc=foo,dc=bar” with your own ldap/base. (ucr get ldap/base)

2658985 dc=foo,dc=bar m
2658986 dc=foo,dc=bar m
2658987 dc=foo,dc=bar m
2658988 dc=foo,dc=bar m
2658989 dc=foo,dc=bar m
2658990 dc=foo,dc=bar m
2658991 dc=foo,dc=bar m
2658992 dc=foo,dc=bar m

And it’s funny , that i thought to do the same thing without reading this docs)