unstable/master: log error: Error deserializing /config/data/ScheduledTasks/ #2497

Closed
opened 2025-12-21 20:41:32 +01:00 by backuprepo · 2 comments
Owner

Originally created by @rayures on GitHub (Jan 11, 2021).

Originally assigned to: @Bond-009 on GitHub.

Describe the bug

error in log. (see log section)

i think it is related to scheduled task 'scan media library' never runs. but not sure.

System (please complete the following information):

  • OS: debian 10
  • Virtualization: docker
  • Clients:
  • Browser:
  • Jellyfin Version: unstable 2021-01-10
  • Installed Plugins:
  • Reverse Proxy:
  • Base URL:
  • Networking:
  • Storage: local

To Reproduce

  1. Go to 'open log'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Logs

log states:

[11:50:18] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/a27c5425-9520-b2e5-c509-def68c8f4c45.js
System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 213.
 ---> System.Text.Json.JsonReaderException: '}' is invalid after a single JSON value. Expected end of data. LineNumber: 0 | BytePositionInLine: 213.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker)
   at System.Text.Json.Utf8JsonReader.ConsumeNextTokenOrRollback(Byte marker)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.Utf8JsonReader.Read()
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   --- End of inner exception stack trace ---
   at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadCore[TValue](Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options)
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, Type returnType, JsonSerializerOptions options)
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)
   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.get_LastExecutionResult()

Screenshots

Additional context

Originally created by @rayures on GitHub (Jan 11, 2021). Originally assigned to: @Bond-009 on GitHub. **Describe the bug** <!-- A clear and concise description of what the bug is. --> error in log. (see log section) i think it is related to scheduled task 'scan media library' never runs. but not sure. **System (please complete the following information):** - OS: debian 10 - Virtualization: docker - Clients: - Browser: - Jellyfin Version: unstable 2021-01-10 - Installed Plugins: - Reverse Proxy: - Base URL: - Networking: - Storage: local **To Reproduce** <!-- Steps to reproduce the behavior: --> 1. Go to 'open log' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Logs** log states: ``` [11:50:18] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/a27c5425-9520-b2e5-c509-def68c8f4c45.js System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 213. ---> System.Text.Json.JsonReaderException: '}' is invalid after a single JSON value. Expected end of data. LineNumber: 0 | BytePositionInLine: 213. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker) at System.Text.Json.Utf8JsonReader.ConsumeNextTokenOrRollback(Byte marker) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex) at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[TValue](Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, Type returnType, JsonSerializerOptions options) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options) at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.get_LastExecutionResult() ``` **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Additional context** <!-- Add any other context about the problem here. -->
backuprepo 2025-12-21 20:41:32 +01:00
Author
Owner

@crobibero commented on GitHub (Jan 11, 2021):

Can you please paste the contents of
/config/data/ScheduledTasks/a27c5425-9520-b2e5-c509-def68c8f4c45.js

@crobibero commented on GitHub (Jan 11, 2021): Can you please paste the contents of `/config/data/ScheduledTasks/a27c5425-9520-b2e5-c509-def68c8f4c45.js`
Author
Owner

@rayures commented on GitHub (Jan 12, 2021):

I have no name!@8a52e97e152e:/config/data/ScheduledTasks$ cat a27c5425-9520-b2e5-c509-def68c8f4c45.js

{"StartTimeUtc":"2021-01-07T14:59:04.173563Z","EndTimeUtc":"2021-01-07T14:59:04.2263936Z","Status":"Completed","Name":"TasksRefreshChannels","Key":"RefreshInternetChannels","Id":"a27c54259520b2e5c509def68c8f4c45"}}

one to many } ?

//edit

updated to master 2021-01-11 and getting more errors.

[09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/6330ee8f-b4a9-57f3-3981-f89aa78b030f.js
System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 202.
[09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/241d4fcb-19a1-d557-ee62-428e411da609.js
System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 207.
[09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/1c8ede62-c521-bea0-bf85-1344f5b8ca40.js
System.Text.Json.JsonException: '"' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 201.
[09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/3145e441-d9ba-27fc-391e-7ee15face581.js
System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 195.
[09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/a27c5425-9520-b2e5-c509-def68c8f4c45.js
System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 213.
@rayures commented on GitHub (Jan 12, 2021): ```` I have no name!@8a52e97e152e:/config/data/ScheduledTasks$ cat a27c5425-9520-b2e5-c509-def68c8f4c45.js {"StartTimeUtc":"2021-01-07T14:59:04.173563Z","EndTimeUtc":"2021-01-07T14:59:04.2263936Z","Status":"Completed","Name":"TasksRefreshChannels","Key":"RefreshInternetChannels","Id":"a27c54259520b2e5c509def68c8f4c45"}} ```` one to many } ? //edit updated to master 2021-01-11 and getting more errors. ```` [09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/6330ee8f-b4a9-57f3-3981-f89aa78b030f.js System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 202. [09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/241d4fcb-19a1-d557-ee62-428e411da609.js System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 207. [09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/1c8ede62-c521-bea0-bf85-1344f5b8ca40.js System.Text.Json.JsonException: '"' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 201. [09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/3145e441-d9ba-27fc-391e-7ee15face581.js System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 195. [09:26:01] [ERR] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error deserializing /config/data/ScheduledTasks/a27c5425-9520-b2e5-c509-def68c8f4c45.js System.Text.Json.JsonException: '}' is invalid after a single JSON value. Expected end of data. Path: $ | LineNumber: 0 | BytePositionInLine: 213. ````
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#2497
No description provided.