Michal-Szczepaniak / septitrac

Traccar client for SailfishOS
GNU General Public License v3.0
0 stars 1 forks source link

Error in pressing connect button #1

Closed alex000090 closed 1 year ago

alex000090 commented 1 year ago

Dear developer, I've tried to connect to my traccar server but when I've filled all fields and pressed connect button nothing been done. It's look like the button doesn't have the action. I've tried to run the app via console. There is an error Main.qml:212: JSON.parse: Parse error. Could you help me to find a mistake?

Michal-Szczepaniak commented 1 year ago

What version of traccar do you have? I know for a fact that it's working fine right now so something must be up with your configuration

alex000090 commented 1 year ago

I use 5.6 version and "modern" web frontend.

Michal-Szczepaniak commented 1 year ago

can you also show configuration? you can replace domain and the like but configuration would be useful

alex000090 commented 1 year ago

Do you mean traccar or septitrac config? I post both below. Maybe I need clear septitrac config files without GUI. Could you tell me a path where I can found it?

traccar.xml `<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

./conf/default.xml org.h2.Driver jdbc:h2:./data/database sa

`

default.xml `<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

8082 ./modern false false true locationiq pk.689d849289c8c63708068b2ff1f63b2d true true info ./logs/tracker-server.log true true 86400 true ./media web,mail https://www.traccar.org/analytics/ true true ./schema/changelog-master.xml 5001 5002 5003 5004 5005 5006 false 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 ` ![Снимок_Экрана_20230327_004](https://user-images.githubusercontent.com/1015002/227933832-9297b8ee-e985-409a-b22d-cbc6bd6b2994.png)
Michal-Szczepaniak commented 1 year ago

wait user1@users.local. Why the @users.local? try without it. If you have something strange going on with login that could be an issue

ah users.local is supposed to be email. Well anyway my guess is something is wrong with authentication

ferlanero commented 1 year ago

Dear developer, I've tried to connect to my traccar server but when I've filled all fields and pressed connect button nothing been done. It's look like the button doesn't have the action. I've tried to run the app via console. There is an error Main.qml:212: JSON.parse: Parse error. Could you help me to find a mistake?

Is your traccar server properly working via web client? If so, you have to enter the server address, username (email) and correct password.

Septitrac is working properly, so I'd put special attention on server address

Michal-Szczepaniak commented 1 year ago

Also post entire console log from app. I think above Main.qml:212: JSON.parse: Parse error you have message about authentication error in which case you must've screwed up login/password. Use the same email/password as on the website. Also i've noticed that traccar has

<entry key='web.port'>8082</entry>

so either you access it via domain.com:8082 or you have reverse proxy that translates it to 80/443. If you use :8082 in web browser then you also have to use :8082 in path in septitrac, if you have reverse proxy, check it if you're passing requests correctly

alex000090 commented 1 year ago

Web client works correctly. The server adress and credentials I've entered many times with direct enter and copy-past. The server works on docker container and have 443 port via reverse proxy. I've tried to connect in local network with 8082 port, but there is no reactions. Previosly I've tried to connect PhoneTrack via Septitrac by entering PhoneTrack's adress (NextCloud). Maybe there is some Septitrac configuration file with error and I should delete it.

Additionally I see the console output. There are a lot of errors at starting. I attach the screen.

Снимок_Экрана_20230327_005

Michal-Szczepaniak commented 1 year ago

ProtocolInvalidOperationError that means the issue is absolutely with your server setup as it doesn't allow some protocols that the api is using