I'm working with Xen for the first time, using Alpine Linux as Dom0.
I'm following the Alpine Linux guide to set up a PV guest in Xen, and I'm receiving the following error:
alpine-xen:~# xl create -f /etc/xen/a1.cfg -c
libxl: error: libxl_mem.c:202:libxl_set_memory_target: unable to retrieve domain configuration: No such file or directory
failed to free memory for the domain
I could not find any details about this error online. Could someone help me out with this?
Below are my outputs for xl list and xl info:
alpine-xen:~# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 64622 24 r----- 10.8
alpine-xen:~# xl info
host : alpine-xen
release : 4.19.80-0-vanilla
version : #1-Alpine SMP Fri Oct 18 11:27:53 UTC 2019
machine : x86_64
nr_cpus : 24
max_cpu_id : 31
nr_nodes : 1
cores_per_socket : 12
threads_per_core : 2
cpu_mhz : 3835.933
hw_caps : 178bf3ff:f6d8320b:2e500800:244037ff:0000000f:219c91a9:00400004:00000500
virt_caps : pv hvm
total_memory : 65466
free_memory : 128
sharing_freed_memory : 0
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 12
xen_extra : .1
xen_version : 4.12.1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit2
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset :
xen_commandline : placeholder no-real-mode edd=off
cc_compiler : gcc (Alpine 8.3.0) 8.3.0
cc_compile_by : buildozer
cc_compile_domain : [unknown]
cc_compile_date : Tue Aug 13 14:24:26 UTC 2019
build_id : f004ef86de8db93d5fbbb90e9b5fa21a70823d67
xend_config_format : 4
looks like you forgot to restrict the memory for dom0 on boot.
Depending on our hardware we need 256M up to 2048M for dom0.
you need to set it in these two files:
/boot/extlinux.conf
...
LABEL xen-vanilla
MENU LABEL Xen + Linux vanilla
COM32 mboot.c32
APPEND xen.gz dom0_mem=256M --- vmlinuz-vanilla root=...
...
and
/etc/update-extlinux.conf
...
xen_opts=dom0_mem=256M
...
we are trying to implement timeout for a participant step. But it doesn't seem to be working. When i configure the timeout as immediate, we are able to see the timeout behavior , but when we select the actual time like 1 hr. It is not timing out after the specified time interval. Is there any other configuration that we have to do to achieve this?
This is because of a bug in com.adobe.granite.workflow.core.job.WorkflowJobUtils as I see. When I set timeout for a Participant step to 1h there is the message in log
03.10.2018 16:26:10.681 *DEBUG* [0:0:0:0:0:0:0:1 [1538573170619] POST /etc/workflow/instances HTTP/1.1] com.adobe.granite.workflow.core.job.WorkflowJobUtils calling createTimeoutJob for workitem /etc/workflow/instances/server0/2018-10-03/test-model_98/workItems/node1_etc_workflow_instances_server0_2018-10-03_test-model_98
03.10.2018 16:26:10.681 *DEBUG* [0:0:0:0:0:0:0:1 [1538573170619] POST /etc/workflow/instances HTTP/1.1] com.adobe.granite.workflow.core.job.WorkflowJobUtils create timeout event {com.adobe.granite.workflow.console.timeout.job=com.adobe.granite.workflow.job.TimeoutJob#989455c, event.timed.date=Wed Nov 14 08:26:10 MSK 2018, event.timed.id=/etc/workflow/instances/server0/2018-10-03/test-model_98/workItems/node1_etc_workflow_instances_server0_2018-10-03_test-model_98_1538573170632}
"event.timed.date=Wed Nov 14 08:26:10 MSK 2018", when the step is assigned to a participant on October 3 at 4 pm. You can add the logger and check from your side, I'm using AEM 6.3. This is the step configuration:
code from WorkflowJobUtils:
Long timeout = (Long)item.getNode().getMetaDataMap().get("timeoutMillis", Long.class);
Date date = calculateDate(timeout.longValue(), addOffset);
props.put("event.timed.date", date);
LOGGER.debug("create timeout event {} ", props);
jobBuilder.properties(props);
List<String> errors = new ArrayList();
ScheduledJobInfo result = jobBuilder.schedule().at(adjustDate(date)).add(errors);
private static Date calculateDate(long seconds, boolean addOffset) {
Calendar cal = Calendar.getInstance();
long millies = seconds * 1000L;
if (addOffset) {
millies += cal.getTimeInMillis();
}
cal.setTimeInMillis(millies);
return cal.getTime();
}
you see in the calculateDate method they expect seconds, but actually for the "1h" option milliseconds are set, 3 600 000. So they multiply it to 1 000 and get 3 600 000 000 millisecond or 3 600 000 seconds, 1 000 hours or 41.6 days.
you can add a new option for the Timeout dropdown here /libs/cq/workflow/components/model/step/tab_common/items/timeout/items/timeout/options as a workaround.
After I added a new option with value "1" there the timeout handler was called:
03.10.2018 16:38:54.200 *DEBUG* [0:0:0:0:0:0:0:1 [1538573934182] POST /etc/workflow/instances HTTP/1.1] com.adobe.granite.workflow.core.job.WorkflowJobUtils calling createTimeoutJob for workitem /etc/workflow/instances/server0/2018-10-03/test-model_99/workItems/node1_etc_workflow_instances_server0_2018-10-03_test-model_99
03.10.2018 16:38:54.201 *DEBUG* [0:0:0:0:0:0:0:1 [1538573934182] POST /etc/workflow/instances HTTP/1.1] com.adobe.granite.workflow.core.job.WorkflowJobUtils create timeout event {com.adobe.granite.workflow.console.timeout.job=com.adobe.granite.workflow.job.TimeoutJob#267dc5f3, event.timed.date=Wed Oct 03 16:38:55 MSK 2018, event.timed.id=/etc/workflow/instances/server0/2018-10-03/test-model_99/workItems/node1_etc_workflow_instances_server0_2018-10-03_test-model_99_1538573934194}
03.10.2018 16:38:59.335 *INFO* [sling-oak-observation-212] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Granite Workflow Timeout Queue Starting job queue Granite Workflow Timeout Queue
03.10.2018 16:38:59.336 *INFO* [sling-oak-observation-212] org.apache.sling.event Service [QueueMBean for queue Granite Workflow Timeout Queue,14915, [org.apache.sling.event.jobs.jmx.StatisticsMBean]] ServiceEvent REGISTERED
03.10.2018 16:38:59.435 *DEBUG* [sling-threadpool-7e90cbd1-c78f-4aff-add9-eba2c792e8fe-(apache-sling-job-thread-pool)-22-Granite Workflow Timeout Queue(com/adobe/granite/workflow/timeout/job)] com.adobe.granite.workflow.core.job.TimeoutHandler process timeout job for event JobImpl [properties=org.apache.sling.api.wrappers.ValueMapDecorator#136322bc : {slingevent:application=fa67a921-cc59-4097-953a-a6e69ff5b718, jcr:created=java.util.GregorianCalendar[time=1538573939311,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+03:00",offset=10800000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=9,WEEK_OF_YEAR=40,WEEK_OF_MONTH=1,DAY_OF_MONTH=3,DAY_OF_YEAR=276,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=4,HOUR_OF_DAY=16,MINUTE=38,SECOND=59,MILLISECOND=311,ZONE_OFFSET=10800000,DST_OFFSET=0], event.timed.date=Wed Oct 03 16:38:55 MSK 2018, slingevent:created=java.util.GregorianCalendar[time=1538573939203,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+03:00",offset=10800000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=9,WEEK_OF_YEAR=40,WEEK_OF_MONTH=1,DAY_OF_MONTH=3,DAY_OF_YEAR=276,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=4,HOUR_OF_DAY=16,MINUTE=38,SECOND=59,MILLISECOND=203,ZONE_OFFSET=10800000,DST_OFFSET=0], event.job.queuename=Granite Workflow Timeout Queue, event.job.queued.time=java.util.GregorianCalendar[time=1538573939203,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+03:00",offset=10800000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=9,WEEK_OF_YEAR=40,WEEK_OF_MONTH=1,DAY_OF_MONTH=3,DAY_OF_YEAR=276,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=4,HOUR_OF_DAY=16,MINUTE=38,SECOND=59,MILLISECOND=203,ZONE_OFFSET=10800000,DST_OFFSET=0], jcr:createdBy=sling-event, sling:resourceType=slingevent:Job, slingevent:eventId=2018/10/3/16/38/fa67a921-cc59-4097-953a-a6e69ff5b718_92, event.timed.id=/etc/workflow/instances/server0/2018-10-03/test-model_99/workItems/node1_etc_workflow_instances_server0_2018-10-03_test-model_99_1538573934194, event.job.application=fa67a921-cc59-4097-953a-a6e69ff5b718, event.job.retries=10, com.adobe.granite.workflow.console.timeout.job=com.adobe.granite.workflow.job.TimeoutJob#29a9a2f7, event.job.started.time=java.util.GregorianCalendar[time=1538573939376,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/Minsk",offset=10800000,dstSavings=0,useDaylight=false,transitions=69,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=9,WEEK_OF_YEAR=40,WEEK_OF_MONTH=1,DAY_OF_MONTH=3,DAY_OF_YEAR=276,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=4,HOUR_OF_DAY=16,MINUTE=38,SECOND=59,MILLISECOND=376,ZONE_OFFSET=10800000,DST_OFFSET=0], jcr:primaryType=slingevent:Job, event.job.retrycount=0, :sling:jobs:asynchandler=org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper$1#8f1e51d, event.job.topic=com/adobe/granite/workflow/timeout/job}, topic=com/adobe/granite/workflow/timeout/job, path=/var/eventing/jobs/assigned/fa67a921-cc59-4097-953a-a6e69ff5b718/com.adobe.granite.workflow.timeout.job/2018/10/3/16/38/fa67a921-cc59-4097-953a-a6e69ff5b718_92, jobId=2018/10/3/16/38/fa67a921-cc59-4097-953a-a6e69ff5b718_92]
03.10.2018 16:38:59.443 *DEBUG* [sling-threadpool-7e90cbd1-c78f-4aff-add9-eba2c792e8fe-(apache-sling-job-thread-pool)-22-Granite Workflow Timeout Queue(com/adobe/granite/workflow/timeout/job)] com.adobe.granite.workflow.core.job.TimeoutHandler process timeout job for work item /etc/workflow/instances/server0/2018-10-03/test-model_99/workItems/node1_etc_workflow_instances_server0_2018-10-03_test-model_99
03.10.2018 16:38:59.701 *INFO* [sling-threadpool-7e90cbd1-c78f-4aff-add9-eba2c792e8fe-(apache-sling-job-thread-pool)-22-Granite Workflow Timeout Queue(com/adobe/granite/workflow/timeout/job)] etc.workflow.scripts.test-timeout-handler$ecma
Test timeout handler /etc/workflow/scripts/test-timeout-handler.ecma is called
I was trying to print a document for one of my games but the page viewer couldn't see the printer so I checked the print spooler service
C:\WINDOWS\system32>sc qc spooler
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\WINDOWS\System32\spoolsv.exe
LOAD_ORDER_GROUP : SpoolerGroup
TAG : 0
DISPLAY_NAME : Print Spooler
DEPENDENCIES : RPCSS
: http
SERVICE_START_NAME : LocalSystem
C:\WINDOWS\system32>sc query spooler
SERVICE_NAME: spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1068 (0x42c)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>
And tried to start it, then this happened
C:\WINDOWS\system32>net start spooler
System error 1068 has occurred.
The dependency service or group failed to start.
C:\WINDOWS\system32>
Ok so I checked the dependencies
C:\WINDOWS\system32>sc qc rpcss
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: rpcss
TYPE : 20 WIN32_SHARE_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\WINDOWS\system32\svchost.exe -k rpcss
LOAD_ORDER_GROUP : COM Infrastructure
TAG : 0
DISPLAY_NAME : Remote Procedure Call (RPC)
DEPENDENCIES : RpcEptMapper
: DcomLaunch
SERVICE_START_NAME : NT AUTHORITY\NetworkService
C:\WINDOWS\system32>sc query rpcss
SERVICE_NAME: rpcss
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>
Ok RPCSS is good, next one
C:\WINDOWS\system32>sc qc http && sc query http
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: http
TYPE : 1 KERNEL_DRIVER
START_TYPE : 3 DEMAND_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : system32\drivers\HTTP.sys
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : HTTP Service
DEPENDENCIES :
SERVICE_START_NAME :
SERVICE_NAME: http
TYPE : 1 KERNEL_DRIVER
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1009 (0x3f1)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>
OK seeing it stopped I tried to start it again
C:\WINDOWS\system32>net start http
System error 1009 has occurred.
The configuration registry database is corrupt.
C:\WINDOWS\system32>
So I run SFC to try and fix this BUT...
C:\WINDOWS\system32>sfc /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection did not find any integrity violations.
C:\WINDOWS\system32>
A fat lot of help this is, it can't even fix something so inherently wrong...
So this is where I ask the community for help, I don't know what to do past this point. Help is very much appreciated.
In my case, I had a sub-key under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\SslBindingInfo that was missing information. i.e. all the keys such as 0.0.0.0:40015 have values like "AppId","DefaultFlags", etc.
I had one that had no values under this key. I deleted that "empty" key and HTTP was able to start up.
I have been struggling this problem lately and couldn’t find any solution for that. So, I’d appreciate if you could really look into this.
There is a target website which runs JQuery when I click on a specific button. When I connect to the signals of QWebView and QNetworkAccessManager, I see the it hangs loading jquery_modules.min_22190.js. I have no clue why this happens.
Here is a minimal code that you can try and see: https://www.dropbox.com/s/4rooelcjbcl9qus/minimal_webview.zip
Last thing that I see in the logs:
finished "Unknown error" , code: 0 QUrl( "http://www2.thewebsite.be/nl/js/jquery/jquery_modules.min_22190.js" )
Header 1 = "Date" : "Sat, 26 Jul 2014 08:50:55 GMT"
Header 2 = "Server" : "Apache"
Header 3 = "X-Frame-Options" : "SAMEORIGIN"
Header 4 = "Cache-Control" : "max-age=604800"
Header 5 = "Expires" : "Sat, 02 Aug 2014 08:50:55 GMT"
Header 6 = "Vary" : "Accept-Encoding,User-Agent"
Header 7 = "Content-Encoding" : "gzip"
Header 8 = "P3P" : "CP='NOI DSP COR PSAo PSDo'"
Header 9 = "Keep-Alive" : "timeout=5, max=200"
Header 10 = "Connection" : "Keep-Alive"
Header 11 = "Content-Type" : "text/html; charset=iso-8859-15"
Thanks a lot in advance,
I have solved the issue by moving to Qt 5.3. The above mentioned problem is not reproducible there.
I have double and triple checked and my code snippet is in the home page (http://www.eventridersassociation.org.uk/index.html). But GA refuses to recognize it.
The page simply does a timed redirect to a Wordpress site (I have tried without timeout):
<!DOCTYPE html>
<html>
<head>
<title>Redirect</title>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6484009-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
Loading.
<script type="text/javascript">
setTimeout(function() {
window.location = "http://eventridersassociation.org.uk/members/index.php"
}, 1000);
</script>
</body>
</html>
Can anyone see what I am doing wrong?
I know you got it working on the first URL, but on the site you redirect to, you are calling the analytics script twice. Once correctly, and once without an ID. Are you using a plugin called "Cookie Control" or something like that? It's injected a second GA script in the footer of your site, but didn't set any of the variables. I would disable that plugin if I were you.
Here is the debug info for your tracking script on the original /index.html page:
_gaq.push processing "_setAccount" for args: "[UA-6484009-3]":
_gaq.push processing "_trackPageview" for args: "[]":
Track Pageview
Tracking beacon sent!
utmwv=5.4.2d&utms=8&utmn=350399410&utmhn=eventridersassociation.org.uk&utmcs=UTF-8&utmsr=1440x900&utmvp=1440x287&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=11.7%20r700&utmdt=Event%20Riders%20Association%20%7C%20We%20Are%20One%20sport%20%E2%80%A6%20One%20Voice&utmhid=1248347118&utmr=http%3A%2F%2Fwww.eventridersassociation.org.uk%2Findex.html&utmp=%2Fmembers%2F&utmht=137…15147996%2Fgetting-tracking-not-installed-from-google-analytics%3B&utmu=q~
Account ID : UA-6484009-3
Page Title : Event Riders Association | We Are One sport … One Voice
Host Name : eventridersassociation.org.uk
Page : /members/
Referring URL : http://www.eventridersassociation.org.uk/index.html
Hit ID : 1248347118
Visitor ID : 922109071
Session Count : 1
Session Time - First : Thu Jun 13 2013 02:15:23 GMT-0500 (CDT)
Session Time - Last : Thu Jun 13 2013 02:15:23 GMT-0500 (CDT)
Session Time - Current : Thu Jun 13 2013 02:15:23 GMT-0500 (CDT)
Campaign Time : Thu Jun 13 2013 02:15:23 GMT-0500 (CDT)
Campaign Session : 1
Campaign Count : 1
Campaign Source : stackoverflow
Language : en-us
Encoding : UTF-8
Flash Version : 11.7 r700
Java Enabled : true
Screen Resolution : 1440x900
Browser Size : 1440x287
Color Depth : 24-bit
Ga.js Version : 5.4.2d
Cachebuster : 350399410
And here is the debug info on the page you redirected to:
_gaq.push processing "_setAccount" for args: "[UA-6484009-3]":
_gaq.push processing "_trackPageview" for args: "[]":
Track Pageview
Tracking beacon sent!
utmwv=5.4.2d&utms=9&utmn=1819301630&utmhn=eventridersassociation.org.uk&utmcs=UTF-8&utmsr=1440x900&utmvp=1425x279&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=11.7%20r700&utmdt=Event%20Riders%20Association%20%7C%20We%20Are%20One%20sport%20%E2%80%A6%20One%20Voice&utmhid=238588836&utmr=-&utmp=%2Fmembers%2F&utmht=1371108346526&utmac=UA-6484009-3&utmcc=__utma%3D89671247.922109071.1371107723.1371107723.1371107723.1%3B%2B__utmz%3D89671247.1371107723.1.1.utmcsr%3Dstackoverflow.com%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2Fquestions%2F15147996%2Fgetting-tracking-not-installed-from-google-analytics%3B&utmu=q~
Account ID : UA-6484009-3
Page Title : Event Riders Association | We Are One sport … One Voice
Host Name : eventridersassociation.org.uk
Page : /members/
Referring URL : -
Hit ID : 238588836
Visitor ID : 922109071
Session Count : 1
Session Time - First : Thu Jun 13 2013 02:15:23 GMT-0500 (CDT)
Session Time - Last : Thu Jun 13 2013 02:15:23 GMT-0500 (CDT)
Session Time - Current : Thu Jun 13 2013 02:15:23 GMT-0500 (CDT)
Campaign Time : Thu Jun 13 2013 02:15:23 GMT-0500 (CDT)
Campaign Session : 1
Campaign Count : 1
Campaign Source : stackoverflow
Language : en-us
Encoding : UTF-8
Flash Version : 11.7 r700
Java Enabled : true
Screen Resolution : 1440x900
Browser Size : 1425x279
Color Depth : 24-bit
Ga.js Version : 5.4.2d
Cachebuster : 1819301630