Timeshift Archive file missing error

1,962 views
Skip to first unread message

Charles Wambura

unread,
Jul 18, 2013, 5:41:37 AM7/18/13
to stalker-m...@googlegroups.com
Hello,
I followed all instructions but I am stuck here on timeshift.  When I play a live channel in timeshift mode, after rewind stb gives error file missing.  I look in the logs it says no such file or directory.  I look into archive I find that the file is really not there but there is other file with different time.  Pls advice where to fix.  Is it portal time not sync with stb time?

Please advice. 

Aleksey Zhurbitsky

unread,
Jul 18, 2013, 7:53:41 AM7/18/13
to stalker-m...@googlegroups.com
Try this fix https://github.com/azhurb/stalker_portal/commit/59045579463c875f4f92b53347d804c16a0bec64
but only for server/lib/mysql.class.php file

Charles Wambura

unread,
Jul 18, 2013, 9:33:18 AM7/18/13
to stalker-m...@googlegroups.com
Thanks for

Your instructions,

server/lib/mysql.class.php
change if (!empty($timezone)) {
to  if (empty($timezone)) {

I still get this error fille missing, even after your instructions.  The file is not present in archive.

this is nginx error.log
2013/07/18 16:23:15 [error] 21756#0: *359 open() "/var/www/archive/1/20130718-15.mpg" failed (2: No such file or directory), client: 172.168.0.248, server: vod.nexusnet.co.tz, request: "GET /archive/1/20130718-15.mpg HTTP/1.1", host: "vod.nexusnet.co.tz"
2013/07/18 16:23:36 [error] 21756#0: *367 open() "/var/www/archive/1/20130718-15.mpg" failed (2: No such file or directory), client: 172.168.0.248, server: vod.nexusnet.co.tz, request: "GET /archive/1/20130718-15.mpg HTTP/1.1", host: "vod.nexusnet.co.tz"
2013/07/18 16:27:35 [error] 21756#0: *382 open() "/var/www/archive/1/20130718-15.mpg" failed (2: No such file or directory), client: 172.168.0.248, server: vod.nexusnet.co.tz, request: "GET /archive/1/20130718-15.mpg HTTP/1.1", host: "vod.nexusnet.co.tz"

Charles Wambura

unread,
Jul 18, 2013, 9:39:24 AM7/18/13
to stalker-m...@googlegroups.com
I checked again in archive there is only 2 old files.  Timeshift is not writing anymore the files to archive what is wrong? Where to check?.


On Thursday, July 18, 2013 2:41:37 AM UTC-7, Charles Wambura wrote:

Aleksey Zhurbitsky

unread,
Jul 18, 2013, 10:18:49 AM7/18/13
to stalker-m...@googlegroups.com
Try to start recording tasks
sudo start tvarchivetasks

Charles Wambura

unread,
Jul 18, 2013, 11:35:17 AM7/18/13
to stalker-m...@googlegroups.com
That worked! Big Up! Thanks.


On Thursday, July 18, 2013 2:41:37 AM UTC-7, Charles Wambura wrote:
Message has been deleted

Martin Sušek

unread,
Oct 18, 2013, 2:54:22 AM10/18/13
to stalker-m...@googlegroups.com
Hello,

please help my. I have a problem with TV archive. TV Archive on the IPTV channell is enabled but TV archive on the home screen is "0". File .mpg for TV Archive is written to /media/records/archive. EPG is working but when trying something run from the archive I get an answer "file missing". When I looked correction here who describe so I did not have to carry it out. I have Stalke v.4.8.69. Our fix is implemented on my Stalker_portal.

My screenshots:




Thanks 

Martin Sušek

unread,
Oct 18, 2013, 3:30:22 AM10/18/13
to stalker-m...@googlegroups.com
Recording work OK. 

Aleksey Zhurbitsky

unread,
Oct 18, 2013, 5:39:26 AM10/18/13
to stalker-m...@googlegroups.com
Try to load the portal (via ssh) in the debug mode
killall stbapp
/usr/share/qt-4.6.0/stbapp -qws -display directfb http://.../stalker_portal/c/?debug
and try to play archive again, then show debug output.

Also check apache error log on the middleware server and on the storage.

Martin Sušek

unread,
Oct 18, 2013, 6:33:27 AM10/18/13
to stalker-m...@googlegroups.com
error.log of apache:

TV archive: PORTAL_URL is not defined

Aleksey Zhurbitsky

unread,
Oct 18, 2013, 9:11:22 AM10/18/13
to stalker-m...@googlegroups.com
You should add PORTAL_URL setting to the storage/config.php on the archive storage
For example:
define('PORTAL_URL', 'http://192.168.1.1/stalker_portal/');


Martin Sušek

unread,
Oct 22, 2013, 3:01:19 AM10/22/13
to stalker-m...@googlegroups.com
Thanks TV_Archive works fine ;) 

This same mistake and wrote the TimeShift :( 

Nginx configuration is:

 location /tslink/ {
 
        rewrite
^/tslink/(.+)/archive/(\d+)/(.+) /stalker_portal/server/api/chk_tmp_timeshift_link.php?key=$1&file=$3 last;
 
        proxy_set_header
Host 10.125.64.221; # <-- portal IP
        proxy_set_header X
-Real-IP $remote_addr;
        proxy_pass http
://10.125.64.221:88/; # <-- portal IP
   
}
 
    location
/archive/ {
        root
/var/www; # <-- directory, where is archive folder (symlink RECORDS_DIR."archive")
       
internal;
   

/var/log/nginx/error.log
2013/10/22 08:38:35 [error] 1337#0: *690 open() "/var/www/tslink/8880a98fccf9759e5749094ccbb08bc4/archive/8/20131022-08.mpg" failed (2: No such file or directory), client: 10.125.64.45, server: example.com, request: "GET /tslink/8880a98fccf9759e5749094ccbb08bc4/archive/8/20131022-08.mpg HTTP/1.1", host: "10.125.64.221"
2013/10/22 08:40:03 [error] 1337#0: *724 open() "/var/www/tslink/f971dcf43d1fd0c7d79557b144290b50/archive/8/20131022-08.mpg" failed (2: No such file or directory), client: 10.125.64.45, server: example.com, request: "GET /tslink/f971dcf43d1fd0c7d79557b144290b50/archive/8/20131022-08.mpg HTTP/1.1", host: "10.125.64.221"
2013/10/22 08:45:34 [error] 1337#0: *777 open() "/var/www/tslink/ac732a41f4d3001b7c34a1416659de42/archive/8/20131022-08.mpg" failed (2: No such file or directory), client: 10.125.64.45, server: example.com, request: "GET /tslink/ac732a41f4d3001b7c34a1416659de42/archive/8/20131022-08.mpg HTTP/1.1", host: "10.125.64.221"


Directory tslink is on /media/ and symlinks for this directory is on /var/www/. Permission for folder tslink is 777.

Martin Sušek

unread,
Oct 22, 2013, 3:47:11 AM10/22/13
to stalker-m...@googlegroups.com
It can not be caused by this:

/var/log/nginx/access.log
10.125.64.221 - - [22/Oct/2013:07:56:06 +0200] "GET /stalker_portal//server/api/chk_tmp_archive_link.php?token=f680467db0816a8a75a8da6f31b1f164 HTTP/1.0" 200 15 "-" "-"

in the path are two slash behind. We can not have misspelled a trip somewhere?

Aleksey Zhurbitsky

unread,
Oct 22, 2013, 5:23:45 AM10/22/13
to stalker-m...@googlegroups.com
You dont need to create tslink directory. But you should create symbolic link

Martin Sušek

unread,
Oct 24, 2013, 2:26:10 AM10/24/13
to stalker-m...@googlegroups.com

symlink for /media/records/archive is already exist in /var/www/

Problem is somewhere else

Aleksey Zhurbitsky

unread,
Oct 24, 2013, 5:50:05 AM10/24/13
to stalker-m...@googlegroups.com
Try to delete .htaccess file from the /var/www/archive on the storage
and set 
enable_timeshift_tmp_link = false
in the server/custom.ini

Martin Sušek

unread,
Oct 24, 2013, 10:34:00 AM10/24/13
to stalker-m...@googlegroups.com
.htaccess file not exist. After adding line enable_timeshift_tmp_link = false in custom.ini TimeShift working fine ;) Thanks ;) 

I have archive on 3 programs. But administration panel show TV Archive: 0 


Aleksey Zhurbitsky

unread,
Oct 25, 2013, 5:31:07 AM10/25/13
to stalker-m...@googlegroups.com
In the administration panel displays the active sessions. 0 means that no one watching tv archive.
Reply all
Reply to author
Forward
0 new messages