question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't create a new site

See original GitHub issue

Hi,

I followed the latest instructions to set up a new ERPNext site on a Ubuntu server (20.04 (LTS) x64), and all the containers have been started up successfully, but I failed to create a new site by running the command below, it didn’t give any responses/errors. docker-compose exec backend bench new-site rockerp.co.nz --mariadb-root-password 123 --admin-password admin

image

One thing I’ve noticed is that SSL certificate generation was failed, I have no idea why it was trying to register for the domain frontend-rockerpconz as it’s not a configuration I specified. image

I checked the sites inside the backend container, no sites were created. image

.env

# Reference: https://github.com/frappe/frappe_docker/blob/main/docs/images-and-compose-files.md

FRAPPE_VERSION=v13.24.0

# Only with ERPNext override
ERPNEXT_VERSION=v13.24.0

DB_PASSWORD=123

# Only if you use external database
DB_HOST=
DB_PORT=

# Only if you use external Redis
REDIS_CACHE=
REDIS_QUEUE=
REDIS_SOCKETIO=

# Only with HTTPS override
LETSENCRYPT_EMAIL=rockleeyu@gmail.com

# These environment variables are not required.

# Default value is `$$host` which resolves site by host. For example, if your host is `example.com`,
# site's name should be `example.com`, or if host is `127.0.0.1` (local debugging), it should be `127.0.0.1`.
# This variable allows to override described behavior. Let's say you create site named `mysite`
# and do want to access it by `127.0.0.1` host. Than you would set this variable to `mysite`.
FRAPPE_SITE_NAME_HEADER=

# Default value is `127.0.0.1`. Set IP address as our trusted upstream address.
UPSTREAM_REAL_IP_ADDRESS=

# Default value is `X-Forwarded-For`. Set request header field whose value will be used to replace the client address
UPSTREAM_REAL_IP_HEADER=

# Allowed values are on|off. Default value is `off`. If recursive search is disabled,
# the original client address that matches one of the trusted addresses
# is replaced by the last address sent in the request header field defined by the real_ip_header directive.
# If recursive search is enabled, the original client address that matches one of the trusted addresses is replaced by the last non-trusted address sent in the request header field.
UPSTREAM_REAL_IP_RECURSIVE=

It would be helpful if you guys could try a fresh installation to make sure the whole refactor is actually working.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
a157147899commented, Apr 4, 2022

@revant

First, I didn’t even realise there was such a refactor PR until @vrslev mentioned it in this issue #661, so how am I supposed to mention it when it was PR? Actually, I wouldn’t have followed the latest docs and tried a fresh installation if my previous issue could get resolved.

Second, I understand this is an open-source project and I really appreciate that you guys using your spare time to share this project with everyone, but just remember that most of the people who came here are not intended to make code changes, or they are just simply not able to do it as they may not be familiar with docker enough.

Last, even though I found the docs may have some issues doesn’t mean I have the capability to improve it, and most important thing is that I have no idea what the refactor plan is, you guys probably already have a solid plan in mind, so I would think the best thing I can do is to raise an issue as I am not sure what changes I should make if you need me to submit a PR.

0reactions
revantcommented, Apr 4, 2022

@a157147899 you didn’t comment anything about this when it was a PR? if you wish to fix send a PR?

everyone who tested the PR commented, i made changes as per their comments. Now you can update the base docs if you feel it needs improvement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

You are not allowed to create team sites when you click new ...
Solution · Click the gear icon for the Tools menu, and then click Site settings. · Click Site Permissions. · On the ribbon,...
Read more >
12 October, 2022 - Unable to Create New Sites
12 October, 2022 - Unable to Create New Sites. Known Issue Great News - This issue has been resolved! This issue is now...
Read more >
Can't create a new website - Enjin Forums
I heard support is not very active, but I would like to create a new Enjin site for FFXIV. I just like the...
Read more >
[FIX] When you can't create new Project Sites - PPMBLOG.ORG
1. Navigate to a Project Site that has already been created · 2. Go to “Site Settings” · 3. You are missing the...
Read more >
Not able to create a new organization or site - IBM
User is unable to access Inactive organizations or site because he hasn't the right to do that since Can Access Inactive Sites? option...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found