geekmaster / eyefiserver2

Automatically exported from code.google.com/p/eyefiserver2
0 stars 0 forks source link

Unable to download Images #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using ubuntu 12.04 64. I'm using the git version from the 29 june 2012.
:~$ eyefiserver.py start /etc/eyefiserver.conf ~/log.txt
:~$ tail -f log.txt 
[06/29/12 11:01PM][runEyeFi] - Eye-Fi server started listening on port 59278
[06/29/12 11:01PM][get_request] - Incoming connection from client 192.168.1.13
[06/29/12 11:01PM][do_POST] - POST /api/soap/eyefilm/v1 HTTP/1.1
[06/29/12 11:01PM][do_POST] - Headers received in POST request:
[06/29/12 11:01PM][do_POST] - content-length: 412
[06/29/12 11:01PM][do_POST] - soapaction: "urn:StartSession"
[06/29/12 11:01PM][do_POST] - connection: Close
[06/29/12 11:01PM][do_POST] - accept: text/xml, application/soap
[06/29/12 11:01PM][do_POST] - user-agent: Eye-Fi Card/5.0008
[06/29/12 11:01PM][do_POST] - host: api.eye.fi
[06/29/12 11:01PM][do_POST] - Attempting to read 412 bytes of data
[06/29/12 11:01PM][do_POST] - Finished reading 412 bytes of data
[06/29/12 11:01PM][do_POST] - Got StartSession request
[06/29/12 11:01PM][startSession] - Delegating the XML parsing of startSession 
postData to EyeFiContentHandler()
[06/29/12 11:01PM][startSession] - Extracted elements: {'transfermode': 
u'49715', 'macaddress': u'xxxx5642faa5', 'cnonce': u'xxxxxfb4d', 
'transfermodetimestamp': u'1336218294'}
[06/29/12 11:01PM][startSession] - Got MAC address of xxxx42faa5
[06/29/12 11:01PM][startSession] - Setting Eye-Fi upload key to xxxxxdbd
[06/29/12 11:01PM][startSession] - Concatenated credential string (pre MD5): 
xxxxxfb4dxxxxdbd
[06/29/12 11:01PM][do_POST] - StartSession response: <?xml version="1.0" 
encoding="UTF-8"?><SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><Start
SessionResponse 
xmlns="http://localhost/api/soap/eyefilm"><credential>7363e5ab03f7ff93308150b58d
3b9172</credential><snonce>99208c155fc1883579cf0812ec0fe6d2</snonce><transfermod
e>2</transfermode><transfermodetimestamp>1230268824</transfermodetimestamp><upsy
ncallowed>false</upsyncallowed></StartSessionResponse></SOAP-ENV:Body></SOAP-ENV
:Envelope>
[06/29/12 11:01PM][get_request] - Incoming connection from client 192.168.1.13

and nothing else ...

Original issue reported on code.google.com by sargun...@gmail.com on 29 Jun 2012 at 9:11

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Error of adress mail sender. Sorry for the mistake

Original comment by cs.v...@gmail.com on 29 Jun 2012 at 9:13

GoogleCodeExporter commented 8 years ago
Please try the same in instance mode, i.e.
eyefiserver.py instance /etc/eyefiserver.conf ~/log.txt
Most possible there is an unhandled exception there.
Do you know your Python version?

Original comment by duke...@gmail.com on 30 Jun 2012 at 4:09

GoogleCodeExporter commented 8 years ago
Same problem.
Here is the output of the instance mode :

