How to connect

Questions and information regarding the Linux desktop client - Fragen und Informationen zum Linux Desktop-Client

Re: How to connect

Postby blacksqd » 22 Sep 2015, 08:50

Hello,

There isn't any logs in the .teamdrive/
blacksqd
 
Posts: 15
Joined: 21 Sep 2015, 11:55

Re: How to connect

Postby blacksqd » 22 Sep 2015, 10:08

I oppened the port manually and now I have a directory logs

--------------------------------------------------------------------------------
Start logging: 15-09-22 09:11:42:067
--------------------------------------------------------------------------------
15-09-22 09:11:42.068 [Warning] MainThread CSettings.cpp:setFromArgs(462) Unknown command line argument: "./teamdrived.bin"
15-09-22 09:11:42.069 [Warning] MainThread CSettings.cpp:setFromArgs(462) Unknown command line argument: "./teamdrived.bin"
15-09-22 09:11:42.069 [Info] MainThread CStartUp.cpp:initTD(158) Version: "3.2.1 (Build: 921)"
15-09-22 09:11:42.071 [Info] MainThread CHttpApi.cpp:listen(67) Starting api on port "tcp 45454"
15-09-22 09:11:42.072 [Warning] MainThread CTranslations.cpp:installQtTranslation(161) failed to install qt translation for locale: fr_FR
15-09-22 09:11:42.072 [Warning] MainThread CTranslations.cpp:installQtTranslation(161) failed to install qt translation for locale: en_US
15-09-22 09:11:42.072 [Warning] MainThread CTranslations.cpp:installAppTranslation(174) failed to install app translation for locale: fr_FR
15-09-22 09:11:42.072 [Warning] MainThread CTranslations.cpp:installAppTranslation(174) failed to install app translation for locale: en_US
15-09-22 09:11:42.072 [Log] MainThread CStartUp.cpp:showStartupMessage(88) Starting Database
15-09-22 09:11:44.926 [Log] MainThread CStartUp.cpp:showStartupMessage(88) Database Started
15-09-22 09:11:44.926 [Log] MainThread CStartUp.cpp:showStartupMessage(88) Loading Registration Data
15-09-22 09:11:44.926 [Log] MainThread CStartUp.cpp:showStartupMessage(88) Loading registration information
15-09-22 09:11:44.928 [Info] MainThread CStartUp.cpp:loadRegistrationData(412) Distributor-Information: "TMDR"
15-09-22 09:11:44.928 [Info] MainThread CStartUp.cpp:loadRegistrationData(413) RegServerURL "http://reg.teamdrive.net/pbas/td2as/reg/"
15-09-22 09:11:44.928 [Info] MainThread CStartUp.cpp:loadRegistrationData(414) RegServerName "TeamDriveMaster"
15-09-22 09:11:44.929 [Log] MainThread CNetworkSettings.cpp:findSystemProxy(52) querying system proxy for: http://ping.teamdrive.net/ping.xml
15-09-22 09:11:44.929 [Log] MainThread CNetworkSettings.cpp:findSystemProxy(58) found Proxy-Settings "QNetworkProxy(Type=NoProxy)"
15-09-22 09:11:44.929 [Log] MainThread CNetworkSettings.cpp:reinit(109) Application Proxy-Settings [Proxy= "QNetworkProxy(Type=NoProxy)" PAC= "" ]
15-09-22 09:11:44.937 [QFatal] MainThread Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40805)
blacksqd
 
Posts: 15
Joined: 21 Sep 2015, 11:55

Re: How to connect

Postby Sebastian Philipp » 22 Sep 2015, 12:01

Hi blacksqd,

I can see two problems: the first problem was found in http://forum.teamdrive.net/viewtopic.php?f=12&t=2878 :

You will need to copy the libQtDBus.so.4* from the desktop installer into the installation directory of the Agent. This is a bug in the TeamDrive 3 Agent that will be fixed in the TeamDrive 4 Agent.

The second problem is that the TeamDrive Agent will open the API on port 45454 instead of 12345. Pleas open http://localhost:45454/ to access the API.
Sebastian Philipp
TeamDrive Team Member
 
Posts: 139
Joined: 23 Apr 2009, 11:08

Re: How to connect

Postby blacksqd » 22 Sep 2015, 15:53

Everything works,

Thank you very much !
blacksqd
 
Posts: 15
Joined: 21 Sep 2015, 11:55

Re: How to connect

Postby blacksqd » 22 Sep 2015, 16:29

I spoke to soon ..

What works is I can log in localhost:45454. But after that, if I want to use the python Interface, I have to add
--http-api-port=45454 to .teamdrive/teamdrive.settings. But now, I don't know why, but this file is not here anymore.
blacksqd
 
