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

Unable to change password on 1.39.1 #1592

Closed
meepmeep opened this issue Oct 25, 2022 · 0 comments
Closed

Unable to change password on 1.39.1 #1592

meepmeep opened this issue Oct 25, 2022 · 0 comments
Labels
bug Something isn't working fixed in dev Fixed in the dev branch

Comments

@meepmeep
Copy link

I was investigating issue #1585 and tried a brand new installation of umami with docker & mysql-latest (btw #1585 is still occuring in this version)

On my brand new install, I tried to change my password and got this error message:

image

Log from docker console :

yarn run v1.22.19                                                                                                                                                                                                                                                            
$ npm-run-all check-db update-tracker start-server                                                                                                                                                                                                                           
$ node scripts/check-db.js                                                                                                                                                                                                                                                   
✓ DATABASE_URL is defined.                                                                                                                                                                                                                                                   
✓ Database connection successful.                                                                                                                                                                                                                                            
✓ Database tables found.                                                                                                                                                                                                                                                     
Prisma schema loaded from prisma/schema.prisma                                                                                                                                                                                                                               
Datasource "db": MySQL database "umami" at "10.0.0.103:3306"                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                             
4 migrations found in prisma/migrations                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                             
Database schema is up to date!                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                             
✓ Database is up to date.                                                                                                                                                                                                                                                    
$ node scripts/update-tracker.js                                                                                                                                                                                                                                             
$ node server.js                                                                                                                                                                                                                                                             
Listening on port 3000                                                                                                                                                                                                                                                       
PrismaClientValidationError: Unknown arg `password` in where.password for type accountWhereUniqueInput.                                                                                                                                                                      
Argument data: Got invalid value 1 on prisma.updateOneaccount. Provided Int, expected accountUpdateInput or accountUncheckedUpdateInput:                                                                                                                                     
type accountUpdateInput {                                                                                                                                                                                                                                                    
  username?: String | StringFieldUpdateOperationsInput                                                                                                                                                                                                                       
  password?: String | StringFieldUpdateOperationsInput                                                                                                                                                                                                                       
  isAdmin?: Boolean | BoolFieldUpdateOperationsInput                                                                                                                                                                                                                         
  createdAt?: DateTime | NullableDateTimeFieldUpdateOperationsInput | Null                                                                                                                                                                                                   
  updatedAt?: DateTime | NullableDateTimeFieldUpdateOperationsInput | Null                                                                                                                                                                                                   
  accountUuid?: String | StringFieldUpdateOperationsInput                                                                                                                                                                                                                    
  website?: websiteUpdateManyWithoutAccountNestedInput                                                                                                                                                                                                                       
}                                                                                                                                                                                                                                                                            
type accountUpdateInput {                                                                                                                                                                                                                                                    
  username?: String | StringFieldUpdateOperationsInput                                                                                                                                                                                                                       
  password?: String | StringFieldUpdateOperationsInput                                                                                                                                                                                                                       
  isAdmin?: Boolean | BoolFieldUpdateOperationsInput                                                                                                                                                                                                                         
  createdAt?: DateTime | NullableDateTimeFieldUpdateOperationsInput | Null                                                                                                                                                                                                   
  updatedAt?: DateTime | NullableDateTimeFieldUpdateOperationsInput | Null                                                                                                                                                                                                   
  accountUuid?: String | StringFieldUpdateOperationsInput                                                                                                                                                                                                                    
  website?: websiteUpdateManyWithoutAccountNestedInput                                                                                                                                                                                                                       
}                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                             
    at Document.validate (/app/node_modules/@prisma/client/runtime/index.js:28989:20)                                                                                                                                                                                        
    at serializationFn (/app/node_modules/@prisma/client/runtime/index.js:31900:19)                                                                                                                                                                                          
    at runInChildSpan (/app/node_modules/@prisma/client/runtime/index.js:25102:12)                                                                                                                                                                                           
    at PrismaClient._executeRequest (/app/node_modules/@prisma/client/runtime/index.js:31907:31)                                                                                                                                                                             
    at consumer (/app/node_modules/@prisma/client/runtime/index.js:31834:23)                                                                                                                                                                                                 
    at /app/node_modules/@prisma/client/runtime/index.js:31839:51                                                                                                                                                                                                            
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)                                                                                                                                                                                                                
    at /app/node_modules/@prisma/client/runtime/index.js:31839:29                                                                                                                                                                                                            
    at runInChildSpan (/app/node_modules/@prisma/client/runtime/index.js:25102:12)                                                                                                                                                                                           
    at PrismaClient._request (/app/node_modules/@prisma/client/runtime/index.js:31836:22) {                                                                                                                                                                                  
  clientVersion: '4.5.0'                                                                                                                                                                                                                                                     
}     
@mikecao mikecao added bug Something isn't working fixed in dev Fixed in the dev branch labels Oct 25, 2022
dannyhines pushed a commit to dannyhines/umami that referenced this issue Nov 9, 2022
dannyhines pushed a commit to dannyhines/umami that referenced this issue Nov 9, 2022
* Fixed issue with realtime page rendering.

* fix auth, add pg extension (umami-software#1596)

* Fixed change password issue. API refactoring. Closes umami-software#1592.

* Fixed account lookup.

* Fixed issue with accessing user dashboards. Closes umami-software#1590

* fix sort on dashboard (umami-software#1600)

Co-authored-by: Brian Cao <brian@umami.is>
benithors pushed a commit to benithors/umami that referenced this issue Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev Fixed in the dev branch
Projects
None yet
Development

No branches or pull requests

2 participants