Redmine Internal error when clicking on Create button - redmine

I am getting redmine internal error page whenever I try to create a new issue with Tracker type "CODE REVIEW".AS soon as i click on CREATE button its redirected to "Internal Error Page"..But the issue will be assigned to the assignee.
And also if I create New Tracker,I am facing the same problem whenever I create a New ISsue.
I have not installed any plugin.But still I am getting this problem.Please help me out.
When I saw production log i get below error.Please help me out
Running before_save custom workflows for issue "redmine" (#)
Running before_save custom workflow "Due date Validation"
Running before_save custom workflow "Is Assignee?"
Running before_save custom workflow "Automating % Done ratio"
Finished running before_save custom workflows for issue "redmine" (#).
Rendered mailer/_issue.text.erb (2.1ms)
Rendered mailer/issue_add.text.erb within layouts/mailer (3.1ms)
Rendered mailer/_issue.html.erb (0.6ms)
Rendered mailer/issue_add.html.erb within layouts/mailer (1.3ms)
Email delivery error: getaddrinfo: Name or service not known
Running after_save custom workflows for issue "redmine" (#47061)
Running after_save custom workflow "Due date Validation"
Running after_save custom workflow "Is Assignee?"
Running after_save custom workflow "Automating % Done ratio"
Finished running after_save custom workflows for issue "redmine" (#47061).
Running before_save custom workflows for issue "redmine" (#47061)
Running before_save custom workflow "Due date Validation"
Running before_save custom workflow "Is Assignee?"
User workflow error: Whoa!! You are not the assignee
Completed 500 Internal Server Error in 841.2ms
NoMethodError (undefined method `[]' for nil:NilClass):
app/controllers/issues_controller.rb:164:in `block in create'
app/controllers/issues_controller.rb:152:in `create'

Related

Workflow error in Sharepoint Online

I am having this error in Sharepoint Online when I run a workflow to create an Enterprise Project from a list
The details of the error was
Retrying last request. Next attempt scheduled in less than one minute.
Details of last request: HTTP Forbidden to
https://xxxxxxxxxxxxxx/sites/pwa/_api/ProjectServer/WorkflowActivities/CreateProjectFromListItem(webId='923e34ac-7127-4707-b6e1-83ac3235ef67',listId='a352ed9d-3b99-4405-b2a3-2fc3c2678335',itemId='2',eptId='09fa52b4-059b-4527-926e-99f9be96437a')
Correlation Id: f9d2736f-8a66-4425-a5cc-cb30adf980ff Instance Id:
3e7695ad-5913-4bb0-b6c8-cbf29e4e877a
PJClientCallableException: GeneralSecurityAccessDenied
GeneralSecurityAccessDenied
I tried changing my workflow to just send an email to check whether there is something wrong with the workflow but emailing work
I suspect it has something to do with the workflow engine service user (if there is such a thing) trying to create and Enterprise Project.
I and the admin so I have the full access but for some reason the workflow is running as a different user on my behalf.
It is a simple workflow and it looks like this
And the list looks like this with its mapping with the Project Web App Fields
Any reasons why this is happening?
How do I resolve the issue?
If its a workflow service user what is the user that I can give full access to creating Enterprise Projects
Since this is SharePoint Online we are talking about it leverages Azure Workflows. Impersonation is discontinued in SharePoint Designer so you will have to use the App Step, to do that you will need to first to activate Allow workflow to use app permissions feature, then create App Step action where you will place your create project action.
You can find more information on how to add App Step as well as how to setup permissions here:
App step in SharePoint Designer
(MSDN) Create a workflow with elevated permissions by using the SharePoint 2013 Workflow platform
Do you have schedule template associated with your EPT?
if yes, then you have to include that template to that group's category within selected projects section.
Go to the category of that user's group, select the project template and include it into selected projects.
You can find steps and details in this blog by my colleague: http://www.epmpartners.com.au/blog/sharepoint-list-workflow-failing-when-creating-project-from-list-item/
hope this helps.

SharePoint 2013 cancel Workflow but page workflow status unchanged

I have created a custom workflow solution that I deployed to my SharePoint publishing site.
Using CSOM and C#, I have written some server side code that will cancel a running workflow on a publishing page. I know my code works because the workflow completes and I have sent a payload message to my workflow which shows up in the logs.
But when I open my site in a browser and navigate to the /pages/forms/Allitems.aspx page, I see a list of pages within that site.
So far so good.
But a closer look shows the approval status column of draft.
Why is that as I thought canceling the workflow would update the page's approval status column automatically.
Tom
Cancelling a workflow does not change the approval status column. You can first update the status, and then cancel your workflow.

Koudoku - subscriptions for listings that are owned by users, rails 4, no method error

Rails n00b here. I'm attempting to integrate the Koudoku gem (seems to be a great way to add subscription billing with stripe) into a rails 4 app; I have listings, that are owned by users, however each listing has it's own subscription. Therefore a user has many listings, but a listing has only one subscription
Following the readme instructions at https://github.com/andrewculver/koudoku , I ran rails g koudoku:install listing (attaching to listings vs users)
I loaded 3 pricing plans into my stripe account and loaded the API keys into the rails app
When I attempt to go to the pricing page (main_app.pricing_path ), it's throwing the following error:
NoMethodError in Koudoku::SubscriptionsController#index
undefined method `subscription' for #<User:0x007fc61f79ecc0>
The index action in the subscriptions controller is:
def index
# don't bother showing the index if they've already got a subscription.
if current_owner and current_owner.subscription.present?
redirect_to koudoku.edit_owner_subscription_path(current_owner, current_owner.subscription)
end
# Load all plans.
#plans = ::Plan.order(:display_order).all
# Don't prep a subscription unless a user is authenticated.
unless no_owner?
# we should also set the owner of the subscription here.
#subscription = ::Subscription.new({Koudoku.owner_id_sym => #owner.id})
# e.g. #subscription.user = #owner
#subscription.send Koudoku.owner_assignment_sym, #owner
end
end
Ideas of where I'm going wrong? Anyone run across a beginners guide to using this gem? Thanks!
There is an open issue with the way rails 4 installs the routes. Looks like there is a pull request pending. https://github.com/andrewculver/koudoku/issues/53
I think your issue is installing on listing and not user. I have not had any luck with doing that.
Try it on users and see if that helps.

Sitecore: We experienced a technical difficulty while processing your request. Your data may not have been correctly saved

It is throwing the following exception after submitting the data using Web form created after it is upgraded from Web Form for Marketers 2.1.0 to 2.3.0. Followed the step by step upgrade instructions.
Exception in the Log file:
6772 22:24:13 WARN Web Forms for Marketers: an exception: has occured while trying to execute an action.
Error/Warning on the UI:
Sitecore: We experienced a technical difficulty while processing your request. Your data may not have been correctly saved
However, it is saving the data to database, and when I view the report for the same form using Web Form Reports, nothing is shown.
Action Method : Save to Database
The reading/creating counters warning is covered by adding the 'Performance log users' role to the account used by the application pool as previously answered here. It seems unlikely that this is causing the WFFM error, but it's worthing getting rid of the warning, restart IIS, and try again.
This is related to smtp setup on Send Email Message action which is used on webforms for marketers.
Refer:
http://blog.arkesystems.com/post/2010/05/18/SiteCoreWeb-Forms-for-Marketers-Send-Email.aspx

Need to perform some custom actions when a site collection gets created using remote event receiver in sharepoint 2013 apps

There is no any "SiteCreated" or "SiteCreating" type of event receiver in app model. But, I want to trigger some events on the site collection creation. There are some web level events in the app model but I need some sort of functionality which will execute when any site collection gets created.
Will this be possible through remote event receiver on "WebProvisioned" event??
Please share your thoughts on this.
Lalit, you can not deploy custom actions on site collection creatiion event in App model because app it just a web which is created when app is deployed on your web or site collection.
So, if you want to deploy your custom actions, do it in App Installation event.
Open properties of your app project and set "true" to "Handle App Installed" event.
Rishi is correct. Those type of events are not supported by apps.
You can use Remote Event Receiver using Apps model (hosted-provider), but I do not know you have a method to capture the event of a site crearcion...