Posts: 15
Joined: 21 Sep 2015, 11:55

Re: How to connect

Postby Sebastian Philipp » 22 Sep 2015, 18:30

If you want to edit the teamdrive.settings file, you should remove the two dashes before http-api-port=45454.

Also, TeamDrive doesn't remove the settings file.
Sebastian Philipp
TeamDrive Team Member
 
Posts: 139
Joined: 23 Apr 2009, 11:08

Re: How to connect

Postby blacksqd » 23 Sep 2015, 10:22

So now, I have this settings file,

[Settings]
language=fr_FR
http-api-port=45454

[gui]
frmTeamDriveMain=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\x1\x11\0\0\0M\0\0\x4\x30\0\0\x2\xa2\0\0\x1\x1b\0\0\0s\0\0\x4&\0\0\x2\x98\0\0\0\0\0\0)
trViewSpace_Splitter=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x2\0\0\x1\x90\0\0\0\x64\x1\0\0\0\x5\x1\0\0\0\x2)
MainInspectorSplitter_Splitter=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x2\0\0\x1\x90\0\0\x1\x18\x1\0\0\0\x5\x1\0\0\0\x1)
general\stkwWidgetMainWindow=0


and this logs file,

--------------------------------------------------------------------------------
Start logging: 15-09-23 10:18:37:801
--------------------------------------------------------------------------------
15-09-23 10:18:37.802 [Warning] MainThread CSettings.cpp:setFromArgs(462) Unknown command line argument: "./teamdrived.bin"
15-09-23 10:18:37.803 [Warning] MainThread CSettings.cpp:setFromArgs(462) Unknown command line argument: "./teamdrived.bin"
15-09-23 10:18:37.803 [Info] MainThread CStartUp.cpp:initTD(158) Version: "3.2.1 (Build: 921)"
15-09-23 10:18:37.805 [Info] MainThread CHttpApi.cpp:listen(67) Starting api on port "tcp 45454"
15-09-23 10:18:37.806 [Warning] MainThread CTranslations.cpp:installQtTranslation(161) failed to install qt translation for locale: fr_FR
15-09-23 10:18:37.806 [Warning] MainThread CTranslations.cpp:installQtTranslation(161) failed to install qt translation for locale: en_US
15-09-23 10:18:37.806 [Warning] MainThread CTranslations.cpp:installAppTranslation(174) failed to install app translation for locale: fr_FR
15-09-23 10:18:37.806 [Warning] MainThread CTranslations.cpp:installAppTranslation(174) failed to install app translation for locale: en_US
15-09-23 10:18:37.806 [Log] MainThread CStartUp.cpp:showStartupMessage(88) Starting Database
15-09-23 10:18:37.816 [Log] MainThread CStartUp.cpp:showStartupMessage(88) Database Started
15-09-23 10:18:37.816 [Log] MainThread CStartUp.cpp:showStartupMessage(88) Loading Registration Data
15-09-23 10:18:37.816 [Log] MainThread CStartUp.cpp:showStartupMessage(88) Loading registration information
15-09-23 10:18:37.873 [Log] ASAP0 CBasicThread.cpp:run(138) Thread ( 0 "ASAP0" ) Started....
15-09-23 10:18:37.873 [Log] ASAP3 CBasicThread.cpp:run(138) Thread ( 3 "ASAP3" ) Started....
15-09-23 10:18:37.873 [Log] SCHED0 CBasicThread.cpp:run(138) Thread ( 4 "SCHED0" ) Started....
15-09-23 10:18:37.875 [Log] ASAP1 CBasicThread.cpp:run(138) Thread ( 1 "ASAP1" ) Started....
15-09-23 10:18:37.876 [Log] SCHED1 CBasicThread.cpp:run(138) Thread ( 5 "SCHED1" ) Started....
15-09-23 10:18:37.876 [Log] SCANA0 CBasicThread.cpp:run(138) Thread ( 6 "SCANA0" ) Started....
15-09-23 10:18:37.876 [Log] ASAP2 CBasicThread.cpp:run(138) Thread ( 2 "ASAP2" ) Started....
15-09-23 10:18:37.876 [Log] SCANA1 CBasicThread.cpp:run(138) Thread ( 7 "SCANA1" ) Started....
15-09-23 10:18:38.079 [Warning] MainThread CFolderDecoration_Linux.cpp:setKdeDecoration(40) Failed to open file for writing: /home/sim/Spaces/.directory No such file or directory
15-09-23 10:18:38.082 [Critical] MainThread CSpaceManager.cpp:checkAllSpaceRoots(1304) failed to decorate default spaces folder "/home/sim/Spaces"
15-09-23 10:18:38.087 [Info] MainThread CStartUp.cpp:loadRegistrationData(412) Distributor-Information: "TMDR"
15-09-23 10:18:38.087 [Info] MainThread CStartUp.cpp:loadRegistrationData(413) RegServerURL "http://teamdrivemaster.teamdrive.net/pbas/td2as/reg/"
15-09-23 10:18:38.087 [Info] MainThread CStartUp.cpp:loadRegistrationData(414) RegServerName "TeamDriveMaster"
15-09-23 10:18:38.087 [Log] MainThread CNetworkSettings.cpp:findSystemProxy(52) querying system proxy for: http://teamdrivemaster.teamdrive.net/pbas/td2as/reg/ping.xml
15-09-23 10:18:38.087 [Log] MainThread CNetworkSettings.cpp:findSystemProxy(58) found Proxy-Settings "QNetworkProxy(Type=NoProxy)"
15-09-23 10:18:38.087 [Log] MainThread CNetworkSettings.cpp:reinit(109) Application Proxy-Settings [Proxy= "QNetworkProxy(Type=NoProxy)" PAC= "" ]
15-09-23 10:18:38.119 [Trace] MainThread CStartUp.cpp:startBackgroundTasks(308)
15-09-23 10:18:38.120 [Log] MainThread CStartUp.cpp:showStartupMessage(88) Starting background tasks
15-09-23 10:18:38.121 [Log] FileSystemWatcher CBasicThread.cpp:run(138) Thread ( 8 "FileSystemWatcher" ) Started....
15-09-23 10:18:41.057 [Log] MainThread CSocketBase.cpp:initialize(119) initializing Remote Socket QTcpSocket(0x17711d0)
15-09-23 10:18:41.057 [QDebug] MainThread Got new connection "127.0.0.1:36893"
15-09-23 10:18:41.057 [Log] MainThread CSocketBase.cpp:initialize(119) initializing Remote Socket QTcpSocket(0x16a0160)
15-09-23 10:18:41.057 [QDebug] MainThread Got new connection "127.0.0.1:36894"
15-09-23 10:18:41.058 [Log] MainThread CSocketBase.cpp:initialize(119) initializing Remote Socket QTcpSocket(0x170f260)
15-09-23 10:18:41.058 [QDebug] MainThread Got new connection "127.0.0.1:36895"
15-09-23 10:18:41.058 [Log] MainThread CSocketBase.cpp:initialize(119) initializing Remote Socket QTcpSocket(0x16ed4f0)
15-09-23 10:18:41.058 [QDebug] MainThread Got new connection "127.0.0.1:36896"
15-09-23 10:18:41.386 [QDebug] MainThread URL CALL 200 "/api/" ""
15-09-23 10:18:41.866 [QDebug] MainThread URL CALL 200 "/api/getLoginInformation" ""
15-09-23 10:18:42.011 [QDebug] MainThread URL CALL 200 "/api/getSpaceIds" ""

But I always have a Connection Error with my script
blacksqd
 
Posts: 15
Joined: 21 Sep 2015, 11:55

Re: How to connect

Postby Sebastian Philipp » 23 Sep 2015, 11:56

can you please paste the command line and the output of the script?
Sebastian Philipp
TeamDrive Team Member
 
Posts: 139
Joined: 23 Apr 2009, 11:08

Re: How to connect

Postby blacksqd » 23 Sep 2015, 13:10

Traceback (most recent call last):
File "gestionId.py", line 158, in <module>
main()
File "gestionId.py", line 152, in main
interface = GestionId(APP, 1366, 768)
File "gestionId.py", line 19, in __init__
self.connection.login(myLogin, myPwd)
File "/home/sim/TeamDrive/TeamDriveApi.py", line 248, in login
return self._checkedCall("login", {"username": username, "password": password})
File "/home/sim/TeamDrive/TeamDriveApi.py", line 61, in _checkedCall
ret = self._call(name, params)
File "/home/sim/TeamDrive/TeamDriveApi.py", line 53, in _call
self._h.request("GET", call)
File "/usr/lib/python2.7/httplib.py", line 973, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1007, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 791, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 772, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
socket.error: [Errno 111] Connection refused
blacksqd
 
Posts: 15
Joined: 21 Sep 2015, 11:55

Re: How to connect

Postby Sebastian Philipp » 23 Sep 2015, 13:13

can you please paste the command line?
Sebastian Philipp
TeamDrive Team Member
 
Posts: 139
Joined: 23 Apr 2009, 11:08

PreviousNext

Return to Linux

Who is online

Users browsing this forum: No registered users and 8 guests

cron