Link shortener

Currently reading
Link shortener

Rusty

Moderator
NAS Support
3,508
1,034
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Unfortunately Maria is not showing anything under Port Settings. (see imgs attached)
Also the yourls container stops every time the "refused connection"error occurs. :(
Do you have a volume map towards this file: /var/www/html/user/config.php? If so whats the content of it?
 
14
0
NAS
Synology DS918+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
I don't think so. This should show up under the container and Volume tab, right?
How can I add this config file, via the terminal?
I've got a docker folder on my share, should I place it there, or is this the wrong path?
 

Rusty

Moderator
NAS Support
3,508
1,034
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
I don't think so. This should show up under the container and Volume tab, right?
How can I add this config file, via the terminal?
I've got a docker folder on my share, should I place it there, or is this the wrong path?
Add it as another -v command. Also you can use this config as a sample.

 
14
0
NAS
Synology DS918+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
Like so?
chrome_GsrVG8eq3Z.png


Also @Telos thanks I've read your post, but I need some insights on the links.
chrome_fa4YusbYge.png


Maybe @Rusty would be up to help me in the PNs, if it's too disturbing.
But on another note, maybe this helps someone else also in the future.
 

Rusty

Moderator
NAS Support
3,508
1,034
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Correct

If you run yourls now, does it start? If not, check the content of that php file and look for:

Code:
$yourls_user_passwords = array(                                                                                                                                 
  getenv('YOURLS_USER') => getenv('YOURLS_PASS'),

Can you see if your username and password is setup under this block? What error do you get (check the continer log, using the Log tab)?
 
14
0
NAS
Synology DS918+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
no, I didn't change anything myself yet in the config file.
Should this automatically get overwritten when starting the container?
 

Rusty

Moderator
NAS Support
3,508
1,034
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
no, I didn't change anything myself yet in the config file.
Should this automatically get overwritten when starting the container?
If you configure it like you did it means that your version of config file will be the one yourls will use. This way you can see if the values are set and if needed, set them yourself. Try and run the container now and see what happens.
 
14
0
NAS
Synology DS918+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
Same error as before, but the values in the config file are still the "sample" ones.
Did I understand correctly, that the yourls container should overwrite them?
I'm currently in the process of altering them myself and try again.
 
14
0
NAS
Synology DS918+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
my config now looks like this (I've overwritten it myself and swapped the file on the DS).
Still the same error.
 

Attachments

  • chrome_51AoN0greu.png
    chrome_51AoN0greu.png
    5.3 KB · Views: 16
  • sublime_text_N6SUPjHnGN.png
    sublime_text_N6SUPjHnGN.png
    360.3 KB · Views: 15

Rusty

Moderator
NAS Support
3,508
1,034
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Host name should be ip address of your nas not ‘localhost’
 
14
0
NAS
Synology DS918+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
ok, yeah I've tried that but it did throw the same error.
I can check again tomorrow, not around the network today.
But thanks so much for your help until now! :)
 
14
0
NAS
Synology DS918+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
does the yourls container also have to run on the host network?
I did try both now, but either still throwing the "mysql connection refused error".
 

Rusty

Moderator
NAS Support
3,508
1,034
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
does the yourls container also have to run on the host network?
I did try both now, but either still throwing the "mysql connection refused error".
no there is no need for it to run on host network. It will be all the same. But the fact that you are still having the same problem could mean that there is a db problem (user, pass or db name).

We can go private at one point or I could TV to your side and help you with this if I had hands on.
 
1,818
758
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Since I have SnapPass up and running, I’d like to complement it with yourls. However, I’m having problems. I‘m using MySQL and it comes up fine in its container but yourls has problems connecting to it. No particular preference for the use of MySQL, just thought it would be strait forward (and it looks like it’s fine by itself). But I can use another DB if this is problematic.

Thank you for any help.

F61F608F-594B-4215-9E49-B7C8330FDC5E.jpeg92F9861C-88E6-4265-A047-81938CD63BD1.jpeg7C256ECA-54A8-4B48-B6E9-A642E66C7B23.jpeg4933EE5E-2F13-4F58-84B9-CD877FE92398.jpeg
 

Rusty

Moderator
NAS Support
3,508
1,034
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
@WST16 can you try and connect to your mysql instance using those credentials via lets say phpMyAdmin webui? Just to see if you can manage that specific DB with those credentials.
 
1,818
758
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
can you try and connect to your mysql instance using those credentials via lets say phpMyAdmin webui?
Thanks @Rusty
Installed. Same message!
Am I using the right port to connect to MySQL (32773)?

047CD08C-6832-443E-AD99-BB0D158439FB.jpeg0EE5EC4D-5375-401F-B859-5DD429FA76AF.jpegE85462AD-6EC4-43F1-A08E-B8B6EBD7A291.jpeg
 

Rusty

Moderator
NAS Support
3,508
1,034
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Configure variable MYSQL_ROOT_PASSWORD for your MySQL container and try and log in as root with that password.
 
1,818
758
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
It’s not doing it.
mysqli::real_connect(): (HY000/1045): Access denied for user 'root'@'172.17.0.1' (using password: YES)
 

Rusty

Moderator
NAS Support
3,508
1,034
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
On phpmyadmin container, separate the variables to 2 of them, one for port one for host

PMA_HOST
PMA_PORT

Try it that way, could be that the port inside the host variable might not be picked up.
 
1,818
758
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Should there be any other variables for MySQL? It’s clearly MySQL I’m having a problem with, not yourls.


80DEAB79-8D19-4615-A1AB-A421F84A62DE.jpeg
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top