mirror of
https://github.com/RD17/ambar.git
synced 2026-04-25 15:35:49 +03:00
[GH-ISSUE #14] Setting up SMB crawler -> Error: undefined #15
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#15
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 @TrailerTracch on GitHub (Apr 12, 2017).
Original GitHub issue: https://github.com/RD17/ambar/issues/14
Attempting to setup the SMB crawler following the guide in the blog. Problem is I keep getting this red message at the bottom saying Error: undefined. There are no "i" markers on the left or highlighting to tell me where this may be or what it means. Below is my config with some slight edits.
Edits made: IP address, location, login, and password.
{
"id": "Share",
"description": "Share HDD",
"type": "smb",
"locations": [
{
"host_name": "EDITED",
"ip_address": "192.168.1.xxx",
"location": "EDITED"
}
],
"file_regex": "(\.doc[a-z]
)|(\\.xls[a-z]*)|(\.txt$)|(\.csv$)|(\.htm[a-z])|(\\.ppt[a-z]*)|(\.pdf$)|(\.msg$)|(\.zip$)|(\.eml$)|(\.rtf$)|(\.md$)|(\.png$)|(\.bmp$)|(\.tif[f]*)|(\\.jp[e]*g)","credentials": {
"auth_type": "ntlm",
"login": "EDITED",
"password": "EDITED"
},
"schedule": {
"is_active": true,
"cron_schedule": "*/15 * * * *"
},
"max_file_size_bytes": 30000000,
"verbose": true
}
Could the issue be related to the location? I've tried:
"\COMPUTERNAME\SHARE"
"//COMPUTERNAME/SHARE"
"SHARE"
@sochix commented on GitHub (Apr 12, 2017):
Hello @TrailerTracch !
Please, add field
tokentocredentialsobject with empty string value.It should look like this:
We fixed the error message, run
sudo ./ambar.py updateto get the fixWe also updated docs: Crawling Your Own Shared Folders
@TrailerTracch commented on GitHub (Apr 12, 2017):
EDIT
I fiddled around with it and it worked! Not sure what I was doing wrong but we are good. Thank you very much.
For the record my location is setup as the following in case anyone else has an issue:
"location": "FOLDERNAME"
Thanks for the quick reply and fix! I see now in the screenshot I overlooked the token part.
I have the crawler setup but now I'm stuck at the following:
[info] filecrawler initialized
[error] error connecting to Smb share on PCNAME
I've double checked my account for ambar to access this share but is there anyway to get a more detailed logging on this to figure it out?
@isido993 commented on GitHub (Apr 13, 2017):
It's quite strange, because in case of smb connection error you should get two lines in the log, like this:
locationfield must start with the share name you're going to crawl, e.g."location": "Share/EnglishStories"or"location": "Share". Have you checked you host name/IP address, also did you try to access your share manually via windows explorer?@TrailerTracch commented on GitHub (Apr 15, 2017):
@fpd4444
Share access via windows explorer was fine along with the IP,name, and account. I believe I just didn't have the other parts of the config correct. I appreciate everyone's help with this and getting me up and running!
@sochix commented on GitHub (Apr 17, 2017):
@TrailerTracch is problem solved? Can I close the issue?
@sochix commented on GitHub (Apr 25, 2017):
Closing issue. No response from issue author