Skip to content
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

Access-Control-Allow-Origin error while downloading dubbed videos #58

Open
radinamatic opened this issue Jan 20, 2017 · 7 comments
Open

Comments

@radinamatic
Copy link
Member

I'm not really sure if this a KA Lite or contentpack issue, but we have the CORS problem, again, so far only on dubbed videos.

System: Ubuntu 16.10
Version: 0.17b5
Tested on Spanish and pt-PT. English videos download fine.

ubuntu 16 10 start running - oracle vm virtualbox_099

ubuntu 16 10 start running - oracle vm virtualbox_104

@radinamatic
Copy link
Member Author

Not sure if this could help or there is even simpler solution, but I found it a while back, after we had this issue for the first time: crossorigin="anonymous"

@mrpau-dev
@benjaoming

@radinamatic
Copy link
Member Author

I went through the usual testing sequence with unsigned OSX installer by @mrpau-eduard on both Yosemite and Mavericks, and then one more try on Ubuntu 15.10 with 0.17b5 by @benjaoming and did not see this CORS error again. So no idea if it was an one-time thing, but it's not there anymore... 😉

@radinamatic
Copy link
Member Author

Seeing this again in 0.17b5 on Windows, even while downloading English videos. Still not sure if this is a server or OS issue...

virtualbox_ie11 - win8 1_02_02_2017_12_34_04

virtualbox_ie11 - win8 1_02_02_2017_12_50_42

@benjaoming
Copy link
Contributor

@radinamatic great find, I think this is a real issue, the Could not connect to central server message is most likely due to this?

@radinamatic
Copy link
Member Author

[INFO] [2017-02-02 03:31:36,809] cherrypy.access.97129968: 127.0.0.1 - - [02/Feb
/2017:03:31:36] "GET /static/images/distributed/circle-empty.png HTTP/1.1" 304 -
 "http://127.0.0.1:8008/update/videos/?lang=es" "Mozilla/5.0 (Windows NT 6.3; rv
:50.0) Gecko/20100101 Firefox/50.0"
[INFO] [2017-02-02 03:31:55,918] kalite: Cancelling process videodownload
[INFO] [2017-02-02 03:31:55,950] kalite: Cancelling process videodownload

### Here I (thought I cancelled the download of English "Counting" videos and) 
### started the same for Spanish) 

[INFO] [2017-02-02 03:31:57,763] kalite: Downloading 'Comparing numbers of objec
ts'
[INFO] [2017-02-02 03:33:39,153] kalite: Downloading 'Counting in order'
[INFO] [2017-02-02 03:34:13,918] kalite: Descargando 'Counting in order'
[INFO] [2017-02-02 03:36:17,654] kalite: Downloading 'Counting by category'
[INFO] [2017-02-02 03:37:17,543] kalite: Downloading 'Counting by category'
[INFO] [2017-02-02 03:37:52,028] kalite: Descargando 'Counting by category'
[ERROR] [2017-02-02 03:39:10,778] kalite: No content database file found
[INFO] [2017-02-02 03:39:10,809] kalite: Error in downloading UA975j_qsTQ: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:39:10,903] kalite: Tried to remove UA975j_qsTQ from fil
e queue but found tJrSILRXOUc instead.
[ERROR] [2017-02-02 03:39:14,605] kalite: No content database file found
[INFO] [2017-02-02 03:39:14,605] kalite: Error in downloading UA975j_qsTQ: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:39:14,653] kalite: Tried to remove UA975j_qsTQ from fil
e queue but found tJrSILRXOUc instead.
[INFO] [2017-02-02 03:40:59,262] kalite: Downloading 'Comparing numbers on the n
umber line'
[INFO] [2017-02-02 03:41:04,621] kalite: Downloading 'Comparing numbers on the n
umber line'
[INFO] [2017-02-02 03:42:07,089] kalite: Descargando 'Comparing numbers on the n
umber line'
[INFO] [2017-02-02 03:44:39,092] kalite: Downloading 'Counting objects 1'
[INFO] [2017-02-02 03:45:23,230] kalite: Downloading 'Counting objects 1'
[INFO] [2017-02-02 03:46:06,121] kalite: Descargando 'Counting objects 1'
[INFO] [2017-02-02 03:48:35,137] kalite: Downloading 'Missing numbers between 0
and 120'
[INFO] [2017-02-02 03:50:03,588] kalite: Descargando 'Missing numbers between 0
and 120'
[INFO] [2017-02-02 03:50:10,339] kalite: Downloading 'Missing numbers between 0
and 120'
[INFO] [2017-02-02 03:52:42,683] kalite: Downloading 'Number grid'
[INFO] [2017-02-02 03:53:22,355] kalite: Downloading 'Number grid'
[INFO] [2017-02-02 03:53:30,869] kalite: Downloading 'Counting objects 2'
[INFO] [2017-02-02 03:53:46,809] kalite: Downloading 'Counting in pictures'
[ERROR] [2017-02-02 03:54:01,526] kalite: No content database file found