:~$ eyefiserver.py instance /etc/eyefiserver.conf ~/log.txt
[06/30/12 08:46AM][runEyeFi] - Reading config /etc/eyefiserver.conf
[06/30/12 08:46AM][runEyeFi] - Eye-Fi server started listening on port 59278
[06/30/12 08:46AM][get_request] - Incoming connection from client 192.168.1.13
[06/30/12 08:46AM][do_POST] - POST /api/soap/eyefilm/v1 HTTP/1.1
[06/30/12 08:46AM][do_POST] - Headers received in POST request:
[06/30/12 08:46AM][do_POST] - content-length: 412
[06/30/12 08:46AM][do_POST] - soapaction: "urn:StartSession"
[06/30/12 08:46AM][do_POST] - connection: Close
[06/30/12 08:46AM][do_POST] - accept: text/xml, application/soap
[06/30/12 08:46AM][do_POST] - user-agent: Eye-Fi Card/5.0008
[06/30/12 08:46AM][do_POST] - host: api.eye.fi
[06/30/12 08:46AM][do_POST] - Attempting to read 412 bytes of data
412
Finished
[06/30/12 08:46AM][do_POST] - Finished reading 412 bytes of data
[06/30/12 08:46AM][do_POST] - Got StartSession request
[06/30/12 08:46AM][startSession] - Delegating the XML parsing of startSession 
postData to EyeFiContentHandler()
[06/30/12 08:46AM][startSession] - Extracted elements: {'transfermode': 
u'49715', 'macaddress': u'xxxx5642faa5', 'cnonce': u'xxxxxfb4d', 
'transfermodetimestamp': u'1341038532'}
[06/30/12 08:46AM][startSession] - Got MAC address of xxxx42faa5
[06/30/12 08:46AM][startSession] - Setting Eye-Fi upload key to 
f66052c4dcda1282de11364264cefdbd
[06/30/12 08:46AM][startSession] - Concatenated credential string (pre MD5): 
xxxxxfb4dxxxxdbd
[06/30/12 08:46AM][do_POST] - StartSession response: <?xml version="1.0" 
encoding="UTF-8"?><SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><Start
SessionResponse 
xmlns="http://localhost/api/soap/eyefilm"><credential>1787910c0a4d1b66b74fca33c1
acbfb9</credential><snonce>99208c155fc1883579cf0812ec0fe6d2</snonce><transfermod
e>2</transfermode><transfermodetimestamp>1230268824</transfermodetimestamp><upsy
ncallowed>false</upsyncallowed></StartSessionResponse></SOAP-ENV:Body></SOAP-ENV
:Envelope>
[06/30/12 08:46AM][get_request] - Incoming connection from client 192.168.1.13
192.168.1.13 - - [30/Jun/2012 08:46:52] "POST /api/soap/eyefilm/v1 HTTP/1.1" 
200 -

Only a line more.

My python version is :
:~$ python --version
Python 2.7.3
My system
:~$ uname -a
Linux  3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 
x86_64 x86_64 GNU/Linux

Original comment by cs.v...@gmail.com on 30 Jun 2012 at 6:52

GoogleCodeExporter commented 8 years ago
Is there any debug option ? more verbose ?

Original comment by cs.v...@gmail.com on 30 Jun 2012 at 10:45

GoogleCodeExporter commented 8 years ago
There is no more verbose version yet. Try this:
1. Insert card to PC and check that uploading to local server is enabled in 
EyeFi Center
2. Clean all photos from the card
3. Remove the card and exit EyeFi helper
4. Start EyeFiServer in instance mode and copy-paste mac and upload key
5. turn on camera, make a shot and see check log

Original comment by duke...@gmail.com on 30 Jun 2012 at 10:59

GoogleCodeExporter commented 8 years ago
I do exactly : here is the output
vguignot@Studio-Slim-540s:~$ eyefiserver.py instance /etc/eyefiserver.conf 
~/log.txt
[06/30/12 03:18PM][runEyeFi] - Reading config /etc/eyefiserver.conf
[06/30/12 03:18PM][runEyeFi] - Eye-Fi server started listening on port 59278
[06/30/12 03:18PM][get_request] - Incoming connection from client 192.168.1.13
[06/30/12 03:18PM][do_POST] - POST /api/soap/eyefilm/v1 HTTP/1.1
[06/30/12 03:18PM][do_POST] - Headers received in POST request:
[06/30/12 03:18PM][do_POST] - content-length: 412
[06/30/12 03:18PM][do_POST] - soapaction: "urn:StartSession"
[06/30/12 03:18PM][do_POST] - connection: Close
[06/30/12 03:18PM][do_POST] - accept: text/xml, application/soap
[06/30/12 03:18PM][do_POST] - user-agent: Eye-Fi Card/5.0008
[06/30/12 03:18PM][do_POST] - host: api.eye.fi
[06/30/12 03:18PM][do_POST] - Attempting to read 412 bytes of data
412
Finished
[06/30/12 03:18PM][do_POST] - Finished reading 412 bytes of data
[06/30/12 03:18PM][do_POST] - Got StartSession request
[06/30/12 03:18PM][startSession] - Delegating the XML parsing of startSession 
postData to EyeFiContentHandler()
[06/30/12 03:18PM][startSession] - Extracted elements: {'transfermode': 
u'49715', 'macaddress': u'00185642faa5', 'cnonce': 
u'6d752a361f5db4053d0e166b1466c94d', 'transfermodetimestamp': u'1341038532'}
----------------------------------------
Exception happened during processing of request from ('192.168.1.13', 49848)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 638, in __init__
    self.handle()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "/usr/local/bin/eyefiserver.py", line 490, in do_POST
    response = self.startSession(postData)
  File "/usr/local/bin/eyefiserver.py", line 844, in startSession
    mac_to_uploadkey_map = self._get_mac_uploadkey_dict()
  File "/usr/local/bin/eyefiserver.py", line 833, in _get_mac_uploadkey_dict
    d[macs[key]] = upload_keys[key]
KeyError: 0
----------------------------------------
[06/30/12 03:18PM][get_request] - Incoming connection from client 192.168.1.13

Any Idea ?

Original comment by cs.v...@gmail.com on 30 Jun 2012 at 1:22

GoogleCodeExporter commented 8 years ago
Please copy-paste the eyefiserver.conf contents here, seems something wrong 
with the upload keys.

Original comment by duke...@gmail.com on 3 Jul 2012 at 8:20

GoogleCodeExporter commented 8 years ago
I'm @ work and unable to send you now my conf now (will do this tonight).
But maybe it's the mac address which is in this form in the config file : 
012345.. instead of 01-23-45....

Original comment by cs.v...@gmail.com on 3 Jul 2012 at 9:30

GoogleCodeExporter commented 8 years ago
That is correct, MAC address is stored in config file without any separators.

Original comment by duke...@gmail.com on 3 Jul 2012 at 9:52

GoogleCodeExporter commented 8 years ago
Here is my eyeserver.conf attached

Original comment by cs.v...@gmail.com on 3 Jul 2012 at 5:22

Attachments:

GoogleCodeExporter commented 8 years ago
You've broken config file integrity, upload_key_1 should be upload_key_0. 
WebGUI won't fix config file for you, just can change what is already there.

Original comment by duke...@gmail.com on 3 Jul 2012 at 5:56

GoogleCodeExporter commented 8 years ago
You're right.
I've changed to the good value. No more error, but no images downloaded ...
my log :
$ eyefiserver.py instance /etc/eyefiserver.conf ~/log.txt
[07/03/12 08:13PM][runEyeFi] - Reading config /etc/eyefiserver.conf
[07/03/12 08:13PM][runEyeFi] - Eye-Fi server started listening on port 59278
[07/03/12 08:13PM][get_request] - Incoming connection from client 192.168.1.13
[07/03/12 08:13PM][do_POST] - POST /api/soap/eyefilm/v1 HTTP/1.1
[07/03/12 08:13PM][do_POST] - Headers received in POST request:
[07/03/12 08:13PM][do_POST] - content-length: 412
[07/03/12 08:13PM][do_POST] - soapaction: "urn:StartSession"
[07/03/12 08:13PM][do_POST] - connection: Close
[07/03/12 08:13PM][do_POST] - accept: text/xml, application/soap
[07/03/12 08:13PM][do_POST] - user-agent: Eye-Fi Card/5.0008
[07/03/12 08:13PM][do_POST] - host: api.eye.fi
[07/03/12 08:13PM][do_POST] - Attempting to read 412 bytes of data
412
Finished
[07/03/12 08:13PM][do_POST] - Finished reading 412 bytes of data
[07/03/12 08:13PM][do_POST] - Got StartSession request
[07/03/12 08:13PM][startSession] - Delegating the XML parsing of startSession 
postData to EyeFiContentHandler()
[07/03/12 08:13PM][startSession] - Extracted elements: {'transfermode': 
u'49715', 'macaddress': u'00185642faa5', 'cnonce': 
u'afc22221c6e3314d63ff724be43b1f65', 'transfermodetimestamp': u'1341038532'}
[07/03/12 08:13PM][startSession] - Got MAC address of 00185642faa5
[07/03/12 08:13PM][startSession] - Setting Eye-Fi upload key to 
f66052c4dcda1282de11364264cefdbd
[07/03/12 08:13PM][startSession] - Concatenated credential string (pre MD5): 
00185642faa5afc22221c6e3314d63ff724be43b1f65f66052c4dcda1282de11364264cefdbd
[07/03/12 08:13PM][do_POST] - StartSession response: <?xml version="1.0" 
encoding="UTF-8"?><SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><Start
SessionResponse 
xmlns="http://localhost/api/soap/eyefilm"><credential>8c4bdb98db79d058c5be347786
42ff75</credential><snonce>99208c155fc1883579cf0812ec0fe6d2</snonce><transfermod
e>2</transfermode><transfermodetimestamp>1230268824</transfermodetimestamp><upsy
ncallowed>false</upsyncallowed></StartSessionResponse></SOAP-ENV:Body></SOAP-ENV
:Envelope>
[07/03/12 08:13PM][get_request] - Incoming connection from client 192.168.1.13
192.168.1.13 - - [03/Jul/2012 20:14:04] "POST /api/soap/eyefilm/v1 HTTP/1.1" 
200 -

no files downloaded, nothing more ...

Original comment by cs.v...@gmail.com on 3 Jul 2012 at 6:17

GoogleCodeExporter commented 8 years ago
Please update to build 0.0.12 and try again, in this version exception trace 
will be included in log, if any.

Original comment by duke...@gmail.com on 3 Jul 2012 at 6:29

GoogleCodeExporter commented 8 years ago
I'm on a ubuntu pc not on a nas. I've a nas but a synology.
Anyway, I'm using the git version. I'just pulled to retrieve the last 
eyefiserver.py modifications.
The last log came from the last pull.
I've installed eclipse and Pydev to see something. I can launch the 
eyefiserver.py, but I've the same log...

Original comment by cs.v...@gmail.com on 3 Jul 2012 at 7:11

GoogleCodeExporter commented 8 years ago
It seems I've had the same issue with the original eyefiserver project. I'm not 
sure whether it was fixed in this release, or I've just cleared the card from 
photos or rewrited a config file. I can't check with your python 2.7.3 now, but 
with 2.7 all works without a problem.

Original comment by duke...@gmail.com on 3 Jul 2012 at 7:54

GoogleCodeExporter commented 8 years ago
It's strange. I'm using Eclipse and Pydev (which use Python 2.7) . The log is 
identical :

