Library does not exist

Hello @vikram_chauhan,

Go in frappe-bench/sites/ directory. there one file apps.txt. open the file and remove library line.
then go back to the frappe-bench directory and follow below steps.
bench clear-cache
bench start
I hope this will be helpful to you.

Seems memory issue! Whats the configuration? RAM, Swap Area?

thanks @yogendrasinh … sorry It didn’t worked. there was no library line in apps.txt ,but from currentsite.txt i removed ‘library’. but while clearing cache through … bench clear-cache… error occured:

india@india-To-be-filled-by-O-E-M:~/frappe-bench$ bench clear-cache
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/india/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 91, in
main()
File “/home/india/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 17, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/india/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/india/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 34, in clear_cache
frappe.connect(site)
File “/home/india/frappe-bench/apps/frappe/frappe/init.py”, line 170, in connect
local.db = Database(user=db_name or local.conf.db_name)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/local.py”, line 72, in getattr
raise AttributeError(name)
AttributeError: conf

and when …i did bench start… error changes from “libraray does not exist” to "0.0.0.0 does not exist
" as i am runing site on 0.0.0.0:8090

@saurabh6790 RAM 3.8 GiB

Okay! :slight_smile:

Please share screenshot for frappe-bench/sites

@saurabh6790

Is testing1 is your site name?

yes testing1 is site name.

Try with this,

bench setup procfile
bench use testing1
bench build
bench start

@saurabh6790 .it worked . thanks.
But on localhost error coming is :: OperationalError: (1045, “Access denied for user ‘ac250e4a00ff3144’@‘localhost’ (using password: YES)”)

i tried:: mysql -u root -p , it is opening correctly.

Seems something went wrong while site creation.

1. delete site
bench drop-site testing1

2. create new site and install erpnext-app

bench new-site new-site-name
bench install-app erpnext

3. Add site to currentsite.txt

bench use new-site-name
bench build

4.
bench start

@saurabh6790 bench drop-site testing1

using above command… but error occured “mysql_exceptions.OperationalError: (1045, “Access denied for user ‘ac250e4a00ff3144’@‘localhost’ (using password: YES)”)”.

Hmm, okay!

Continue from step2 and remove testing1 folder rm -rf testing1

@saurabh6790… extremely sorry again for the trouble. I did

india@india-To-be-filled-by-O-E-M:~/frappe-bench/sites$ sudo rm -rf testing1

india@india-To-be-filled-by-O-E-M:~/frappe-bench$ bench new-site viki
MySQL root password:

Creation of your site - viki failed because MariaDB is not properly
configured to use the Barracuda storage engine.
Please add the settings below to MariaDB’s my.cnf, restart MariaDB then
run bench new-site viki again.

[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

================================================================================
india@india-To-be-filled-by-O-E-M:~/frappe-bench$ sudo nano /etc/my.cnf

india@india-To-be-filled-by-O-E-M:~/frappe-bench$ sudo systemctl start mysql.service

india@india-To-be-filled-by-O-E-M:~/frappe-bench$ bench new-site viki
MySQL root password:

Creation of your site - viki failed because MariaDB is not properly
configured to use the Barracuda storage engine.
Please add the settings below to MariaDB’s my.cnf, restart MariaDB then
run bench new-site viki again.

[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

================================================================================

Add above snippet in my.cnf file. Restart mysql and then proceed with new site creation.

my.cnf may be at the location

/etc/my.cnf or /etc/mysql/my.cnf
2 Likes

@saurabh6790

Had done same earlier and now… still error exists. had tried restarting server via …sudo systemctl start mysql.service… several times.

Don’t create my.cnf, search for existing my.cnf and add to it.

@saurabh6790… yes me and @vikram_chauhan did the same . we didnt created new…rather updatefd it via:

sudo nano /etc/my.cnf

But stilll error is not going.

I faced same issue of AttributeError: conf

Turned out that I had to do bench use <<‘<sitename’>>> in dns multi tenancy setup, whereas I had left the curentisite.txt blank.