NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 3 4 5 6 7 … 34 Next »
No device listed -- error saving capture source: SQLite Error 1: 'no such column: −1'

 
  • 0 Vote(s) - 0 Average
No device listed -- error saving capture source: SQLite Error 1: 'no such column: −1'
skrottapple
Offline

Junior Member

Sweden
Posts: 21
Threads: 1
Joined: Apr 2024
#11
2024-04-11, 09:31 PM
I see, my mistake. I'll leave it in their hands.

Sure, here's the journal after trying to start it again:

Code:
apr 12 01:16:40 k55a systemd[1]: Starting nextpvr-server.service - NextPVRServer...
apr 12 01:16:41 k55a server.sh[13208]: Starting server..
apr 12 01:16:41 k55a server.sh[13210]: Unhandled exception. System.InvalidOperationException: The data is NULL at ordinal 1. This method can't be cal>
apr 12 01:16:41 k55a server.sh[13210]:    at Microsoft.Data.Sqlite.SqliteValueReader.GetString(Int32 ordinal)
apr 12 01:16:41 k55a server.sh[13210]:    at Microsoft.Data.Sqlite.SqliteDataReader.GetString(Int32 ordinal)
apr 12 01:16:41 k55a server.sh[13210]:    at NShared.IPTVRecorder.GetPresentDevices()
apr 12 01:16:41 k55a server.sh[13210]:    at NShared.Visible.CaptureSource.UpdateDevices(ICaptureSourceUpdateStatus callback)
apr 12 01:16:41 k55a server.sh[13210]:    at NShared.RecordingService..ctor()
apr 12 01:16:41 k55a server.sh[13210]:    at NPVR.Program.Main(String[] args)
apr 12 01:16:42 k55a server.sh[13208]: Done. PID=13210
apr 12 01:16:42 k55a systemd[1]: Started nextpvr-server.service - NextPVRServer.
apr 12 01:16:43 k55a systemd[1]: nextpvr-server.service: Main process exited, code=dumped, status=6/ABRT
apr 12 01:16:43 k55a systemd[1]: nextpvr-server.service: Failed with result 'core-dump'.
apr 12 01:17:10 k55a systemd[1]: Starting nextpvr-server.service - NextPVRServer...
apr 12 01:17:10 k55a server.sh[13293]: Starting server..
apr 12 01:17:10 k55a server.sh[13295]: Unhandled exception. System.InvalidOperationException: The data is NULL at ordinal 1. This method can't be cal>
apr 12 01:17:10 k55a server.sh[13295]:    at Microsoft.Data.Sqlite.SqliteValueReader.GetString(Int32 ordinal)
apr 12 01:17:10 k55a server.sh[13295]:    at Microsoft.Data.Sqlite.SqliteDataReader.GetString(Int32 ordinal)
apr 12 01:17:10 k55a server.sh[13295]:    at NShared.IPTVRecorder.GetPresentDevices()
apr 12 01:17:10 k55a server.sh[13295]:    at NShared.Visible.CaptureSource.UpdateDevices(ICaptureSourceUpdateStatus callback)
apr 12 01:17:10 k55a server.sh[13295]:    at NShared.RecordingService..ctor()
apr 12 01:17:10 k55a server.sh[13295]:    at NPVR.Program.Main(String[] args)
apr 12 01:17:12 k55a server.sh[13293]: /opt/nextpvr/shell/server.sh: rad 23: 13295 Avbruten (SIGABRT)      (minnesutskrift skapad) /opt/dotnet/dotnet>
apr 12 01:17:12 k55a server.sh[13293]: Done. PID=
apr 12 01:17:12 k55a systemd[1]: nextpvr-server.service: Deactivated successfully.
apr 12 01:17:12 k55a systemd[1]: Started nextpvr-server.service - NextPVRServer.

I had to install sqlite3 first though. I hope that wasn't a dependency.

> I strongly suspect the -1 is a return code

So do I, but judging from the linked answer on SO I believe it's a return code for something other than the sqlite query (the question demonstrates that that's where the erroneous column name is in the error message), that's being saved in a variable and used as a literal, but since it's prefixed with a hyphen-minus is instead interpreted as a column name. Just guessing.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#12
2024-04-11, 09:47 PM
As Martin said, basically the -1 means it couldn't find a requested column by name. Unfortunately we can't tell what name it was looking for from this info. (the DbDatatReader.GetOrdinal("column-name") api is used to the get the column index, and it's returning -1 to indicate it couldn't find the column)

Given we've never seen another single report with this error, it makes me wonder if the npvr.db3 got corrupt somehow.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#13
2024-04-11, 09:50 PM
I tried his npvr.db3 file here and it was fine.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#14
2024-04-11, 09:53 PM
Yeah, I checked the file here, and it superficially looked ok. Had the IPTV columns expected etc.

Maybe some file permission error reports like this. Like can open the file but not read from it.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#15
2024-04-11, 09:57 PM
That's why I tried sqlite3 as sudo -u nextpvr plus the file was copied from empty.db3

Martin
skrottapple
Offline

Junior Member

Sweden
Posts: 21
Threads: 1
Joined: Apr 2024
#16
2024-04-11, 11:24 PM (This post was last modified: 2024-04-12, 12:25 AM by skrottapple.)
Well, I'm out of ideas. I tried removing and reinstalling, but ran into the same issue.

In fact I couldn't even find documentation of "DbDatatReader.GetOriginal". The closest I got was ".GetOrdinal", and even then it said it would throw an exception if there was no match, so I didn't get any wiser. Thanks for the explanation nonetheless!

I don't think I have much to contribute so I'll leave it to you. Let me know if you need any additional info.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#17
2024-04-11, 11:48 PM (This post was last modified: 2024-04-11, 11:49 PM by mvallevand.)
I probably gave you sql the added those null. The second insert should have been (those ' ' are two single quotes)

Code:
delete from IPTV_RECORDER;
insert into IPTV_RECORDER select oid, '', '', '32' from capture_source limit 1;

martin
skrottapple
Offline

Junior Member

Sweden
Posts: 21
Threads: 1
Joined: Apr 2024
#18
2024-04-12, 12:22 AM
I take it you want me to rerun the sql queries.

I replaced the second insert with what you provided.

Server starts. "IPTV Device" visible in Devices. First time I see anything there.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#19
2024-04-12, 12:35 AM (This post was last modified: 2024-04-12, 12:35 AM by mvallevand.)
Can we see the zipped logs now?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#20
2024-04-12, 12:50 AM
(2024-04-11, 11:24 PM)skrottapple Wrote: In fact I couldn't even find documentation of "DbDatatReader.GetOriginal". The closest I got was ".GetOrdinal", and even then it said it would throw an exception if there was no match, so I didn't get any wiser. T
It was GetOridinal(). I think my browser must have tried to correct the spelling or something. It returns -1 if the column isn't found.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Failed: No errors, but no data delivered. This is usually because the device failed Bobthegoldfish 3 399 2024-11-29, 12:49 AM
Last Post: mvallevand
  Adaptec avc-3610 device not listed, but detected by OS tryingtomakeitwork 1 556 2024-04-10, 12:29 PM
Last Post: mvallevand
  Different Errors depending on channel (no tuner found/transcoding Error) idefixrc 3 887 2023-11-21, 12:45 PM
Last Post: mvallevand
  Nextpvr unaccessable from Jellyfin with 401 error Simonzzzz 5 1,411 2023-11-20, 10:28 AM
Last Post: Simonzzzz
  Recording length error VCR58 20 2,422 2023-11-12, 11:46 PM
Last Post: mvallevand
  IPTV device - reloading M3U amirlsm 28 10,722 2023-08-15, 09:51 AM
Last Post: mrnobody
  "Unexpected error scanning for other devices" BlackJack 2 825 2023-07-15, 03:03 PM
Last Post: BlackJack
  usb device doesn't appear in GUI j_yves 4 990 2023-05-29, 02:56 PM
Last Post: j_yves
  HTTP ERROR 500 PJosses 17 2,181 2023-02-16, 05:17 PM
Last Post: PJosses
  Device Scan isn't finding HDHR3-US Smithers 11 2,317 2022-09-27, 09:36 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode