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

passwd: authentication token manipulation error #635

Closed
De30 opened this issue Aug 21, 2018 · 24 comments
Closed

passwd: authentication token manipulation error #635

De30 opened this issue Aug 21, 2018 · 24 comments
Labels

Comments

@De30
Copy link

De30 commented Aug 21, 2018

Hi, could you help me deal with this error. After trying to install your virtual machine on a new server (Ubuntu 18.04) I can not finish the installation, I get an error message
passwd: authentication token manipulation error
passwd: password unchanged
enter

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

Hmm, yeah I saw that yesterday too... Need to figure out what's wrong.

@enoch85 enoch85 added the bug label Aug 21, 2018
@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

Steps to reproduce

  1. Run the startup script
  2. Choose to install
  • Fail2ban
  • Adminer (but answer no due to HTTP/2)
  1. Full Text Search

The this happens:

[FULL TEXT SEARCH INSTALLED]
 rm -f /var/scripts/fulltextsearch.sh
+ read -r -u 9 choice
+ rm -f results
+ clear

+ printf '\e[0m\n'

++ cut -d, -f1
++ getent group sudo
++ cut -d: -f4
+ echo 'For better security, change the system user password for [daniel]'
For better security, change the system user password for [daniel]
+ any_key 'Press any key to change password for system user...'
+ local 'PROMPT=Press any key to change password for system user...'
++ printf '\e[0;32mPress any key to change password for system user...\e[0m'
+ read -r -p 'Press any key to change password for system user...' -n1 -s
Press any key to change password for system user.../dev/fd/63: line 687: read: read error: 0: Resource temporarily unavailable
+ echo

+ true
++ getent group sudo
++ cut -d: -f4
++ cut -d, -f1
+ sudo passwd daniel
Enter new UNIX password: 
passwd: Authentication token manipulation error
passwd: password unchanged
+ true

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

@morph027 Seems to have something to do by the any_key function... I think. Haven't tested.

Do you have time to have a quick look?

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

@morph027 No need, think I found the cause. Just committed to master. Will test it soon.

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

Nope, didn't fix it... Hmm. Will keep looking. Seems only to happen when you install Full Text Search. Can you confirm that @De30 ?

@De30
Copy link
Author

De30 commented Aug 21, 2018

Yes, of course, I'll try it today and let you know. Thank you

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

@morph027 It complains about line 687 which indeed is the any_key function.

https://github.com/nextcloud/vm/blob/master/lib.sh#L687

@De30
Copy link
Author

De30 commented Aug 21, 2018

yes indeed, if you do not install Full Text Search then everything is fine

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

@Ark74 Hmmm

yes indeed, if you do not install Full Text Search then everything is fine

Just tested myself to install ALL apps separately, the only time it failed was with Full Text Search. Please help me debug this.

@Ark74
Copy link
Collaborator

Ark74 commented Aug 21, 2018

The latest version of Full Text Search is having issues (because of the update 0.99) , installing a new instance and updating will fail @daita would know more.

What I can add is that seems the read only rest configuration is not well recognized, special notice on "\Forbidden403Exception" part.

Options: []
Memory: 39 MB
┌─ Indexing  ────
│ Provider: Files                Account: User
│ Action: indexChunk
│ Document: 
│ Info: httpd/unix-directory
│ Title: 
│ Content size: 
│ Result: 
└──
┌─ Status ────
│ Progress:      0/2308   done
│ Error:    168/168
│ Exception: Elasticsearch\Common\Exceptions\Forbidden403Exception
│ Message: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
│ 
│ 
│ Index: files:43059
└──
## f:first error ## h/j:prec/next error ## d:delete error ## l:last error
## q:quit ## p:pause

Maybe we could open a issue at FTS itself to follow up.

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

Will try not to index and see what happens. I'll be back soon when I've tested.

@ArtificialOwl
Copy link
Member

The only issue I had lately with readonlyrest is : https://forum.readonlyrest.com/t/elasticsearch-6-3-cluster-not-coming-up-after-installing-latest-plugin/645

Could it be related ?

@ArtificialOwl
Copy link
Member

Also @enoch85 & @Ark74, which one of you will be at the conf ? :)

@Ark74
Copy link
Collaborator

Ark74 commented Aug 21, 2018

Here the test,

occ fulltextsearch:test
 
.Testing your current setup:  
Creating mocked content provider. ok  
Testing mocked provider: get indexable documents. (2 items) ok  
Loading search platform. (Elasticsearch) ok  
Testing search platform. ok  
Locking process ok  
Removing test. ok  
Pausing 3 seconds 1 2 3 ok  
Initializing index mapping. ok  
Indexing generated documents. fail  
Error detected, unlocking process ok 
                                                                                                                                                                                                          
  [OCA\FullTextSearch\Exceptions\DatabaseException]                                                                                                                                                       
  An exception occurred while executing 'INSERT INTO `oc_fulltextsearch_indexes` (`owner_id`, `provider_id`, `document_id`, `source`, `err`, `message`, `status`, `options`, `indexed`) VALUES(?, ?, ?,   
  ?, ?, ?, ?, ?, ?)' with params ["user1", "test_provider", "license", "", 2, "[{\"message\":\"blocked by: [FORBIDDEN\\\/12\\\/index read-only \\\/ allow delete (api)];\",\"exception\":\"Elasticsearch  
  \\\\Common\\\\Exceptions\\\\Forbidden403Exception\",\"severity\":3},{\"message\":\"blocked by: [FORBIDDEN\\\/12\\\/index read-only \\\/ allow delete (api)];\",\"exception\":\"Elasticsearch\\\\Common  
  \\\\Exceptions\\\\Forbidden403Exception\",\"severity\":3}]", 12, "[]", 1534872680]:                                                                                                                     
  SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'license' for column 'document_id' at row 1                                                                                     
                                                                                                                                                                                                          

fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY]

@Ark74
Copy link
Collaborator

Ark74 commented Aug 21, 2018

Conf?

Also @enoch85 & @Ark74, which one of you will be at the conf ? :)

Where?

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

Yup confirmed: When removing the indexing of the files, everything works as expected, so FTS is broken. Will comment out the indexing for now.

@daita Please let me know when this issue is fixed.

@ArtificialOwl
Copy link
Member

Berlin, this week end ? Nextcloud 2018

Also: nextcloud/fulltextsearch#361 (fixed)

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

Berlin, this week end ? Nextcloud 2018

yes, I'll go on Thursday and be there until Saturday. Will you come?

@Ark74
Copy link
Collaborator

Ark74 commented Aug 21, 2018

Ohh, really? already?
Wow time flies, no sorry I wasn't aware, besides I'm really full, have fun!
Maybe 2019

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

@daita Will the cron.php take care of indexing even if it's not done from start? In that case we can skip it as it's prune to error out anyway.

@ArtificialOwl
Copy link
Member

So @enoch85 is the one to talk about the VM ?
I have a workshop on fulltextsearch saturday afternoon.

no, the cron will only do something after a first index is complete

@ArtificialOwl
Copy link
Member

Hint; if you don't reset the index, the cron will think that an earlier version of FTS already complete the index

@enoch85
Copy link
Member

enoch85 commented Aug 21, 2018

So @enoch85 is the one to talk about the VM ?

Yup, I'm scheluded for around 12:00 something something.

Hint; if you don't reset the index,

We don't reset any index in the VM scripts, we only do the first index.

@ArtificialOwl
Copy link
Member

The issue with the database is when you do the ./occ full:test
The issue about readonlyrest/Forbidden, I have no clue about it.

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

No branches or pull requests

4 participants