Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cant edit notes #70

Open
bolavefasfas opened this issue Nov 9, 2023 · 12 comments
Open

I cant edit notes #70

bolavefasfas opened this issue Nov 9, 2023 · 12 comments

Comments

@bolavefasfas
Copy link

I have deployed it but cant edit the notes
I can create new notes but unable to edit them any fix on this ?
All the ports are open in my vps by default using vps ip and not domain

@7ekhed
Copy link

7ekhed commented Dec 5, 2023

Hey there G,

Are you trying to access the site from an external domain? like a notes.yourdomain.com?

If so, in the scripts/config.sh, where it's setting up the outline-config and is asking for the IP Address and Port, ensure that

PORT:3000

is set for port, and that you have

IPADDRESS: notes.yourdomain.com:443

You MUST specify the external port there apparently, and must put the external access IP in there

For Nginx configuration, if you have it set to 0.0.0.0 for the container itself to host the IP of the container network, then specify the public IP as stated above, but if you're using internal like 192.168.1.100, make sure you specify the 443 or 80 port afterwards, like 192.168.1.100:443, it will not work right unless all is notated correctly

~

If this did not help, are you able to describe your configuration and upload / screenshot your config.sh to see if I am able to assist? I had problems with this for a week due to how I was trying to host it, but now that it's hosted on my domain and is working perfectly, I have a better understanding of how to troubleshoot this repository

@steveberger-eww
Copy link

Hey @7ekhed i'm going to hijack this post. I installed everything as in your previous response on another issue

I'm currently having the same problem as @bolavefasfas where i can create new workspaces and documents in them but other than the headline i cant edit anything else.

here is my config.sh if it is helping you

# Outline Wiki 0.72.0-1 supports local file storage.
# Specify what storage system to use. Possible value is one of "s3" or "local".
# For "local", the avatar images and document attachments will be saved on local disk. 
FILE_STORAGE=local
# The url used to vist this web site.
URL=https://subdomain.url.com
# The default interface language. See translate.getoutline.com for a list of
# available language codes and their rough percentage translated.
DEFAULT_LANGUAGE=en_US
# https://docs.djangoproject.com/en/2.2/ref/settings/#language-code
LANGUAGE_CODE=en-us
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TIME_ZONE=UTC
FORCE_HTTPS=false
# The domain in you email.
# Comma separated list of domains to be allowed (optional).
# If not set, the first user's domain is allowed by default.
ALLOWED_DOMAINS=

# Docker image version
OUTLINE_VERSION=0.72.0-3
POSTGRES_VERSION=15.2-alpine3.17
MINIO_VERSION=RELEASE.2022-11-17T23-20-09Z
MINIO_MC_VERSION=RELEASE.2022-11-17T21-20-39Z

# Nginx
# The nginx bind ip and port.
# If you use ip address to access outline, this ip and port should be same as the URL.
# If this server behind a proxy(nginx), you can bind to `127.0.0.1`.
HTTP_IP={IP of server where everything is on}:443
HTTP_PORT_IP=3000

# Docker
# If you server behind a proxy(nginx), and the proxy created by docker. You can use the proxy's network. Set the `NETWORKS` to proxy's network name, and set `NETWORKS_EXTERNAL` to `true` .
# The sample config for host nginx can be find in `config/sample/nginx_outline.conf`.
NETWORKS=outlinewiki
NETWORKS_EXTERNAL=false


(removed the minio keys just for posting here)

do you know what tf i'm doing wrong? :(

@steveberger-eww
Copy link

ok quick update - i got it to work (somehow) but when creating a new document i always have to wait a minute or two for it to be able to be editable.

also what i haven't got to work is file uploading and it always say's "connection to server lost" in the bottom right corner.
maybe something up with the database container? thanks a lot G!

Hey @7ekhed i'm going to hijack this post. I installed everything as in your previous response on another issue

I'm currently having the same problem as @bolavefasfas where i can create new workspaces and documents in them but other than the headline i cant edit anything else.

here is my config.sh if it is helping you

# Outline Wiki 0.72.0-1 supports local file storage.
# Specify what storage system to use. Possible value is one of "s3" or "local".
# For "local", the avatar images and document attachments will be saved on local disk. 
FILE_STORAGE=local
# The url used to vist this web site.
URL=https://subdomain.url.com
# The default interface language. See translate.getoutline.com for a list of
# available language codes and their rough percentage translated.
DEFAULT_LANGUAGE=en_US
# https://docs.djangoproject.com/en/2.2/ref/settings/#language-code
LANGUAGE_CODE=en-us
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TIME_ZONE=UTC
FORCE_HTTPS=false
# The domain in you email.
# Comma separated list of domains to be allowed (optional).
# If not set, the first user's domain is allowed by default.
ALLOWED_DOMAINS=

# Docker image version
OUTLINE_VERSION=0.72.0-3
POSTGRES_VERSION=15.2-alpine3.17
MINIO_VERSION=RELEASE.2022-11-17T23-20-09Z
MINIO_MC_VERSION=RELEASE.2022-11-17T21-20-39Z

# Nginx
# The nginx bind ip and port.
# If you use ip address to access outline, this ip and port should be same as the URL.
# If this server behind a proxy(nginx), you can bind to `127.0.0.1`.
HTTP_IP={IP of server where everything is on}:443
HTTP_PORT_IP=3000

# Docker
# If you server behind a proxy(nginx), and the proxy created by docker. You can use the proxy's network. Set the `NETWORKS` to proxy's network name, and set `NETWORKS_EXTERNAL` to `true` .
# The sample config for host nginx can be find in `config/sample/nginx_outline.conf`.
NETWORKS=outlinewiki
NETWORKS_EXTERNAL=false


(removed the minio keys just for posting here)

do you know what tf i'm doing wrong? :(

@7ekhed
Copy link

7ekhed commented Feb 16, 2024

ok quick update - i got it to work (somehow) but when creating a new document i always have to wait a minute or two for it to be able to be editable.

also what i haven't got to work is file uploading and it always say's "connection to server lost" in the bottom right corner. maybe something up with the database container? thanks a lot G!

Hey @7ekhed i'm going to hijack this post. I installed everything as in your previous response on another issue
I'm currently having the same problem as @bolavefasfas where i can create new workspaces and documents in them but other than the headline i cant edit anything else.
here is my config.sh if it is helping you

# Outline Wiki 0.72.0-1 supports local file storage.
# Specify what storage system to use. Possible value is one of "s3" or "local".
# For "local", the avatar images and document attachments will be saved on local disk. 
FILE_STORAGE=local
# The url used to vist this web site.
URL=https://subdomain.url.com
# The default interface language. See translate.getoutline.com for a list of
# available language codes and their rough percentage translated.
DEFAULT_LANGUAGE=en_US
# https://docs.djangoproject.com/en/2.2/ref/settings/#language-code
LANGUAGE_CODE=en-us
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TIME_ZONE=UTC
FORCE_HTTPS=false
# The domain in you email.
# Comma separated list of domains to be allowed (optional).
# If not set, the first user's domain is allowed by default.
ALLOWED_DOMAINS=

# Docker image version
OUTLINE_VERSION=0.72.0-3
POSTGRES_VERSION=15.2-alpine3.17
MINIO_VERSION=RELEASE.2022-11-17T23-20-09Z
MINIO_MC_VERSION=RELEASE.2022-11-17T21-20-39Z

# Nginx
# The nginx bind ip and port.
# If you use ip address to access outline, this ip and port should be same as the URL.
# If this server behind a proxy(nginx), you can bind to `127.0.0.1`.
HTTP_IP={IP of server where everything is on}:443
HTTP_PORT_IP=3000

# Docker
# If you server behind a proxy(nginx), and the proxy created by docker. You can use the proxy's network. Set the `NETWORKS` to proxy's network name, and set `NETWORKS_EXTERNAL` to `true` .
# The sample config for host nginx can be find in `config/sample/nginx_outline.conf`.
NETWORKS=outlinewiki
NETWORKS_EXTERNAL=false


(removed the minio keys just for posting here)

do you know what tf i'm doing wrong? :(

Wassup G, sorry I didn't see this ping, I'll hit you in the morning with a config comparison to see if I can help 🙏

@steveberger-eww
Copy link

ok quick update - i got it to work (somehow) but when creating a new document i always have to wait a minute or two for it to be able to be editable.
also what i haven't got to work is file uploading and it always say's "connection to server lost" in the bottom right corner. maybe something up with the database container? thanks a lot G!

Hey @7ekhed i'm going to hijack this post. I installed everything as in your previous response on another issue
I'm currently having the same problem as @bolavefasfas where i can create new workspaces and documents in them but other than the headline i cant edit anything else.
here is my config.sh if it is helping you

# Outline Wiki 0.72.0-1 supports local file storage.
# Specify what storage system to use. Possible value is one of "s3" or "local".
# For "local", the avatar images and document attachments will be saved on local disk. 
FILE_STORAGE=local
# The url used to vist this web site.
URL=https://subdomain.url.com
# The default interface language. See translate.getoutline.com for a list of
# available language codes and their rough percentage translated.
DEFAULT_LANGUAGE=en_US
# https://docs.djangoproject.com/en/2.2/ref/settings/#language-code
LANGUAGE_CODE=en-us
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TIME_ZONE=UTC
FORCE_HTTPS=false
# The domain in you email.
# Comma separated list of domains to be allowed (optional).
# If not set, the first user's domain is allowed by default.
ALLOWED_DOMAINS=

# Docker image version
OUTLINE_VERSION=0.72.0-3
POSTGRES_VERSION=15.2-alpine3.17
MINIO_VERSION=RELEASE.2022-11-17T23-20-09Z
MINIO_MC_VERSION=RELEASE.2022-11-17T21-20-39Z

# Nginx
# The nginx bind ip and port.
# If you use ip address to access outline, this ip and port should be same as the URL.
# If this server behind a proxy(nginx), you can bind to `127.0.0.1`.
HTTP_IP={IP of server where everything is on}:443
HTTP_PORT_IP=3000

# Docker
# If you server behind a proxy(nginx), and the proxy created by docker. You can use the proxy's network. Set the `NETWORKS` to proxy's network name, and set `NETWORKS_EXTERNAL` to `true` .
# The sample config for host nginx can be find in `config/sample/nginx_outline.conf`.
NETWORKS=outlinewiki
NETWORKS_EXTERNAL=false


(removed the minio keys just for posting here)

do you know what tf i'm doing wrong? :(

Wassup G, sorry I didn't see this ping, I'll hit you in the morning with a config comparison to see if I can help 🙏

all good pls don't stress yourself at all, just glad someone knows this stuff much better then i do! take all the time you need m8! 🙏

@7ekhed
Copy link

7ekhed commented Feb 16, 2024

@steveberger-eww Wassup G,

Main differences I am seeing,

URL=https://subdomain.url.com should be | URL=https://subdomain.url.com:443
HTTP_IP=0.0.0.0
HTTP_PORT_IP=8888

Please try modifying these and running "make stop" "make clean-data"(ONLY IF YOU HAVE NO DATA, JUST USE "make clean" IF YOU HAVE DATA) then "make install" / "make start" depending on if you clean-data or clean, and go to subdomain.url.com, or ip.of.the.host:8888

@bolavefasfas
Copy link
Author

bolavefasfas commented Feb 21, 2024

@steveberger-eww Wassup G,

Main differences I am seeing,

URL=https://subdomain.url.com should be | URL=https://subdomain.url.com:443 HTTP_IP=0.0.0.0 HTTP_PORT_IP=8888

Please try modifying these and running "make stop" "make clean-data"(ONLY IF YOU HAVE NO DATA, JUST USE "make clean" IF YOU HAVE DATA) then "make install" / "make start" depending on if you clean-data or clean, and go to subdomain.url.com, or ip.of.the.host:8888

I wasnt able to get it to work on a vps though was able to get it work in lxc container hosted locally on my server with cloudflare domains without any issue.

If their is any way to make it work on vps it would be great let me know.

Update I was able to get it to work on tailscale ip and local ip and not on domain 🥲

@bolavefasfas
Copy link
Author

bolavefasfas commented Feb 28, 2024


FILE_STORAGE=local

URL=http://outline.mydomain.com:443
DEFAULT_LANGUAGE=en_US
LANGUAGE_CODE=en-us
TIME_ZONE=UTC
FORCE_HTTPS=false
ALLOWED_DOMAINS=mydoamin.com
OUTLINE_VERSION=0.74.0
POSTGRES_VERSION=15.2-alpine3.17
MINIO_VERSION=RELEASE.2022-11-17T23-20-09Z
MINIO_MC_VERSION=RELEASE.2022-11-17T21-20-39Z
HTTP_IP=10.0.0.23
HTTP_PORT_IP=8888
NETWORKS=outlinewiki
NETWORKS_EXTERNAL=false
MINIO_ACCESS_KEY=
MINIO_SECRET_KEY=
OIDC_CLIENT_SECRET=
OUTLINE_SECRET_KEY=
OUTLINE_UTILS_SECRET=
DJANGO_SECRET_KEY=

IN the above configration I want able to edit notes. can create just can't edit
My internal IP is 10.0.0.23 for vps
I am using nginx proxy manager

Though I am able to get the editing feature on if I use

URL=http://tailscale-ip:8888
HTTP_IP=tailscale-ip
HTTP_PORT_IP=8888

Can you help me set the values properly for the domain

@7ekhed
Copy link

7ekhed commented Feb 28, 2024


FILE_STORAGE=local

URL=http://outline.mydomain.com:443
DEFAULT_LANGUAGE=en_US
LANGUAGE_CODE=en-us
TIME_ZONE=UTC
FORCE_HTTPS=false
ALLOWED_DOMAINS=mydoamin.com
OUTLINE_VERSION=0.74.0
POSTGRES_VERSION=15.2-alpine3.17
MINIO_VERSION=RELEASE.2022-11-17T23-20-09Z
MINIO_MC_VERSION=RELEASE.2022-11-17T21-20-39Z
HTTP_IP=10.0.0.23
HTTP_PORT_IP=8888
NETWORKS=outlinewiki
NETWORKS_EXTERNAL=false
MINIO_ACCESS_KEY=
MINIO_SECRET_KEY=
OIDC_CLIENT_SECRET=
OUTLINE_SECRET_KEY=
OUTLINE_UTILS_SECRET=
DJANGO_SECRET_KEY=

IN the above configration I want able to edit notes. can create just can't edit My internal IP is 10.0.0.23 for vps I am using nginx proxy manager

Though I am able to get the editing feature on if I use

URL=http://tailscale-ip:8888 HTTP_IP=tailscale-ip HTTP_PORT_IP=8888

Can you help me set the values properly for the domain

Yo G,

There's a lot of differences I'm seeing here. My entire understanding of this is based on this GitHub repository and how it functions, it appears that you're using a higher version in an entirely different format to execute your outline server,

What I can tell you is that I don't have any allowed domains, my IP is 0.0.0.0, they're supposed to be a port 3000 that outline uses, though your website.com:443 is correct It is HTTPS, and not HTTP if you're using port 443, and I'm using Django auth in a local environment.

If you have the config.sh from this setup with your predefined variables, can you please paste that here so I may go over that and try and find a solution with you?

@bolavefasfas
Copy link
Author


FILE_STORAGE=local

URL=http://outline.mydomain.com:443
DEFAULT_LANGUAGE=en_US
LANGUAGE_CODE=en-us
TIME_ZONE=UTC
FORCE_HTTPS=false
ALLOWED_DOMAINS=mydoamin.com
OUTLINE_VERSION=0.74.0
POSTGRES_VERSION=15.2-alpine3.17
MINIO_VERSION=RELEASE.2022-11-17T23-20-09Z
MINIO_MC_VERSION=RELEASE.2022-11-17T21-20-39Z
HTTP_IP=10.0.0.23
HTTP_PORT_IP=8888
NETWORKS=outlinewiki
NETWORKS_EXTERNAL=false
MINIO_ACCESS_KEY=
MINIO_SECRET_KEY=
OIDC_CLIENT_SECRET=
OUTLINE_SECRET_KEY=
OUTLINE_UTILS_SECRET=
DJANGO_SECRET_KEY=

IN the above configration I want able to edit notes. can create just can't edit My internal IP is 10.0.0.23 for vps I am using nginx proxy manager
Though I am able to get the editing feature on if I use
URL=http://tailscale-ip:8888 HTTP_IP=tailscale-ip HTTP_PORT_IP=8888
Can you help me set the values properly for the domain

Yo G,

There's a lot of differences I'm seeing here. My entire understanding of this is based on this GitHub repository and how it functions, it appears that you're using a higher version in an entirely different format to execute your outline server,

What I can tell you is that I don't have any allowed domains, my IP is 0.0.0.0, they're supposed to be a port 3000 that outline uses, though your website.com:443 is correct It is HTTPS, and not HTTP if you're using port 443, and I'm using Django auth in a local environment.

If you have the config.sh from this setup with your predefined variables, can you please paste that here so I may go over that and try and find a solution with you?

Tried the config you send I wasnt able to edit notes still

I will send my whole configraton or maybe show you my setup how should we connect ?

@ghost
Copy link

ghost commented Mar 20, 2024

@steveberger-eww Wassup G,

Main differences I am seeing,

URL=https://subdomain.url.com should be | URL=https://subdomain.url.com:443 HTTP_IP=0.0.0.0 HTTP_PORT_IP=8888

Please try modifying these and running "make stop" "make clean-data"(ONLY IF YOU HAVE NO DATA, JUST USE "make clean" IF YOU HAVE DATA) then "make install" / "make start" depending on if you clean-data or clean, and go to subdomain.url.com, or ip.of.the.host:8888

Hey my man,

sorry for the late response but thank you very much for helping me there! :) Fixed most of the troubles for me!

Also i finally got editing to work (and be published) by just adding two lines of code in my nginx config file.
From my understanding there was something messing up websockets but i got it to work now with these lines of code:

        location / {
        proxy_pass http://127.0.0.1:8888/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        **proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";**
    }

in case anyone else also get's a no server connection error!

now i have to figure out, why the hell it gives me a 401 when trying to log out but i'm on it :p

@bolavefasfas
Copy link
Author

@steveberger-eww Wassup G,
Main differences I am seeing,
URL=https://subdomain.url.com should be | URL=https://subdomain.url.com:443 HTTP_IP=0.0.0.0 HTTP_PORT_IP=8888
Please try modifying these and running "make stop" "make clean-data"(ONLY IF YOU HAVE NO DATA, JUST USE "make clean" IF YOU HAVE DATA) then "make install" / "make start" depending on if you clean-data or clean, and go to subdomain.url.com, or ip.of.the.host:8888

Hey my man,

sorry for the late response but thank you very much for helping me there! :) Fixed most of the troubles for me!

Also i finally got editing to work (and be published) by just adding two lines of code in my nginx config file. From my understanding there was something messing up websockets but i got it to work now with these lines of code:

        location / {
        proxy_pass http://127.0.0.1:8888/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        **proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";**
    }

in case anyone else also get's a no server connection error!

now i have to figure out, why the hell it gives me a 401 when trying to log out but i'm on it :p

Do you know how to get it working with https://nginxproxymanager.com/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants