Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invitation not working #30

Closed
sidneydemoraes opened this issue Aug 31, 2018 · 8 comments
Closed

Invitation not working #30

sidneydemoraes opened this issue Aug 31, 2018 · 8 comments

Comments

@sidneydemoraes
Copy link

Hello.
I already setup SMTP to the docker image but I can't say if it's working.
The main issue here is: whenever I try to invite someone to my team, the screen goes full blank without any error notice (nor on screen, nor on js console).

@ayr-ton
Copy link

ayr-ton commented Aug 31, 2018

@sidneydemoraes There's any log on the Docker container or from the dotnet daemon that is running?

@sidneydemoraes
Copy link
Author

@ayr-ton Apparently not.

@ayr-ton
Copy link

ayr-ton commented Aug 31, 2018

@sidneydemoraes
Copy link
Author

sidneydemoraes commented Aug 31, 2018

I managed to access the logs with docker logs -f. Here it is:

	fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0]
	  An unhandled exception has occurred: Could not find a part of the path '/app/EmailTemplates/InviteNewOrganisationUser.txt'.
	System.IO.DirectoryNotFoundException: Could not find a part of the path '/app/EmailTemplates/InviteNewOrganisationUser.txt'.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at System.IO.File.ReadAllText(String path)
   at QueryTree.Controllers.TeamController.SendOrganisationInviteEmail(String fromEmail, String inviteEmail, Boolean inviteeAlreadyRegistered) in /build/Web/Controllers/TeamController.cs:line 490
   at QueryTree.Controllers.TeamController.Invite(PermissionViewModel viewModel) in /build/Web/Controllers/TeamController.cs:line 258
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextResourceFilter>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeFilterPipelineAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.<Invoke>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>d__6.MoveNext()

@sidneydemoraes
Copy link
Author

@dand4 @ayr-ton Apparently it is a problem with the Docker image.
I created a new image based on yours and added the EmailTemplates folder from your git repo to /app and now invitation is working properly.

d4nt added a commit that referenced this issue Sep 19, 2018
The docker image was missing the EmailTemplates folder.
Also corrected an issue with the docker docs
@d4nt
Copy link
Contributor

d4nt commented Sep 19, 2018

@sidneydemoraes @ayr-ton Thanks for your help in figuring this out. I've updated the Docker image to fix this.

@d4nt d4nt closed this as completed Sep 19, 2018
@d0v1k
Copy link

d0v1k commented Aug 2, 2019

still not working with latest docker image
how can i fix?

@d4nt
Copy link
Contributor

d4nt commented Aug 2, 2019

@d0v1k have you set the smtp email settings? Check docs/mail.md, you can set config settings using the -e option when running the docker image, see: docs/docker.md#override-configuration-defaults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants