-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
[Docker] Settings won't be changed #104
Comments
I am experiencing the same issue. |
same here |
Please try to update. It seems like It has a problem, when there is no settings file available. |
Hi,
I have updated it and copied the settings.json file from raspberry
installation... still not working properly and not possible to update the
file from 8888/admin/settings.php even loading of existing file content is
not working...
…On Sun, Dec 29, 2019, 12:30 Christian P. ***@***.***> wrote:
Please try to update. It seems like It has a problem, when there is no
settings file available.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#104?email_source=notifications&email_token=AIK6ABE6HNB3DC2MQMIDW43Q3CC7BA5CNFSM4KADJ6D2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHY5KAI#issuecomment-569496833>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIK6ABAL3HZGK7GHCKKBGIDQ3CC7BANCNFSM4KADJ6DQ>
.
|
@nortonsk could you please post a screenshot of your settings panel. |
Hi Chritian,
here is my screenshots:
[image: image.png]
cat /docker/TeslaLogger/TeslaLogger/bin/settings.json
{"SleepTimeSpanStart":"","SleepTimeSpanEnd":"","SleepTimeSpanEnable":"false","Power":"kw","Temperature":"celsius","Length":"km","Language":"en","URL_Admin":"","
Here are some error messages from LOG FILES:
30.12.2019 16:54:40 : System.InvalidOperationException: Internal error:
object is a dictionary, but no key present.
at System.Web.Script.Serialization.JsonDeserializer.StoreValue
(System.Object o) [0x00055] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.JsonDeserializer.Deserialize
(System.IO.TextReader input) [0x00082] in
<9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.Json.Deserialize (System.IO.TextReader
input, System.Web.Script.Serialization.JavaScriptSerializer jss) [0x00014]
in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.Json.Deserialize (System.String input,
System.Web.Script.Serialization.JavaScriptSerializer jss) [0x00014] in
<9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at
System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObjectInternal
(System.String input) [0x00000] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject
(System.String input) [0x00000] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at TeslaLogger.Tools.StartSleeping (System.Int32& startSleepingHour,
System.Int32& startSleepingMinutes) [0x0002d] in
<459a53c53ac14bc8add511acf8400030>:0
30.12.2019 16:54:42 : System.InvalidOperationException: Internal error:
object is a dictionary, but no key present.
at System.Web.Script.Serialization.JsonDeserializer.StoreValue
(System.Object o) [0x00055] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.JsonDeserializer.Deserialize
(System.IO.TextReader input) [0x00082] in
<9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.Json.Deserialize (System.IO.TextReader
input, System.Web.Script.Serialization.JavaScriptSerializer jss) [0x00014]
in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.Json.Deserialize (System.String input,
System.Web.Script.Serialization.JavaScriptSerializer jss) [0x00014] in
<9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at
System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObjectInternal
(System.String input) [0x00000] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject
(System.String input) [0x00000] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at TeslaLogger.Tools.StartSleeping (System.Int32& startSleepingHour,
System.Int32& startSleepingMinutes) [0x0002d] in
<459a53c53ac14bc8add511acf8400030>:0
30.12.2019 16:54:44 : System.InvalidOperationException: Internal error:
object is a dictionary, but no key present.
at System.Web.Script.Serialization.JsonDeserializer.StoreValue
(System.Object o) [0x00055] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.JsonDeserializer.Deserialize
(System.IO.TextReader input) [0x00082] in
<9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.Json.Deserialize (System.IO.TextReader
input, System.Web.Script.Serialization.JavaScriptSerializer jss) [0x00014]
in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.Json.Deserialize (System.String input,
System.Web.Script.Serialization.JavaScriptSerializer jss) [0x00014] in
<9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at
System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObjectInternal
(System.String input) [0x00000] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject
(System.String input) [0x00000] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at TeslaLogger.Tools.StartSleeping (System.Int32& startSleepingHour,
System.Int32& startSleepingMinutes) [0x0002d] in
<459a53c53ac14bc8add511acf8400030>:0
30.12.2019 16:54:47 : System.InvalidOperationException: Internal error:
object is a dictionary, but no key present.
at System.Web.Script.Serialization.JsonDeserializer.StoreValue
(System.Object o) [0x00055] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.JsonDeserializer.Deserialize
(System.IO.TextReader input) [0x00082] in
<9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.Json.Deserialize (System.IO.TextReader
input, System.Web.Script.Serialization.JavaScriptSerializer jss) [0x00014]
in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.Json.Deserialize (System.String input,
System.Web.Script.Serialization.JavaScriptSerializer jss) [0x00014] in
<9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at
System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObjectInternal
(System.String input) [0x00000] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject
(System.String input) [0x00000] in <9f7718f4b0464cf1a81e62ec4b7e1cab>:0
at TeslaLogger.Tools.StartSleeping (System.Int32& startSleepingHour,
System.Int32& startSleepingMinutes) [0x0002d] in
<459a53c53ac14bc8add511acf8400030>:0
I have it implemented in latests docker and starting it using
docker-compose up -d
I have pulled the latests changes in the repo.
From https://github.com/bassmaster187/TeslaLogger
d250f78..5bc8fa7 master -> origin/master
Updating d250f78..5bc8fa7
Fast-forward
TeslaLogger/www/admin/language.php | 10 +++++++---
TeslaLogger/www/admin/settings.php | 26 ++++++++++++++++++++++++--
After the restart still the same issue.
If you like we can call to troubleshoot it better.
I have spoken to Michael and I would like to do the translation to Czech
when possible.
Regards,
Norton
|
Hi Christian, updated to the latest published version Teslalogger: | 1.36.1.0 the error warnings at the top are gone! So some progress but the issue is not finally solved. Thanks again for your efforts! |
Could you guys please send me your settings.json file. |
Ok I think we found the problem. I haven't a settings.json file in my Teslalogger\Teslalogger folder structure. Here is something that I just found. "/TeslaLogger/TeslaLogger/www/admin" folder there is the a file called settings.php If you check the code there is something written like:
As I wrote at the beginning I haven't found any settings.json file anywhere. checked the whole system find / -name settings.json Maybe I do some mistakes here. |
But you see all the other files in /etc/teslalogger in your "webserver" docker? |
Yes,
The TeslaLogger.exe.config that I manually edited with the "scanmytesla True" option is also there. |
@tscsmith is the settings.json there, if you hit save button? |
1st there is no settings.json if I hit the Save button. I am not very into the whole docker universe, so I have some questions. I looked into the teslalogger_webserver1 container )connected to the console) and checked the logfiles of: root@93fcdc1eeee4:/var/log/apache2# more error.log But there is no data inside in all off the logfiles. Attached the tail-f from the log but there is nothing that would help you I think.
Sorry I don't know much about the docker stuff and how it plays all together with the 4 containers for the teslalogger. |
@tscsmith the docker will redirect the logfiles to stdout and stderr. it should look like this:
|
Little update from me to the latest version
|
Teslalogger 1.36.4.0 same behavior as 1.36.3.0 |
Can anybody give me temporary remote access to their shell and admin panel? |
Keine Ahnung ob die antwort ankommt.
Habe das Problem nicht mitverfolgt aber kann gerne (wie?) Zugriff geben.
TypeApp for Android herunterladen
Am 7. Jan. 2020, 13:20, um 13:20, "Christian P." <notifications@github.com> schrieb:
…Can anybody give me temporary remote access to their shell and admin
panel?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#104 (comment)
|
UPDATE: Now the issue is gone and save of the settings.json works. Still the issue is there: From logs I have this: 192.168.1.18 - - [14/Jan/2020:16:03:59 +0100] "GET /admin/settings.php HTTP/1.1" 200 1688 "http://192.168.1.245:8888/admin/settings.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36" If you like we can have a session via Skype/Teams or other program and I can share you my screen. REgards, Norton |
Please update to 1.37.3.0 - after Reboot you should see this in logfile:
after that, you should be able to write the settings file. |
Nice work! Thank you for your efforts. Works like a charm now. :) |
Warning: file_get_contents(/etc/teslalogger/settings.json): failed to open stream: No such file or directory in /var/www/html/admin/language.php on line 2
ubuntu 18.09 64 Bit.
Docker version 19.03.5, build 633a0ea838
docker-compose version 1.25.0, build 0a186604
docker-py version: 4.1.0
Teslalogger: 1.36.0.0
The text was updated successfully, but these errors were encountered: