Jump to content

Kru-x

Community Developer
  • Posts

    242
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Kru-x

  1. 17 minutes ago, tr0910 said:

    Ah OK, thanks for pointing me in the right direction.  Once I can spin up a WP site repeatedly without error, I'll move on to getting NPM to work.

    No worries,

     

    Just remember to start the installation of WP after you got the NPM to work and can connect to the site by your domain. Else WP is going to try to redirect to your internal IP, you gona get the same problem when you are moving your sites if you are not careful. Best is to use a plugin to migrate your whole site, ill use "Duplicator Pro" for moving my sites around when needed.


    Kru-x

  2. 9 minutes ago, tr0910 said:

    Ok, I just deleted the mariaDB passwords from the WP container setup and suddenly it works.  WP is installed and the dashboard is up now. 

     

    Is that what you do with passwords for setup.  Ignore them?

    The 0 in the MariaDB setting is telling the container to not use a password (blank) for the root user, WP is trying to login to the DB with the password 0 that you used as password in hence it didn't work. You can set a password, if other then 0, then you have to add the same password in the WP template.

     

    Kru-x

  3. Just now, tr0910 said:

    I am just trying to get it to communicate in any way.  Maybe something else is wrong?

     

    What is your normal way to get it to work?

    So that was not the problem? I think you might get the "Error establishing a database connection" on a wrong password as it is trying to use the root user for the DB. If not mayby try other ports, 8080 is often used by other containers, but then you should get a fault when starting the container.

     

    Is your settings looking like this? (see attached screen shots)

     

  4. 43 minutes ago, tr0910 said:

    Ok, I have installed WP and MariaDB multiple times to try and get connection going.  I assume this is the best way to start and then bring NPM along later.  I keep getting "Error establishing a database connection"  I have the following in MariaDB

    Host Port 1 :3306

    Key1 : 99

    Key2 : 100

    Key3 : 0

     

    And in WP

    Container port: 8080

    WORDPRESS_DB_HOST: 192.168.13.142:3306

    WORDPRESS_DB_USER: 99

    WORDPRESS_DB_PASSWORD: 0

     

    I've created and recreated the containers multiple times without getting past the database error.  It seems editing the container is no good as that takes me to a http://192.168.13.142:8080/ "Problem with the connection error"

    Each time I create a new mariaDB container and WP container, I call it a new name Wordpress2 and store it in a new appdata folder etc...

     

    What stupid thing am I doing wrong?

     

    WP WORDPRESS_DB_PASSWORD: left blank? 0 in the MB database means no password. Or?

  5. 16 hours ago, thany said:

    It errors for me as well, telling me links aren't supported. Can you please make a version where MongoDB is integrated into the package? This would certainly avert a lot of problems (see above) and would make it easier to get started.

     

    The way I understand Docker, is that a docker should be self-contained. So it should contain everything it needs to run, and only go to the "outside world" for file system storage, and configuration files.

     

    If you are unable to do this, could you at least make an easy to follow "getting started" guide? Docker being Docker, and unRAID being unRAID, it should be more or less identical for nearly everyone.

    Hi thany,

    You are right, I should probably do a "getting started" guide as it all change a few years ago making the --link option redundant and that the unraid team rightfully deleted my MongoDB that was setup for wekan in lieu of the official newer MongoDB container that has different credentials, but its all there in the latest post's how to set it up today. The reason I have not bother too much with it is that wekan is more for companies and organizations that probably would have an IT guy to figure out the setup. For me as a nob, I have moved away from wekan even if it is a nice system. I have gone for simpler systems and more all around like nextcloud (not that NC is a simple system, very powerful) that has the similar functions and more other goodies to choose from. 

     

    As for integrating the MongoDB, not sure if it is a docker out there to do that, but the main reason not to, is that it is better to separate the program from the DB and have two separate instances for easier and safer retention of the data. Most and many containers are doing this and it is just to get the head around it, then most containers are working in the same way with similar setup.


    Kru-x

  6. 11 minutes ago, tr0910 said:

    Hey, @Kru-xthis has me tempted to play with your tools.  I have 3 Wordpress sites in mind that I would run.  All 3 are at different domains.  One is a simple site with minimal data, traffic, and plugins.  Site 2 has several GB of image files in the media folder but still has minimal traffic.  Site 3 is a WooCommerce site with 100GB of image files and paypal and credit card processing and the goodies.  Can I run all 3 on my unRaid server? 

     

    I have Gigibit ethernet from Google Fiber with a single IP address.  The unRaid server is Xeon 2670 based with 64GB ram.

    Hi tr0910,

     

    I have no doubt that they would run smooth and you most likely have a quicker/better setup than many of the providers out there, not knowing yours thought. You'll be surprised of how easy it is, the storage is your's so no problems with file sizes.

     

    The only caution I have is with the credit card processing, not that I think it would be much problem to run it but you might want to be able to track the IP-addresses of your clients or purchasers. I know there is a workaround but never had the need to bother about it, but WP is inside a containers and will only see the IP-address from inside the container. Believe it is a setup in Nginx that can forward the right addresses to inside the container.


    Hope it helps and keep us updated,


    Kru-x

    • Like 1
  7. 8 minutes ago, Alex.b said:

    Hello,

     

    Yes already changed homesite adress and permalink. I just want to move my dev WP website from XAMP on my local computer to unRAID docker.

     

    So I reinstall WP docker and copy files again ?

    Smart move,

    So you already have development site that you want to move, and non of the above working? The "problem" with WP is that all info is stored in the DB and it wont help to just copy the files over, if the site is something you have work on for a while that you don't want to loose the easiest way that I use all the time is to install the brilliant plugin "Duplicator pro" on your development site and compact your whole site and transfer to the root folder and install it again, that will take care of all redirections. You could possibly change the site's url with one of the suggestions in https://www.wpbeginner.com/wp-tutorials/how-to-change-your-wordpress-site-urls-step-by-step/

     

    Hope it helps,

    Kru-x

  8. 18 minutes ago, Alex.b said:

    I have a small problem, when I type 192.168.1.9:4441, I'm redirected to unraid home tab :

    image.png.5b352b6a18027a104c6a9b5f622f1fba.png

     

    Do you have an idea why ?

     

    I can access to /wp-admin/

     

    Thank you

    It's how you installed it and wordpress is directing the home page to :80 port, I assume you are playing with it locally. Try this, login to wp-admin, go to settings and see if you can change the home site address to 192.168.1.9:4441, if you can't change it try to update permalinks, and if still not working delete both MB & WP folders and reinstall again. Let me know what worked, quite common question and I usually just recommend to reinstall. But well give it a go,

    Kru-x

  9. On 7/10/2020 at 12:16 PM, Djoss said:

    And how did you configured your proxy host in NPM ?

    Hi Djoss,

    Sorry to have bothered you, turns out that it is not NPM after all. The problem is strange, I have two servers with the exact same setup and if I have the onlyoffice on one server the other won't talk to it but the same will. And even more odd the one with NPM on it wont talk to to an instance of only office on the same server nor the other one. Don't know what happening!

    Kru-x

  10. On 7/5/2020 at 9:03 AM, Djoss said:

    I don't use this myself, but looking at the provided examples, it seem that web socket support may be needed.  Did you enabled that ?

    I have tried to enable that but still wont work. I am not confident in Nginx and the configs but one setup is talking about that you have to add your .key file to the Document server, NPM uses .pem files. 

     

    Config for just Nginx is looking like this, meybe you can make sense of it:

    # only office doc server

    server {

    listen 443 ssl;

    server_name documentserver.*;

     

    include /config/nginx/ssl.conf;

     

    client_max_body_size 0;


     

    location / {

    include /config/nginx/proxy.conf;

    resolver 127.0.0.11 valid=30s;

    set $upstream_docs OnlyOfficeDocumentServer;

    proxy_pass https://$upstream_docs:443;

    proxy_redirect off;

    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-Host $server_name;

    proxy_set_header X-Forwarded-Proto $scheme;

    }

    }

  11. 2 hours ago, LTM said:

    Forgive me as I am completely new to unRAID so I am probably missing something completely simple.

     

    I am not able to get this container running. 

    I am trying to get the container running behind a reverse proxy (NPM) and have the following settings:2123344659_Annotation2020-07-05175847.png.0e5c7974cd20cab876a69d5479441922.png

     

    I am getting this error:

    
    /usr/bin/docker: links are only supported for user-defined networks.
    See '/usr/bin/docker run --help'.
    The command failed.

    I have tried the various methods for links including 

    • --link mongodb://db
    • --link mongodb://192.168.0.37/db
    • mongodb://db
    • mongodb://192.168.0.37/db

    All of them have resulted with the same error.

     

    My other question will be that I am going to try and transfer my database from another instance (in the process of going from Ubuntu Server with Docker to unRAID) to this one. Is there a way that I can just transfer the database or maybe export it from my old server to the new one? Or would it be best for me to start fresh?

    Hi,

    For Varible MONGO_URL use:  mongodb://192.168.1.121:27017/admin, witch is the admin login for MongoDB. Also if you are behind a revers proxy the varible ROOT_URL should be https://yourdomain.com, else if you are only using it internally it should be http://192.168.0.37:5555

     

    I know you can export from Wekan to another instance, but if you can live without the old todo's and depending on how many, I would start again. Another factor I would personally consider is the requirements and future setup.

     

    I moved away from Wekan myself, not that I don't like it it's brilliant, but it is for professional use "like big organizations" and for my to remember to water my garden or feed the Cat 🙂 is for sure an overkill. I use Nextcloud for my file system and it has a good task manager as a plugin, much of my needs consolidated in to one.


    Kru-x

  12. Gidday,


    Just wonder if someone as manage to connect and got onlyoffice documentserver to work with Ngingx Porxy mananager, and in that case what are your settings, ports in the different containers. Pulling my hair and I suspecct that it is the callback on 443 that is something strange with.

     

    Appreciate any pointers,

     

    Kru-x

  13. HI Djoss,

    I love that you have added this to unraid and I use it for all my proxied containers and the all works mint, EXCEPT one "onlyofficedockument server". Pulling my hair on this one, the manual talks about  X-Forwarded-Proto and X-Forwarded-Host and I suspect it is the call back to 443 that buggers it up, either my settings on the different containers (owncloud, onlyoffice, or NPM). Have you got any clue who to set it up and connect to it? All containers works perfect, I can connect to them all proxied but the ony thin is that I cant connect from nextcloud to the Onyloffice servera and get it to call back.

    Any pointers would be appriciated.

    Kru-x

  14. 7 hours ago, Elembemedia said:

    Hey guys,

     

    I've got MariaDB, Wordpress, and NPM all setup and working except when I load the page it looks like this. What am I doing wrong? 

    829738167_ScreenShot2020-06-20at6_01_52PM.thumb.png.d5d7b7d675c81ef56b0aa620a4d1b315.png

    Did you do a fresh install from your home local address or from you domain address? it’s your permalink that is wrong I guess. If you can, login to wp-admin.php go to settings and permalinks and update them.
     

    Edited: if you have not done anything before you read this, it’s your cookies in your browser. I can see your page properly, 

     

    kru-x

  15. Just now, MrChunky said:

    I deleted the mariaDB folder and word-press folder... Am I missing a 3rd folder to delete?

    Nahh I was thinking NPM but shouldn't be needed, can you reach it from your internal address b4 installing, and as I understand it you still get the wrong redirects even after installing fro your domain? One guy had problem with a setting in NPM using 8080 maybe it is some clash there with another container, but sorry I am a little bit lost on this one and it shouldn't be. If you follow the templates and install from your domain it should be really a easy setup, I have done it on several sites and even now I am playing with a test one to try to replicate your problem but it just work.

  16. 5 minutes ago, MrChunky said:

    Hey Kru-x,

     

    Thanks for the prompt response as usual :)

     

    NPM was being weird... for some reason the certificates always get screwed up for me when I use NPM. I get some sort of cant access the folder with certificates error in the log. Anyways, I switched to linuxserver lets encrypt container, which has been working fine for years... Now I have too many redirects error when I try to go to the root or any non admin pages.

     

    I can reach every admin page on the wp site, if I put in the path directly or navigate within it. I just cannot get the root or the pages to load... I get ERR_TOO_MANY_REDIRECTS, from both inside and outside my LAN. 

     

    I am using domain, I went through the installation process while accessing it with www.example.com. so in the general setting the site url is www.example.com from the begining.

    Yes I can thought the domain, but I have to put in www.example.com/wp-admin to reach it.

    Already did that, that's how I installed it.

    Hmmm,

     

    Have you deleted the Maria DB folder and WP folder in between trying, It looks like it is still trying to redirect you to the internal address. And weird with NPM, it was when I switched to it, mine started to work perfectly. I have all my containers (exposed to internet) trough NPM and I have no problems. The database folder HAS to be deleted in between else the old values is still in the DB. There is a few previous problems like yours that has been solved by starting from scratch and it should be fairly strait forward especially if you can reach the installation from your domain.

     

    So in short delete all 3 folders, install the MariaDB and WP, as per templates, if you can reach the installation of WP with your ip address, just leave it to that (without starting the installation of WP) and try again from NPM and do the installation and ask for a new cert from within.

     

    Hope it helps,

     

    Kru-x

  17. 1 hour ago, MrChunky said:

    I am seeing some really strange behavior... 

     

    I have wordpress setup and working with nginx proxy manager. I can reach all the pages except for the root. When I input the root address e.g. www.example.com I get ERROR_CONNECTION_TIMEOUT and the address displays as www.example.com:8080. The strange thing is that my port for wordpress is not 8080. In fact, none of the used ports are 8080. I was wondering if someone could shine a light on what going on here...

    How did you install WP and are u using a local network or a domain? Guess domain, using NPM. The port is Nginx's (NPM's) internal port that is 8080 and I believe that's why it shows that port if the site can't be found. Can you login to wp-admin? If check in "settings" of the website address, else delete both container and wait to install until you can reach the WP installation from your domain.

     

    Kru-x

  18. 10 hours ago, accordracer said:

    Just installed this plugin and it works great.  Just wondering, How can i run multiple websites with it? 

    As dom1 said, you can fire up as many instances you would like, just do exactly the same as with the first ones, just with different names, ports and storage folders.

     

    Kru-x

  19. 15 hours ago, bar1 said:

     

    plugins and updates work fine though....its only themes

    Sorry I read your email to quick and didn't realize it was only at the themes that didn't work. Its strange, just tried a test site and I have not got that problem. Have you change any settings in "general settings" in WP. Don't think it is a container/unraid problem anyway, it's quite a common problem with WP and is mentioned in several forums.

     

    I would start all over again, delete both folders and reinstall both WP & the DB, when installed go strait to theme and try again. Guess most problems with this is a redirection issue from apache (http server installed in the docker). Happens easily if the settings are wrong in WP.

     

    Hope you solve it and let us know,


    Kru-x

  20. 17 hours ago, dom1 said:

    Hi! I've set up wordpress with this image, mariadb and NPM successfully and I can reach it from my external IP :) Thanks for your work!

    But I'm having some difficulties when it comes to performance. Somehow, the site loads really slow... It takes around 15s for every request to complete (TTFB). Is there any setting or configuration problem which I missed (either wp, maria or npm)? 

    I've already adjusted the CPU Pinning for this docker container but unraid doesn't even sweat when wp is handling something so I think it's somewhere between those containers....

    Thanks a lot in advance!

    Wonder if you got it to work? It shouldn't be needed to do any CPU pinning, as you pointed out it won't use much overhead at all. My server is a 8mb ram micro server and it doesn't grunt at all.

     

    But I am not sure why yours is slow, it shouldn't be and I doubt it is the connection between the containers. Is others working as they should?


    Sorry, i'm not sure!

  21. 1 hour ago, bar1 said:

    everytime i try to look for new plugins i get this message:

    An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.

     

    any ideas?

    just running local wordpress at home...

    I'm not sure, that problem usually indicates that WP can't reach wordpress.org server due to internet connection. I don't think it's a docker/unraid problem and the only problem I can think of is if you have changed network type (normal is "Bridge") so your container can't reach internet.

  22. 17 minutes ago, Nelinski said:

    Hi Kru-x,

     

    Thanks for the reply. Not sure if this is the exact way you meant, but this works and solves my problem.

     

    image.png.bd6944b8159bc3cff6001c86042c86c1.png

    That is exactly what I meant 🙂, now both "server" and "www" as subdomains get directed to your server.

     

    AND, not that I have anything to do with it but what's the deal with the "server" as the subdomain, not thinking about getting "unraid" on that one I hope. :~( 

     

    Kru-x

  23. 2 hours ago, Nelinski said:

    This docker is exactly what I'm looking for.

     

    I can get this working with my domain mydomain.com. But I can't get this working for subdomains like www.mydomain.com, server.mydomain.com etc.

     

    Only way I can get this working is by setting the "Domain Name" as mydomain.com when setting the docker up. I can't get it working for subdomains, by specifying "@", "*", "server" etc.

     

    How do you set this up?

    Hi Nelinski,

     

    This docker is only changing the ip address for your GoDaddys domain when your ip address changes and you only have one (per domain).

     

    You will have to add your subdomains in GoDaddy,

     

    Ex. I have my main domain "mysite.com" and my subdomains like "cloud.mysite.com", "music.mysite.com" etc. those subdomain's is added in Godaddy. GoDaddy is directing ANY request to *.mysite.com to my server's IP address where Nginx Proxy Manager takes care of the directing the request to appropriate container.

     

    Hope I understood right and that it helps, let me know,

     

    Kru-x

    • Thanks 1
×
×
  • Create New...