mirror of
https://github.com/RD17/ambar.git
synced 2026-04-25 07:25:55 +03:00
[GH-ISSUE #50] SMB crawler not working, share verified working #49
Labels
No labels
$$ Paid Support
bug
bug
enhancement
help wanted
invalid
pull-request
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ambar#49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @effnorwood on GitHub (Jul 14, 2017).
Original GitHub issue: https://github.com/RD17/ambar/issues/50
Installed clean today on clean Ubuntu 16.04 install. Verified I can connect to the share from Windows and Linux using mount -t cifs. Crawler config:
{
"id": "data",
"uid": "data_d033e22ae348aeb5660fc2140aec35850c4da997",
"description": "nas crawler",
"type": "smb",
"locations": [
{
"host_name": "nas",
"ip_address": "10.0.0.100",
"location": "data"
}
],
"file_regex": "(\.doc[a-z]
)|(\\.xls[a-z]*)|(\.txt$)|(\.csv$)|(\.htm[a-z])|(\\.ppt[a-z]*)|(\.pdf$)|(\.msg$)|(\.eml$)|(\.rtf$)|(\.md$)|(\.png$)|(\.bmp$)|(\.tif[f])|(\\.jp[e]*g)|(\.hwp$)","credentials": {
"auth_type": "ntlm",
"login": "jes",
"password": "****",
"token": ""
},
"schedule": {
"is_active": true,
"cron_schedule": "/15 * * * *"
},
"max_file_size_bytes": 30000000,
"verbose": true
}
Error:
2017-07-14 11:15:00.688: [info] filecrawler initialized
2017-07-14 11:15:00.695: [error]
2017-07-14 11:15:00.700: [error] error connecting to Smb share on nas
Notice that there is nothing by the error at all.
Also, how do I get to the logs for this system? I looked at docker logs but they said nothing about this issue. Thank you.
@sochix commented on GitHub (Jul 19, 2017):
Maybe you didn't escape correctly some chars in the password?
@effnorwood commented on GitHub (Jul 20, 2017):
Password is just all lower case and kind of like 'heythisismypasswordbutitslongsoicanrememberit'. No special characters.
@sochix commented on GitHub (Jul 24, 2017):
Ok, can you please run
docker logs ambar_crawler_c0and paste results here@sochix commented on GitHub (Aug 4, 2017):
@effnorwood any news?
@effnorwood commented on GitHub (Aug 4, 2017):
Just saw this, will do and get back. Thanks!
@sochix commented on GitHub (Aug 18, 2017):
@effnorwood any news?
@sochix commented on GitHub (Aug 31, 2017):
No news for 2 weeks. Closing
@yuergen commented on GitHub (Nov 9, 2017):
I have the same issue. I can ping the SMB host from a freshly installed virtual machine with ubuntu 16.04.
docker logsdoes not provide any output at all:To mount the share with
mount -t cifs, I need to supplydomain="DOMAINNAME"as a mount option in addition to the credentials.@sochix commented on GitHub (Nov 9, 2017):
@yuergen please share with us your crawler config
@yuergen commented on GitHub (Nov 9, 2017):
@sochix yes, sure. Here it is:
@sochix commented on GitHub (Nov 16, 2017):
@yuergen host_name should be the name of the pc not the ip address
@yuergen commented on GitHub (Nov 18, 2017):
I have found a workaround which can be used for testing: Changing the samba-Server's configuration by enabling
map untrusted to domainenables ambar to mount the share. Crawling then works.What is the correct way to supply the samba domain name via the crawler configuration of ambar?
@sochix commented on GitHub (Nov 19, 2017):
use domain name in your login, e.g.
domain\user_name@yuergen commented on GitHub (Nov 22, 2017):
@sochix I will test it as soon as possible and give you feedback if it works. Thank you.
@yuergen commented on GitHub (Nov 26, 2017):
@sochix, your suggestion works. Thank you!
For other users it might be important to know that it is necessary to escape the backslash. This results in a config line similar to
"login": "DOMAIN\\user",.