### Did it dissapear or got locked?

[INFO] [2017-02-02 03:54:01,542] kalite: Error in downloading 9XZypM2Z3Ro: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:54:01,572] kalite: Tried to remove 9XZypM2Z3Ro from fil
e queue but found EUqhLxFccbM instead.
[ERROR] [2017-02-02 03:54:05,135] kalite: No content database file found
[INFO] [2017-02-02 03:54:05,135] kalite: Error in downloading leDYnoNSvD4: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:54:05,417] kalite: Tried to remove leDYnoNSvD4 from fil
e queue but found __nkbr6DeTg instead.
[ERROR] [2017-02-02 03:54:10,619] kalite: No content database file found
[WARNING] [2017-02-02 03:54:10,683] kalite: Tried to remove leDYnoNSvD4 from fil
e queue but found __nkbr6DeTg instead.
[ERROR] [2017-02-02 03:54:14,309] kalite: No content database file found
[INFO] [2017-02-02 03:54:14,322] kalite: Error in downloading EUqhLxFccbM: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:54:14,559] kalite: Tried to remove EUqhLxFccbM from fil
e queue but found leDYnoNSvD4 instead.
[ERROR] [2017-02-02 03:54:19,683] kalite: No content database file found
[INFO] [2017-02-02 03:54:19,683] kalite: Error in downloading PEeUTQ0Gri8: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:54:19,713] kalite: Tried to remove PEeUTQ0Gri8 from fil
e queue but found UA975j_qsTQ instead.
[INFO] [2017-02-02 03:54:21,621] kalite: Descargando 'Number grid'
[ERROR] [2017-02-02 03:54:24,480] kalite: No content database file found
[INFO] [2017-02-02 03:54:24,496] kalite: Error in downloading __nkbr6DeTg: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:54:25,137] kalite: Tried to remove __nkbr6DeTg from fil
e queue but found PEeUTQ0Gri8 instead.
[ERROR] [2017-02-02 03:54:33,369] kalite: No content database file found
[INFO] [2017-02-02 03:54:33,369] kalite: Error in downloading EUqhLxFccbM: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:54:33,417] kalite: Tried to remove EUqhLxFccbM from fil
e queue but found leDYnoNSvD4 instead.
[ERROR] [2017-02-02 03:54:36,776] kalite: No content database file found
[INFO] [2017-02-02 03:54:36,776] kalite: Error en la descarga de 9XZypM2Z3Ro: da
tabase is locked; pasando al siguiente video.
[WARNING] [2017-02-02 03:54:36,855] kalite: Tried to remove 9XZypM2Z3Ro from fil
e queue but found EUqhLxFccbM instead.
[INFO] [2017-02-02 03:54:37,762] kalite: Descargando 'Contar objetos (parte 2)'
[ERROR] [2017-02-02 03:54:38,322] kalite: No content database file found
[INFO] [2017-02-02 03:54:38,338] kalite: Error in downloading UA975j_qsTQ: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:54:39,213] kalite: Tried to remove UA975j_qsTQ from fil
e queue but found tJrSILRXOUc instead.
[ERROR] [2017-02-02 03:54:45,230] kalite: No content database file found
[INFO] [2017-02-02 03:54:45,230] kalite: Error in downloading y7-Fveg6e-A: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:54:46,010] kalite: Tried to remove y7-Fveg6e-A from fil
e queue but found xpN-wvSwKdM instead.
[INFO] [2017-02-02 03:54:46,667] kalite: Downloading 'Comparar números en la rec
ta numérica'
[INFO] [2017-02-02 03:54:51,510] kalite: Downloading 'Contar en orden'
[INFO] [2017-02-02 03:55:05,808] kalite: Downloading 'Contar en imágenes'
[INFO] [2017-02-02 03:55:19,765] kalite: Downloading 'Números faltantes entre 0
y 120'
[INFO] [2017-02-02 03:55:37,651] kalite: Descargando 'Contar con números pequeño
s'
[INFO] [2017-02-02 03:55:49,463] kalite: Descargando 'Comparar números de objeto
s'
[ERROR] [2017-02-02 03:56:07,167] kalite: No content database file found
[INFO] [2017-02-02 03:56:07,167] kalite: Error en la descarga de V94Po5OpUDo: da
tabase is locked; pasando al siguiente video.
[WARNING] [2017-02-02 03:56:08,713] kalite: Tried to remove V94Po5OpUDo from fil
e queue but found 8dGFBkOPOCc instead.
[INFO] [2017-02-02 03:56:09,512] kalite: Descargando 'Contar objetos (parte 1)'
[ERROR] [2017-02-02 03:56:12,198] kalite: No content database file found
[INFO] [2017-02-02 03:56:12,214] kalite: Error in downloading UkGIKRPafII: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:56:12,855] kalite: Tried to remove UkGIKRPafII from fil
e queue but found ifIrWXKMjns instead.
[ERROR] [2017-02-02 03:56:17,526] kalite: No content database file found
[INFO] [2017-02-02 03:56:17,526] kalite: Error in downloading fEgh1fi_pyQ: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:56:20,855] kalite: Tried to remove fEgh1fi_pyQ from fil
e queue but found V94Po5OpUDo instead.
[ERROR] [2017-02-02 03:56:22,010] kalite: No content database file found
[INFO] [2017-02-02 03:56:22,026] kalite: Error in downloading 5uKEDgGakTU: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:56:22,417] kalite: Tried to remove 5uKEDgGakTU from fil
e queue but found fEgh1fi_pyQ instead.
[INFO] [2017-02-02 03:56:23,588] kalite: Downloading 'Contar por categoría'
[ERROR] [2017-02-02 03:56:33,433] kalite: No content database file found
[INFO] [2017-02-02 03:56:33,448] kalite: Error en la descarga de 8dGFBkOPOCc: da
tabase is locked; pasando al siguiente video.
[WARNING] [2017-02-02 03:56:33,588] kalite: Tried to remove 8dGFBkOPOCc from fil
e queue but found 94IaEV2z1iM instead.
[ERROR] [2017-02-02 03:56:35,230] kalite: No content database file found
[INFO] [2017-02-02 03:56:35,244] kalite: Error in downloading V94Po5OpUDo: datab
ase is locked; continuing to next video.
[WARNING] [2017-02-02 03:56:35,635] kalite: Tried to remove V94Po5OpUDo from fil
e queue but found 8dGFBkOPOCc instead.
[INFO] [2017-02-02 03:56:36,776] kalite: Downloading 'Cuadrícula de números'
[ERROR] [2017-02-02 03:56:41,683] kalite: No content database file found
[INFO] [2017-02-02 03:56:41,698] kalite: Error in downloading 94IaEV2z1iM: no su
ch table: item; continuing to next video.
[WARNING] [2017-02-02 03:56:42,042] kalite: Tried to remove 94IaEV2z1iM from fil
e queue but found IkzzUQD4kuU instead.
[INFO] [2017-02-02 03:56:43,012] kalite: Downloaded 18 of 25 videos successfully
.
[INFO] [2017-02-02 03:56:43,012] kalite: Downloaded 16 of 26 videos successfully
.

