I wanted to change the password for one of my QNAP ISCSI luns, but there really is no way to do that with the current software.
Fortunately you can recover your password by using ssh to login to your qnap, and look in /etc/config/iscsi_trgt.conf. Search for CHAPPasswd. The CHAP user is stored there as well, in case you forgot that too.
I hope this saves you a couple hours of headaches that I experienced recently.
If you get the dreaded error:
from html5lib import sanitizer, serializer, treebuilders, treewalkers
ImportError: cannot import name sanitizer
Never fear. The fix is easy once you know how. Add this exact line to your requirements file and redeploy:
This will fix it.
If you’re getting an error like this:
... in reverse_dict
If your urls.py file contains a reverse() call, that is the reason. You’re calling reverse before all the urls are loaded and everything is ready. You need to use reverse_lazy() instead.:
Change the reverse() call into a reverse_lazy() call and the problem will go away!
Create this stored procedure:
CREATE OR REPLACE FUNCTION "reset_sequence" (tablename text, columnname text, sequence_name text) RETURNS "pg_catalog"."void" AS
EXECUTE 'SELECT setval( ''' || sequence_name || ''', ' || '(SELECT MAX(' || columnname || ') FROM ' || tablename || ')' || ')';
$body$ LANGUAGE 'plpgsql';
Then, run this query:
select table_name || '_' || column_name || '_seq', reset_sequence(table_name, column_name, table_name || '_' || column_name || '_seq') from information_schema.columns where column_default like 'nextval%';