pydev debugger: starting
[07/03/12 10:05PM][runEyeFi] - Reading config 
/home/me/workspace/eyefiserver2/etc/eyefiserver.conf
[07/03/12 10:05PM][runEyeFi] - Eye-Fi server started listening on port 59278
[07/03/12 10:05PM][get_request] - Incoming connection from client 192.168.1.11
[07/03/12 10:05PM][do_POST] - POST /api/soap/eyefilm/v1 HTTP/1.1
[07/03/12 10:05PM][get_request] - Incoming connection from client 192.168.1.11
[07/03/12 10:05PM][get_request] - Incoming connection from client 192.168.1.11
[07/03/12 10:05PM][do_POST] - Headers received in POST request:
[07/03/12 10:05PM][do_POST] - content-length: 412
[07/03/12 10:05PM][do_POST] - soapaction: "urn:StartSession"
[07/03/12 10:05PM][do_POST] - connection: Close
[07/03/12 10:05PM][do_POST] - accept: text/xml, application/soap
[07/03/12 10:05PM][do_POST] - user-agent: Eye-Fi Card/5.0008
[07/03/12 10:05PM][do_POST] - host: api.eye.fi
[07/03/12 10:05PM][do_POST] - Attempting to read 412 bytes of data
412
Finished
[07/03/12 10:05PM][do_POST] - Finished reading 412 bytes of data
[07/03/12 10:05PM][do_POST] - Got StartSession request
[07/03/12 10:05PM][startSession] - Delegating the XML parsing of startSession 
postData to EyeFiContentHandler()
[07/03/12 10:05PM][startSession] - Extracted elements: {'transfermode': 
u'49715', 'macaddress': u'00185642faa5', 'cnonce': 
u'4302721a8e52c13a034af429465b4e4f', 'transfermodetimestamp': u'1341038532'}
[07/03/12 10:05PM][startSession] - Got MAC address of 00185642faa5
[07/03/12 10:05PM][startSession] - Setting Eye-Fi upload key to 
f66052c4dcda1282de11364264cefdbd
[07/03/12 10:05PM][startSession] - Concatenated credential string (pre MD5): 
00185642faa54302721a8e52c13a034af429465b4e4ff66052c4dcda1282de11364264cefdbd
[07/03/12 10:05PM][do_POST] - StartSession response: <?xml version="1.0" 
encoding="UTF-8"?><SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><Start
SessionResponse 
xmlns="http://localhost/api/soap/eyefilm"><credential>4ede0d59888064e98d0fc467ce
a0e7b9</credential><snonce>99208c155fc1883579cf0812ec0fe6d2</snonce><transfermod
e>2</transfermode><transfermodetimestamp>1230268824</transfermodetimestamp><upsy
ncallowed>false</upsyncallowed></StartSessionResponse></SOAP-ENV:Body></SOAP-ENV
:Envelope>
192.168.1.11 - - [03/Jul/2012 22:05:51] "POST /api/soap/eyefilm/v1 HTTP/1.1" 
200 -

I've  deleted all photos and videos.
I take a photo, the log start but not photo uploaded.
I've inpescted the code, the Do_Post but all the log is enought. 
Only start session ...

Original comment by cs.v...@gmail.com on 3 Jul 2012 at 8:19

GoogleCodeExporter commented 8 years ago
Oh, one more thing - have you disabled all EyeFi card upload features except 
the local server? I.e. no share, no relayed transfers ?

Original comment by duke...@gmail.com on 3 Jul 2012 at 8:41

GoogleCodeExporter commented 8 years ago
No my Card is configured to upload to eyefi, picasa and my computer. I'll try 
this evening to remove temporary picasa upload and  Eyefi upload from the 
manage menu (http://center.eye.fi/settings/h/mc/device.edit.view.php).

Original comment by cs.v...@gmail.com on 4 Jul 2012 at 5:55

GoogleCodeExporter commented 8 years ago
OK, it works. Thanks for your help !!!

The relayed transfers was the problem.

Is there any chance to have relayed transfert enabled working with eyefiserver2 
?

Original comment by cs.v...@gmail.com on 4 Jul 2012 at 7:26

GoogleCodeExporter commented 8 years ago
As I understand, if relayed transfer is enabled, Images are always loaded to 
EyeFi official server first, an only then distributed to the online storages 
and local EyeFi center from EyeFi official server. The only reasonable 
workaround is to sniff traffic to the EyeFi original server in relayed mode and 
try to reverse-engineer a protocol. This is not a question of a near future, I 
believe.

Original comment by duke...@gmail.com on 4 Jul 2012 at 9:13

GoogleCodeExporter commented 8 years ago
Had same problem but switching to this and applying the mentioned patch 
resolved it.

http://code.google.com/p/eyefiserver/issues/detail?id=8#c11 

Original comment by ivarnes...@gmail.com on 26 Jan 2014 at 12:38