### This is confusing, there's only 10 videos in the "Counting" topic... 


[INFO] [2017-02-02 03:56:45,746] kalite: Error en la descarga de IkzzUQD4kuU: NO
T NULL constraint failed: item.size_on_disk; pasando al siguiente video.
[WARNING] [2017-02-02 03:56:45,996] kalite: Tried to remove IkzzUQD4kuU from fil
e queue, but was empty instead.
[INFO] [2017-02-02 03:56:45,996] kalite: 16 videos descargados satisfactoriament
e de 20
[INFO] [2017-02-02 03:56:47,901] cherrypy.access.97129968: 127.0.0.1 - - [02/Feb
/2017:03:56:47] "GET /static/images/distributed/circle-complete.png HTTP/1.1" 30
4 - "http://127.0.0.1:8008/update/videos/?lang=es" "Mozilla/5.0 (Windows NT 6.3;
 rv:50.0) Gecko/20100101 Firefox/50.0"
[INFO] [2017-02-02 03:56:47,917] cherrypy.access.97129968: 127.0.0.1 - - [02/Feb
/2017:03:56:47] "GET /static/images/distributed/circle-partial.png HTTP/1.1" 304
 - "http://127.0.0.1:8008/update/videos/?lang=es" "Mozilla/5.0 (Windows NT 6.3;
rv:50.0) Gecko/20100101 Firefox/50.0"

@benjaoming
Copy link
Contributor

@radinamatic - I'm not fixing that, because the single-file video queue is essentially broken. This is what learningequality/ka-lite#5094 was for :)

@radinamatic
Copy link
Member Author

@radinamatic great find, I think this is a real issue, the Could not connect to central server message is most likely due to this?

This might be it... Do we have a solution for it? 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants