Warning: session_start(): open(/var/lib/php/sessions/sess_humsrdc560iptnt3jtgm44ev37, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static File loadDataSnippetToFile(S snippetID) ctex {
snippetID = fsI(snippetID);
ifndef NoResourceLoader
IResourceLoader rl = vm_getResourceLoader();
if (rl != null)
ret rl.loadLibrary(snippetID);
endifndef
File f = DiskSnippetCache_file(parseSnippetID(snippetID));
new L urlsTried;
new L errors;
try {
URL url = addAndReturn(urlsTried, new URL(dataSnippetLink(snippetID)));
print("Loading library: " + hideCredentials(url));
try {
loadBinaryPageToFile(openConnection(url), f);
if (fileSize(f) == 0) fail();
} catch e {
errors.add(e);
url = addAndReturn(urlsTried, new URL(tb_mainServer() + "/blobs/" + psI(snippetID)));
print(e);
print("Trying other server: " + hideCredentials(url));
loadBinaryPageToFile(openConnection(url), f);
print("Got bytes: " + fileSize(f));
}
// TODO: check if we hit the "LOADING" message
if (fileSize(f) == 0) fail();
System.err.println("Bytes loaded: " + fileSize(f));
} catch e {
//printStackTrace(e);
errors.add(e);
fail("Binary snippet " + snippetID + " not found or not public. URLs tried: " + allToString(urlsTried) + ", errors: " + allToString(errors));
}
return f;
}