when creating site
Traceback (most recent call last): File "/home/frappe/frappe-bench/commands/new.py", line 59, in <module> main() File "/home/frappe/frappe-bench/commands/new.py", line 25, in main reinstall=False, File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 69, in _new_site make_site_dirs() File "/home/frappe/frappe-bench/apps/frappe/frappe/installer.py", line 274, in make_site_dirs os.makedirs(dir_path) File "/home/frappe/frappe-bench/env/lib/python3.7/os.py", line 213, in makedirs makedirs(head, exist_ok=exist_ok) File "/home/frappe/frappe-bench/env/lib/python3.7/os.py", line 223, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: './private'
You missed mkdir installation/sites
before?
Try
sudo chown -R $USER:$USER installation/sites
Just to note.
- user must not be root
- user must be in docker group
- process runs as uid/gid 1000:1000. i.e.
sites
must be owned by non root 1000:1000
thank you
i’ve found another error
Created user _da39a3ee5e6b4b0d
Created database _da39a3ee5e6b4b0d
Granted privileges to user _da39a3ee5e6b4b0d and database _da39a3ee5e6b4b0d
Starting database import...
Imported from database /home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/framework_mariadb.sql
Installing frappe...
Updating DocTypes for frappe : [========================================]
Updating country info : [========================================]
Set Administrator password:
Re-enter Administrator password:
Installing erpnext...
Updating DocTypes for erpnext : [====================== ]Updating DocTypes for erpnext : [========================================]
Updating customizations for Address
*** Scheduler is disabled ***
Traceback (most recent call last):
File "/home/frappe/frappe-bench/commands/new.py", line 59, in <module>
main()
File "/home/frappe/frappe-bench/commands/new.py", line 30, in main
site_config = get_site_config(site_name)
File "/home/frappe/frappe-bench/commands/check_connection.py", line 114, in get_site_config
with open('{site_name}/site_config.json'.format(site_name=site_name)) as site_config_file:
I tried to recreate the error. I couldn’t.
-
docker-compose ... up
without creating installation/sites
- fail at new
- change ownership
sudo chown -R revant:revant installation/sites
(my user is revant. don’t copy)
docker exec -it ... docker-entrypoint.sh new
- successfully created the site
What are the contents of your sites
directory and its sub directories?
Have you set any environment variable for SITE_NAME?
the new command in README uses environment variables. If you copy pasted it, do set them manually.
Try going through README carefully once again?
This time create the installation/sites
as non root user and also follow other notes in README.
Installing frappe…
Updating DocTypes for frappe : [========================================]
Updating country info : [========================================]
Set Administrator password:
Re-enter Administrator password:
Installing erpnext…
Updating DocTypes for erpnext : [========================================]
Updating customizations for Address
*** Scheduler is disabled ***
ERROR 1045 (28000): Access denied for user ‘-p’@‘172.29.0.6’ (using password: NO )
ERROR 1045 (28000): Access denied for user ‘-p’@‘172.29.0.6’ (using password: NO )
ERROR 1045 (28000): Access denied for user ‘-p’@‘172.29.0.6’ (using password: NO )
I’m not getting this error?
Did you set environment variables?
docker exec -it \
-e "SITE_NAME=$SITE_NAME" \
-e "DB_ROOT_USER=$DB_ROOT_USER" \
-e "MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD" \
-e "ADMIN_PASSWORD=$ADMIN_PASSWORD" \
-e "INSTALL_APPS=erpnext" \
<project-name>_erpnext-python_1 docker-entrypoint.sh new
you’ll have to set SITE_NAME, DB_ROOT_USER, MYSQL_ROOT_PASSWORD, ADMIN_PASSWORD as environment variables.
or just substitute them in docker exec command.
Also what are the contents of sites/{sitename}
i think the file are not created properly due to initial permission issue you faced.
i think it can’t read site_config.json and read db_password and db_name from it
i’ve made new installation for all
reached to
Created user _1d0150594a38877a
Created database _1d0150594a38877a
Granted privileges to user _1d0150594a38877a and database _1d0150594a38877a
Starting database import…
Imported from database /home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/framework_mariadb.sql
Installing frappe…
Updating DocTypes for frappe : [========================================]
Updating country info : [========================================]
Installing erpnext…
Updating DocTypes for erpnext : [========================================]
Updating customizations for Address
*** Scheduler is disabled ***
docker@ns556062:/root/erp/frappe_docker$
i’ve tried more and more still reached to *** Scheduler is disabled ***
any idea ??
Edit sites/common_site_config.json to enable scheduler and disable maintenance mode.
Your site is successfully installed.
I assume you are trying all this on local machine.
And like everyone else who miss the point where it is told site name must be ending with .localhost
when trying locally. So create one more site now called test.localhost
Enter your site name ending with .localhost in browser and go through wizard. Wizard will fail many times. Keep retrying.
how to enable scheduler
contant of common_site_config is
{
“db_host”: “mariadb”,
“redis_cache”: “redis://redis-cache:6379”,
“redis_queue”: “redis://redis-queue:6379”,
“redis_socketio”: “redis://redis-socketio:6379”,
“socketio_port”: 9000
}
note my site name is site.localhost
Looking at your config, scheduler is already enabled
Visit the site in browser
Example http://site1.localhost
result
Internal Server Error
also if i used by curl commad
What was the sitename you created?
result was same
Internal Server Error
also if i used by curl commad
Somehow I can’t reproduce anything you’re facing.
What’s in your sites directory?
If you care. Post formatted logs of all containers.
apps.txt app_versions.json assets common_site_config.json site.localhost
What’s in site.localhost directory?
Please post formatted logs of containers
locks private public site_config.json task-logs
looks for sql container some thing error
2020-04-02 7:37:06 13 [Warning] Access denied for user ‘frappe’@‘172.29.0.3’ (using password: NO)
2020-04-02 7:37:46 17 [Warning] Access denied for user '_120c5eb3e6c64983'@'172.29.0.9' (using password: YES)
2020-04-02 7:38:46 18 [Warning] Access denied for user ‘_120c5eb3e6c64983’@‘172.29.0.9’ (using password: YES)
2020-04-02 7:39:07 19 [Warning] Access denied for user ‘_120c5eb3e6c64983’@‘172.29.0.10’ (using password: YES)
2020-04-02 7:39:07 20 [Warning] Access denied for user ‘_120c5eb3e6c64983’@‘172.29.0.10’ (using password: YES)
2020-04-02 7:39:10 21 [Warning] Access denied for user ‘_120c5eb3e6c64983’@‘172.29.0.10’ (using password: YES)
2020-04-02 7:39:46 22 [Warning] Access denied for user ‘_120c5eb3e6c64983’@‘172.29.0.9’ (using password: YES)
2020-04-02 7:40:46 23 [Warning] Access denied for user ‘_120c5eb3e6c64983’@‘172.29.0.9’ (using password: YES)
2020-04-02 7:41:46 24 [Warning] Access denied for user ‘_120c5eb3e6c64983’@‘172.29.0.9’ (using password: YES)
2020-04-02 7:42:46 25 [Warning] Access denied for user ‘_120c5eb3e6c64983’@‘172.29.0.9’ (using password: YES)
by the way
[erpnext_frappe-schedule_1] is 172.29.0.9