Page MenuHomePhabricator

Access denied for user 'nadwi'@''
Closed, InvalidPublic


I am facing this error in pywikibot core branch:

Traceback (most recent call last):               
  File "", line 264, in <module>           
    if not main():                               
  File "", line 257, in main               
    run_python_file(filename, [filename] + args, 
argvu, file_package)                             
  File "", line 120, in run_python_file    
  File "./scripts/", line 454, in <modu
  File "./scripts/", line 411, in get_q
    passwd = config.db_password)                 
  File "/usr/lib/python2.7/dist-packages/MySQLdb/", line 81, in Connect                
    return Connection(*args, **kwargs)           
  File "/usr/lib/python2.7/dist-packages/MySQLdb/", line 187, in __init__           
    super(Connection, self).__init__(*args, **kwa
_mysql_exceptions.OperationalError: (1045, "Acces
s denied for user 'nadwi'@'' (using pa
ssword: NO)")                                    
<class '_mysql_exceptions.OperationalError'>     
CRITICAL: Closing network session.

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptFeb 28 2018, 2:41 PM
Xqt added a subscriber: Xqt.Feb 28 2018, 3:50 PM

Seems the access is denied for the user and this is not part of the framework. Also the script which tries to establish the connecton isn't part of the framework. I've no glue how to help in this matter.

Are you on toolforge servers ? If yes, you can find information on, particularly that credentials and user needed to connect to the database are available in the file.

Dalba changed the task status from Open to Stalled.Mar 16 2018, 3:36 AM
JJMC89 changed the task status from Stalled to Open.Apr 1 2018, 7:55 AM
JJMC89 edited projects, added Toolforge, Data-Services; removed Pywikibot.
JJMC89 added a subscriber: JJMC89.

This isn't an issue with Pywikibot. If anything, there is an issue with your credentials on Toolforge.

bd808 closed this task as Invalid.Apr 4 2018, 11:59 PM
bd808 assigned this task to MuhammadShuaib.
bd808 added a subscriber: bd808.

This is a local configuration problem. Database usernames for the Wiki Replicas look like u3642 or s51611. You are passing your Toolforge shell username instead of the correct name from the $HOME/ file.