Dynalon / Rainy

Simple Tomboy/Tomdroid cloud/syncing server. Written in C# with AngularJS web frontend. Supports SQLite & Postgres Backends.
http://dynalon.github.io/Rainy
GNU Affero General Public License v3.0
88 stars 15 forks source link

Cannot create new users #25

Closed igorsantos07 closed 11 years ago

igorsantos07 commented 11 years ago

First of all: I'm amazed to see we now have a web interface!!!!

So, I'm trying to use Rainy 0.5.0 since suddenly 0.2.3 stopped working for me. I just downloaded the zipball. However, I noticed the users are not created in the settings file anymore. Using the web interface, however, I can't add new users either. Here's the log with the request:

13/10/14_06:53:00.323 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request at: /api/admin/user/
Deserialized data (JSV):
{
    Username: testuser,
    Password: 12345678,
    EmailAddress: bla@gmail.com,
    IsVerified: True,
    IsActivated: True
}
13/10/14_06:53:00.323 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter - Received request headers:

13/10/14_06:53:00.324 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    Host: direct.igorsantos.com.br:8662
13/10/14_06:53:00.324 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    Connection: keep-alive
13/10/14_06:53:00.324 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    Content-Length: 113
13/10/14_06:53:00.324 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    Accept: application/json, text/javascript, */*; q=0.01
13/10/14_06:53:00.325 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    Origin: https://direct.igorsantos.com.br:8662
13/10/14_06:53:00.325 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    X-Requested-With: XMLHttpRequest
13/10/14_06:53:00.325 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.66 Safari/537.36
13/10/14_06:53:00.325 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    Content-Type: application/json; charset=UTF-8
13/10/14_06:53:00.326 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    Referer: https://direct.igorsantos.com.br:8662/admin/
13/10/14_06:53:00.326 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    Accept-Encoding: gzip,deflate,sdch
13/10/14_06:53:00.326 [DEBUG] Rainy.WebService.RequestLogFilterAttribute->RequestFilter -    Accept-Language: en-US,en;q=0.8
13/10/14_06:53:00.326 [DEBUG] Rainy.ErrorHandling.ExceptionHandler->HandleException - Error trying to resolve Service 'Rainy.WebService.Management.Admin.UserService' or one of its autowired dependencies (see inner exception for details).
13/10/14_06:53:00.327 [DEBUG] Rainy.ErrorHandling.ExceptionHandler->LogExceptionDetails - at Funq.Container.ResolveImpl<Rainy.WebService.Management.Admin.UserService> (string,bool) <0x0010b>
at Funq.Container.ResolveNamed<Rainy.WebService.Management.Admin.UserService> (string) <0x00033>
at Funq.Container.Resolve<Rainy.WebService.Management.Admin.UserService> () <0x00027>
at (wrapper dynamic-method) object.lambda_method (System.Runtime.CompilerServices.Closure,Funq.Container) <0x00024>
at ServiceStack.ServiceHost.ContainerResolveCache.CreateInstance (System.Type,bool) <0x000f8>
at ServiceStack.ServiceHost.ContainerResolveCache.CreateInstance (System.Type) <0x00013>
at ServiceStack.ServiceHost.ServiceController/<>c__DisplayClass15.<RegisterNServiceExecutor>b__13 (ServiceStack.ServiceHost.IRequestContext,object) <0x0004e>
at ServiceStack.ServiceHost.ServiceController.Execute (object,ServiceStack.ServiceHost.IRequestContext) <0x0009b>
at ServiceStack.WebHost.Endpoints.EndpointHost.ExecuteService (object,ServiceStack.ServiceHost.EndpointAttributes,ServiceStack.ServiceHost.IHttpRequest,ServiceStack.ServiceHost.IHttpResponse) <0x000a1>
at ServiceStack.WebHost.Endpoints.Support.EndpointHandlerBase.ExecuteService (object,ServiceStack.ServiceHost.EndpointAttributes,ServiceStack.ServiceHost.IHttpRequest,ServiceStack.ServiceHost.IHttpResponse) <0x0002b>
at ServiceStack.WebHost.Endpoints.RestHandler.GetResponse (ServiceStack.ServiceHost.IHttpRequest,ServiceStack.ServiceHost.IHttpResponse,object) <0x0006b>
at ServiceStack.WebHost.Endpoints.RestHandler.ProcessRequest (ServiceStack.ServiceHost.IHttpRequest,ServiceStack.ServiceHost.IHttpResponse,string) <0x002b0>

And my settings.conf:

{
    ListenUrl: "https://direct.igorsantos.com.br:8662/",
    DataPath: "/var/tomboy/",
    Backend: "filesystem",
    Postgre: {
        Username: "rainy",
        Password: "rainy",
        Host:  "localhost",
        Port: 5432
    },
    AdminPassword: "tomboyadmin",
    AllowSignup: false,
    RequireModeration: true,
    Development: false
}
Dynalon commented 11 years ago

The filesystem bacend is deprecated and will be removed in future versions. For Rainy >= 0.5.0 you could use the sqlite backend, which will still work with a single file and does not require a network database.