Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local file copy to mounted smb share not working... #48

Open
peters77 opened this issue Oct 22, 2019 · 0 comments
Open

local file copy to mounted smb share not working... #48

peters77 opened this issue Oct 22, 2019 · 0 comments

Comments

@peters77
Copy link

peters77 commented Oct 22, 2019

If I try to use local file copy to a smb mounted dir on the the server via file:// the client stalls with an Permission denied error. A touch /mnt/bilbo/t2/test on the server to the dest dir works.

server.ini

[eumetcast_him8]
origin = /home/cpeters/testdata/IMG_{platform_name:4s}{channel:3s}{time:%Y%m%d%H%M}{segment}{compress}
request_port = 9095
publisher_port = 9010
info = sensor=ahi
topic = /him8/test
compression = bzip
delete = True

client.ini

[eumetcast_him8]
providers = smaug:9010
destination = /mnt/bilbo/t2/
login = user
topic = /him8/test
publish_port = 0

client log:

[2019-10-22 17:39:57,168 DEBUG posttroll.publisher] Publish heartbeat (min_interval is 30.0 sec)
[2019-10-22 17:40:01,645 DEBUG trollmoves.client] Receiving (SUB) pytroll://him8/test file cpeters@smaug 2019-10-22T15:40:01.632058 v1.01 application/json {"compress": "", "channel": "IR1", "time": "2019-10-22T15:29:00", "uri": "/tmp/IMG_DK01IR1_201910221529_010", "sensor": "ahi", "platform_name": "DK01", "uid": "IMG_DK01IR1_201910221529_010", "segment": "010.bz2", "request_address": "192.168.1.159:9095"}
[2019-10-22 17:40:01,647 INFO trollmoves.client] Requesting: pytroll://him8/test push cpeters@bilbo 2019-10-22T15:40:01.646518 v1.01 application/json {"compress": "", "channel": "IR1", "time": "2019-10-22T15:29:00", "uri": "/tmp/IMG_DK01IR1_201910221529_010", "sensor": "ahi", "platform_name": "DK01", "uid": "IMG_DK01IR1_201910221529_010", "segment": "010.bz2", "request_address": "192.168.1.159:9095", "destination": "file://bilbo/mnt/bilbo/t2/"}
Exception in thread Thread-7:
Traceback (most recent call last):
File "/home/cpeters/anaconda2/envs/pytroll/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/cpeters/anaconda2/envs/pytroll/lib/python3.6/site-packages/trollmoves/client.py", line 183, in run
self.callback(msg, *self.cargs, **self.ckwargs)
File "/home/cpeters/anaconda2/envs/pytroll/lib/python3.6/site-packages/trollmoves/client.py", line 392, in request_push
local_dir = create_local_dir(destination, kwargs.get('ftp_root', '/'))
File "/home/cpeters/anaconda2/envs/pytroll/lib/python3.6/site-packages/trollmoves/client.py", line 256, in create_local_dir
os.makedirs(local_dir)
File "/home/cpeters/anaconda2/envs/pytroll/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/home/cpeters/anaconda2/envs/pytroll/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/mnt/bilbo'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant