spotweb: Synology (MariaDB 5-10) Random: 1062: Duplicate entry '' for key 'idx_spotsfull_1'
Running Spotweb for a long time on Synology. After upgrading to the latest version last week with Git Pull i got a few Popup’s with error’s and can’t find a solution for it. Spotweb is also slower then before the upgrade and pictures in the index page are also taking long time to load. Some pictures are quick and other are taking long time before i see them. Cache folder have 0777 rights.
Spotweb is working fine even with the error’s but hoping for some solution or tips.
When opening Spotweb and see the index i get at random moment:
Warning: Invalid argument supplied for foreach() in /volume1/web/spotweb/lib/services/NzbHandler/Services_NzbHandler_abs.php on line 233 {"result":"success","data":[],"info":[],"warnings":[],"errors":[]}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 81
Commits related to this issue
- Fix for issue: https://github.com/spotweb/spotweb/issues/566 — committed to Sweepr/spotweb by Sweepr 4 years ago
- Merge pull request #576 from Sweepr/develop Fix for issue: https://github.com/spotweb/spotweb/issues/566 — committed to spotweb/spotweb by mesa57 4 years ago
- Revert "Fix for issue: https://github.com/spotweb/spotweb/issues/566" — committed to spotweb/spotweb by Sweepr 4 years ago
- Merge pull request #577 from spotweb/revert-576-develop Revert "Fix for issue: https://github.com/spotweb/spotweb/issues/566" — committed to spotweb/spotweb by Sweepr 4 years ago
- Fix for issue: https://github.com/spotweb/spotweb/issues/566 — committed to Sweepr/spotweb by Sweepr 4 years ago
- Merge pull request #578 from Sweepr/develop Fix for issue: https://github.com/spotweb/spotweb/issues/566 — committed to spotweb/spotweb by mesa57 4 years ago
@mikeo999
Sounds good
@Sweepr
Second day without any errors. Will test it tomorrow again and if it is without errors I think you solved it and we can close it.
@Sweepr
First test looks promising. I will test tomorrow again and let you know the result. Respect for your patience.
@mikeo999 We have pushed another change to dev branch, please checkout and report back if any issue occur.
The Error log
Error while loading this page, you will be returned automaticly to the mainviewSpotWeb v0.68.31.33 on PHP v5.6.40 crashed object(SqlErrorException)#30 (8) { ["message":protected]=> string(87) "23000: 1062: Duplicate entry 'D13pa3B53kIXu04Xw1fJ8@spot.net' for key 'idx_spotsfull_1'" ["string":"CustomException":private]=> NULL ["code":protected]=> int(-1) ["file":protected]=> string(44) "/volume1/web/spotweb/lib/dbeng/dbeng_pdo.php" ["line":protected]=> int(270) ["trace":"Exception":private]=> array(5) { [0]=> array(6) { ["file"]=> string(53) "/volume1/web/spotweb/lib/dao/Mysql/Dao_Mysql_Spot.php" ["line"]=> int(28) ["function"]=> string(11) "batchInsert" ["class"]=> string(9) "dbeng_pdo" ["type"]=> string(2) "->" ["args"]=> array(7) { [0]=> array(1) { [0]=> array(34) { ["category"]=> int(0) ["website"]=> string(51) "http://bit.do/Clive-Cussler-Het-goud-van-Kamtsjatka" ["image"]=> array(3) { ["height"]=> string(3) "281" ["width"]=> string(3) "182" ["segment"]=> array(1) { [0]=> string(30) "3ginpk9RaXoXp04XwZaCa@spot.net" } } ["sabnzbdurl"]=> string(0) "" ["messageid"]=> string(30) "D13pa3B53kIXu04Xw1fJ8@spot.net" ["searchurl"]=> string(0) "" ["description"]=> string(989) "Clive Cussler - Het goud van Kamtsjatka[br][br]Alternatieve titels: Dark Watch[br]Avontuur[br][br]592 pagina's[br]Eerste druk: Berkley, New York (Verenigde Staten)[br][br]Juan Cabrillo en zijn samengeraapte bemanning aan boord van het spionageschip Oregon hebben in het verleden fortuin gemaakt [br]door het uitvoeren van gevaarlijke opdrachten voor machtige westerse instanties. Maar de nieuwste klanten voor Cabrillo's [br]speciale diensten komen uit het oosten - het Verre Oosten. Het is een consortium van Japanse scheepsmagnaten, wier bron van [br]inkomsten wordt bedreigd door piraten die de Aziatische wateren afstropen. Aanvankelijk waren alleen kleinere schepen en [br]buitenlandse jachten slachtoffer van deze aanvallen op volle zee, maar nu verdwijnen er gigantische koopvaardijschepen.[br][br][br]Alleen al bij jou in de buurt, honderden mannen die opzoek zijn naar een Geile Seksdate![br]----------------------------------------> http://bit.do/Ook-Geil-Deze-mannen-zoeken-seks" ["sub"]=> string(0) "" ["filesize"]=> string(6) "883617" ["poster"]=> string(5) "RickP" ["tag"]=> string(0) "" ["nzb"]=> array(1) { [0]=> string(30) "V5dsvnaE0wEXp04XwlM44@spot.net" } ["title"]=> string(39) "Clive Cussler - Het goud van Kamtsjatka" ["filename"]=> string(0) "" ["newsgroup"]=> string(0) "" ["subcata"]=> string(3) "a5|" ["subcatb"]=> string(3) "b3|" ["subcatc"]=> string(4) "c11|" ["subcatd"]=> string(3) "d1|" ["subcatz"]=> string(3) "z2|" ["created"]=> string(10) "1597566303" ["key"]=> string(1) "7" ["prevMsgids"]=> array(0) { } ["newsreader"]=> string(17) "Spotnet 2.0.0.284" ["fullxml"]=> string(1595) "<?xml version="1.0"?> <Spotnet><Posting><Key>7</Key><Created>1597566303</Created><Poster>RickP</Poster><Title>Clive Cussler - Het goud van Kamtsjatka</Title><Description>Clive Cussler - Het goud van Kamtsjatka[br][br]Alternatieve titels: Dark Watch[br]Avontuur[br][br]592 pagina's[br]Eerste druk: Berkley, New York (Verenigde Staten)[br][br]Juan Cabrillo en zijn samengeraapte bemanning aan boord van het spionageschip Oregon hebben in het verleden fortuin gemaakt [br]door het uitvoeren van gevaarlijke opdrachten voor machtige westerse instanties. Maar de nieuwste klanten voor Cabrillo's [br]speciale diensten komen uit het oosten - het Verre Oosten. Het is een consortium van Japanse scheepsmagnaten, wier bron van [br]inkomsten wordt bedreigd door piraten die de Aziatische wateren afstropen. Aanvankelijk waren alleen kleinere schepen en [br]buitenlandse jachten slachtoffer van deze aanvallen op volle zee, maar nu verdwijnen er gigantische koopvaardijschepen.[br][br][br]Alleen al bij jou in de buurt, honderden mannen die opzoek zijn naar een Geile Seksdate![br]----------------------------------------> http://bit.do/Ook-Geil-Deze-mannen-zoeken-seks</Description><Website>http://bit.do/Clive-Cussler-Het-goud-van-Kamtsjatka</Website><Image Width="182" Height="281"><Segment>3ginpk9RaXoXp04XwZaCa@spot.net</Segment></Image><Size>883617</Size><Category>01<Sub>01a05</Sub><Sub>01b03</Sub><Sub>01c02</Sub><Sub>01d01</Sub><Sub>01z02</Sub></Category><NZB><Segment>V5dsvnaE0wEXp04XwlM44@spot.net</Segment></NZB></Posting><Extra><Newsreader>Spotnet 2.0.0.284</Newsreader></Extra></Spotnet> " ["user-signature"]=> string(64) "kXS4x3mTbyO0TcY6vfJZVVLKEbZhihiHk9wMzx2S0s1p8U707I0Lj3BtdCo4Yt7W" ["user-key"]=> string(156) "YToyOntzOjg6ImV4cG9uZW50IjtzOjQ6IkFRQUIiO3M6NjoibW9kdWxvIjtzOjY0OiJ3UG54NGRnaC9xLzcyTGtZT2lJMEErZ0lEek8yc0IrSDVCcW5ScEpDYllRb3BXT1Q3QlIyOVBqeHkwSlNqRkRWIjt9" ["verified"]=> int(1) ["spotterid"]=> string(6) "699v0A" ["xml-signature"]=> string(67) "D3WFIRzkhUryZFXMnaAJ3e2hDSAD6iliWj8MNxToYzsja0LrGQfnAQf+rhBMiwX1===" ["moderated"]=> int(0) ["user-avatar"]=> string(0) "" ["fromhdr"]=> string(5) "RickP" ["stamp"]=> int(1597566303) } } [1]=> string(107) "INSERT INTO spotsfull(messageid, verified, usersignature, userkey, xmlsignature, fullxml) VALUES" [2]=> array(6) { [0]=> int(2) [1]=> int(1) [2]=> int(2) [3]=> int(2) [4]=> int(2) [5]=> int(2) } [3]=> array(6) { [0]=> string(9) "messageid" [1]=> string(8) "verified" [2]=> string(14) "user-signature" [3]=> string(8) "user-key" [4]=> string(13) "xml-signature" [5]=> string(7) "fullxml" } [4]=> string(34) "ON DUPLICATE KEY UPDATE messageid=" [5]=> array(1) { [0]=> int(2) } [6]=> array(1) { [0]=> string(9) "messageid" } } } [1]=> array(6) { ["file"]=> string(75) "/volume1/web/spotweb/lib/services/Providers/Services_Providers_FullSpot.php" ["line"]=> int(48) ["function"]=> string(12) "addFullSpots" ["class"]=> string(14) "Dao_Mysql_Spot" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> array(1) { [0]=> array(34) { ["category"]=> int(0) ["website"]=> string(51) "http://bit.do/Clive-Cussler-Het-goud-van-Kamtsjatka" ["image"]=> array(3) { ["height"]=> string(3) "281" ["width"]=> string(3) "182" ["segment"]=> array(1) { [0]=> string(30) "3ginpk9RaXoXp04XwZaCa@spot.net" } } ["sabnzbdurl"]=> string(0) "" ["messageid"]=> string(30) "D13pa3B53kIXu04Xw1fJ8@spot.net" ["searchurl"]=> string(0) "" ["description"]=> string(989) "Clive Cussler - Het goud van Kamtsjatka[br][br]Alternatieve titels: Dark Watch[br]Avontuur[br][br]592 pagina's[br]Eerste druk: Berkley, New York (Verenigde Staten)[br][br]Juan Cabrillo en zijn samengeraapte bemanning aan boord van het spionageschip Oregon hebben in het verleden fortuin gemaakt [br]door het uitvoeren van gevaarlijke opdrachten voor machtige westerse instanties. Maar de nieuwste klanten voor Cabrillo's [br]speciale diensten komen uit het oosten - het Verre Oosten. Het is een consortium van Japanse scheepsmagnaten, wier bron van [br]inkomsten wordt bedreigd door piraten die de Aziatische wateren afstropen. Aanvankelijk waren alleen kleinere schepen en [br]buitenlandse jachten slachtoffer van deze aanvallen op volle zee, maar nu verdwijnen er gigantische koopvaardijschepen.[br][br][br]Alleen al bij jou in de buurt, honderden mannen die opzoek zijn naar een Geile Seksdate![br]----------------------------------------> http://bit.do/Ook-Geil-Deze-mannen-zoeken-seks" ["sub"]=> string(0) "" ["filesize"]=> string(6) "883617" ["poster"]=> string(5) "RickP" ["tag"]=> string(0) "" ["nzb"]=> array(1) { [0]=> string(30) "V5dsvnaE0wEXp04XwlM44@spot.net" } ["title"]=> string(39) "Clive Cussler - Het goud van Kamtsjatka" ["filename"]=> string(0) "" ["newsgroup"]=> string(0) "" ["subcata"]=> string(3) "a5|" ["subcatb"]=> string(3) "b3|" ["subcatc"]=> string(4) "c11|" ["subcatd"]=> string(3) "d1|" ["Already change that, that was my first comment.
But i run: /usr/local/bin/php56 upgrade-db.php --clear-cache and checked again because maybe it is using old info afther the change of the file. Just to make sure.
Then i test it again and no errors for the moment. But because it is random i have to wait and see how it goes.
I will check again tomorrow morning and let you know.
Same error still after change the file.
Result of the Query if you still need it.
INSERT INTO spotsfull(messageid) VALUES (‘vHlZD9CtOPwBsg3XwK4hG@spot.net’) `SQL-query:
INSERT INTO spotsfull(messageid) VALUES (‘vHlZD9CtOPwBsg3XwK4hG@spot.net’)
MySQL meldt: Documentatie #1062 - Dubbele ingang ‘vHlZD9CtOPwBsg3XwK4hG@spot.net’ voor zoeksleutel ‘idx_spotsfull_1’`
And
INSERT INTO spotsfull(messageid) VALUES (‘vHlZD9CtOPwBsg3XwK4hG@spot.net’) ON DUPLICATE KEY UPDATE messageid=messageid
0 rijen toegevoegd. (Query duurde 0.0740 seconden.)Do i need to clear something before it use the new Dao_Mysql_Spot.php. Cleared the cache from the browser before i test it.
@Sweepr As you are able to reproduce, would it be possible for you to run a test with MariaDB 10 ? It would also be interesting if this only happens with very old spots ?