Failed to execute supplied script: 04070031 Access Denied - alfresco

I am new in the Alfresco, and I am developing my first project,
I have a user who is approving some requests, on approval some web scripts are going to execute.
But we are getting below error.
org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Exception while invoking TaskListener: 04070032 Failed to execute the supplied script: 04070031 Access Denied. You do not have the appropriate permissions to perform this operation.
It's more than 2 days since I stuck on this error if anyone has an idea please help.

Related

StorageException on resuming Firebase upload task through WorkManager

I'm running a Firebase upload Task through WorkManager. On regular progress updates from UploadTask, I save the session uri in my Shared Preference.
When I switch internet off, Firebase handles the scenario itself and resumes the upload task when internet is turned back on.
But when I power off the phone while firebase is uploading the file and the power on, work manager restarts again and attempts to resume the previous Firebase upload task with last saved session uri and gives the following exception:
E/StorageException: StorageException has occurred.
An unknown error occurred, please check the HTTP result code and inner exception for server response.
Code: -13000 HttpResult: 200
E/StorageException: The server has terminated the upload session
java.io.IOException: The server has terminated the upload session
at com.google.firebase.storage.UploadTask.recoverStatus(com.google.firebase:firebase-storage##16.0.5:354)
at com.google.firebase.storage.UploadTask.run(com.google.firebase:firebase-storage##16.0.5:200)
at com.google.firebase.storage.StorageTask.lambda$getRunnable$7(com.google.firebase:firebase-storage##16.0.5:1106)
at com.google.firebase.storage.StorageTask$$Lambda$12.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:798)
My session uri is saved whenever I get a progress callback from Firebase Upload Task. Maybe thats the problem that I didn't get the latest one when phone was powering off.
Will appreciate if anyone can help identifying the problem here.

Where are errors logged when a DeployR script is called remotely?

I am trying to debug my deployR script which gives a generic error "HTTP 400 Error" / "Bad Request" at the Web application end when it fails.
Is there a way to get DeployR to pass a more informative error to the web application. i.e. Typically whatever error message the underlying R program has thrown at Deployr?
If I do a local execution then DeployR does log these messages to the Console pane. But if the script is called Remotely where does it log these errors? Even if I have a deployr Session open simultaneously the Console does not seem to show anything.
Any ideas or Workarounds?
There is an API to retrieve console output. See https://deployr.revolutionanalytics.com/documents/dev/api-doc/guide/workingprojects.html#projectexecuteconsole

SignalR 2 fails on Azure

I deployed an ASP.NET 5 MVC 6 app on Azure, and ran into this problem with SignalR 2:
when starting connection from client, call to
/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B"name"%3A"gameHub"%7D%5D&_=1460028930688
fails with error 500.
The exception behind error 500 is this:
Exception Details:
System.Security.Cryptography.CryptographicException: The data
protection operation was unsuccessful. This may have been caused by
not having the user profile loaded for the current thread's user
context, which may be the case when the thread is impersonating.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[CryptographicException: The data protection operation was
unsuccessful. This may have been caused by not having the user
profile loaded for the current thread's user context, which may be the
case when the thread is impersonating.]
I read and tried solution suggested at SignalR CryptographicException on AzureWebsites, but id didn't work for me.
As I understand, Azure doesn't allow LoadUserProfile.
Any workaround?
I had the same problem and my fix was to add a call to UseAesDataProtectorProvider() before my call to MapSignalR(). Hope this helps someone.

Cache exception in symfony2 project

When I excute my code many time I get
server error 500 in the console
and no data has charged when I check the error I get cache error and then I have to refresh the page to get data. I don't know why I get this exception!!!
can someone help me and tell me how can I avoid this exception in symfony :
class: "Symfony\Component\Debug\Exception\ContextErrorException"
message: "Warning: rename(C:\wamp\www\myproject\app\cache\dev/doctrine/orm/Proxies\__CG__DefaultAppBundleEntityService.php.568513d40be3a3.02053948,C:\wamp\www\myproject\app\cache\dev/doctrine/orm/Proxies\__CG__DefaultAppBundleEntityService.php): "
Help!
unfortunatly I can't resolve this problem can someone help me please ????!!!
Sometimes all queries run without problem or errors but if I refresh the page it may that I get this error for one or more requests
Please check the user and owner of the file. assign them the same user and owner which are running php apache on your system. This worked for me.

Report Viewer after deploying on server

An error occurred during local report processing.
The definition of the report 'D:\Inetpub\Vhosts\skyhighindustries.net\httpdocs\Sky\Report3.rdlc' is invalid.
An unexpected error occurred in Report Processing.
Access to the path 'D:\temp\expression_host_7fc1e8bf42474ccfb1dbd1c05ceaa6e5.dll' is denied.
Please help i m getting this error after deploying my report on server
Make sure that the identity that your application is using in IIS has at least browser access to your reporting services instance.

Resources