pokmiuhy

Members
  • Posts

    45
  • Joined

  • Last visited

Posts posted by pokmiuhy

  1. 12 minutes ago, ich777 said:

    That's definitely not the case... Some routers need to be restarted some times.

     

    Please delete the forwarding of the other ports, this is a security risk!!!
    I always provide the necessary ports in my templates and you never need to forward more ports, even if other sites suggests that.

    Otherwise I won't release the containers to the public.

     

    Another side note even if you forward these ports they point to nothing (but it's still a security risk) because if they are not forwarded in the template they can't be reached anyways.

     

    Please trust me on that, I do my research on that and test every single container before releasing it.

    Thanks for the help. I just fixed the ports and limited to what's in the container.

    • Like 1
  2. 1 minute ago, ich777 said:

    Why do you forward that many ports?

    That is definitely wrong...

    The only ports which need to be forwarded are the ones listed in the container template:

    7777/UDP

    15777/UDP

    15000/UDP

     

    You don't need any other ports.

     

    I assume you are trying to connect to your public IP from you LAN correct? If yes, I had people where the hair pin NAT doesn't work correctly and therefore they weren't able to connect through the public IP from their LAN but from outside their LAN it was working fine.

     

    It could also be a issue with your ISP that it blocks some ports <- some provider are doing that but this is a really rare case.

     

    I had found those on some other forums to forward. I'll adjust them though..rather have the absolute minimum # of ports forwarded.

  3. 5 minutes ago, pokmiuhy said:

     

    I'm trying to access via public IP. The ports I found to forward I set up below. I just tried to access via local IP and no issue. Could it be a speed issue?

    Untitled.png

     

    I've been so focused on public connection that I didn't try to connect via my local IP (thanks for the suggestion!). Seems like doing that and having it save is now letting me connect via public IP. Must be something with my connection speed and the size of the initial save....that's all I can figure.

  4.  

    7 minutes ago, ich777 said:

    Are you trying to connect with your public IP or your local IP?

     

    Are you sure the correct ports with the appropriate protocol are forwarded in your Firewall?

    Have you yet tried if you can connect with your local IP?

    I'm trying to access via public IP. The ports I found to forward I set up below. I just tried to access via local IP and no issue. Could it be a speed issue?

    Untitled.png

  5. I'm having trouble connecting to the Satisfactory server that I have running. I can get the server to show up in Server Manager of the game, but whenever I try to connect I get this error. I've searched high and low but haven't found a solution that works.

     

    I did add these two lines to the Engine.ini file based on feedback I found in other forums but still no luck...any ideas or anyone else have the same issue they were able to resolve?

    InitialConnectTimeout=180.0
    ConnectionTimeout=120.0

     

    Screenshot 2023-03-24 090540.jpg

  6. I'm trying to get LuckyBackup to run weekly at a certain time. So far, i get this error every time it tries to run. I force updated the container and haven't been able to get it to run. anyone else have this issue?

     

    No protocol specified
    qt.qpa.xcb: could not connect to display :0
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

    Aborted

  7. I apologize if this has already been answered...I wasn't able to find it in my searching. In short, I have LuckyBackup working via SSH from one server to another. So no issue there. My current setup is Unraid 6.9.2 on both machines with the latest container.

     

    Host machine folder structure is /mnt/user/downloads

    I am trying to copy that over to the new machine at /mnt/user/downloads.  however, no matter what I do it creates /mnt/user/downloads/downloads.

     

    I've tried changing the Source line in LuckyBackup to /mnt/user/downloads/ but it ultimately removes the trailing slash.

     

    I'm at a loss...any ideas?

     

  8. 2 hours ago, ich777 said:

    I would recommend that you create a issue on their Github: Click

     

    You can also try to set the tag to 1.1.39 in the template by simply adding :1.1.39 to the repository, but keep in mind if you do it like that you have to update it manually every time a update is released.

    Thanks, I'll create an issue. When i check the log file the first line is:

     0.032 2021-09-10 00:29:21; Factorio 1.1.38

    So it's showing that it's an older version, but the docker is showing up to date on Unraid. Is there a way to force an update even if it doesn't show one is available? I'm not too familiar with how it works on Unraid.

  9. On 10/21/2019 at 5:55 PM, David Ramones said:

    I have the same problem. Did you ever get this resolved?

     

     

    You can use the ALTER command to change the encryption of the password to mysql_native_password instead of the latest authentication plugin caching_sha2_password. I executed the below and it's now working. Not sure if this is the right way or just a work around, but it's working for me.

     

    ALTER USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

     

  10. With MySQL 8, I'm getting the below error. It's a known issue but I can't figure out a way to change the default back to mysql_native_password. Is there a way via extra parameters or post arguments? 

    The server requested authentication method unknown to the client [caching_sha2_password]

     

  11. 1 hour ago, Sn3akyP3t3 said:

    Docker does have its own IP address, but its not exposed.  You're basically left with two feasible options.  Set your network to bridge mode and then you can expose your port as you seem to have already done.  Then you access your Mysql instance at the IP address of your UnRaid server, example 192.168.100.11:3306, with the port you specified.  This will be useful for you to validate your migration before you pull in your applications if that is your intent.  If you proceed to dockerize your applications then you can use Docker's built-in link container capabilities.  This you would basically enable linking by putting something similar to this on the Extra Parameters section of Unraid: --link postgres:postgresql.  The syntax is basically the flag --link followed by the name of your running instance with a colon separating them and then the name of the instance you wish to be referenced internally within the dockerized container which doesn't really matter.  Once you've done that you can log into the dockarized container and view the linked environment variables to confirm settings by running "printenv" from the console.

    Attached is a photo where you can check the link settings have applied.  I use mariadb instead of Mysql, but that doesn't matter.

     

    2019-09-19 20_33_03-Window.png

    The ultimate plan is to dockerize the applications. I'll definitely have to mess with the linking you mention. Totally new to this...hoping to make my life easier in the end. Having dedicated VM's is a pain to keep updated. 

  12. 10 hours ago, Bungy said:

    Not that I know of. Containers generally run under the host's network stack. They don't work like virtual machines where each machine can have its own ip address.

    I think that's where I've been hung up...I keep thinking as if it's similar to a VM. 

     

    I set it to "host" and exposed the port. Connected right up. Thanks!

  13. 1 hour ago, Bungy said:

    Set the network type back to the default. Then you should be able to connect to it using the host unraid system's ip address and port 3306

    Is there a way to set it to its own IP address? The benefit for me would be not having to change other applications. They all point to this IP address. 

  14. excuse my lack of knowledge as I'm brand new to docker. I'm trying to migrate to docker from dedicated linux vm's. first thing on my list is MySQL as it is the center point for quite a few other services. I downloaded and installed the bungy mysql docker, set the network as custom: eth0 and set the ip. I can ping the IP and get responses, however, I cannot connect via mysql workbench. Given my complete lack of Docker knowledge, I'm stuck. I've searched the web and my google foo is running low. Need some help - thanks in advance. 

     

    I'm on unraid 6.7.2.

    unraid.png

  15. hdtemp.sh

     

    Script for monitoring HD temperatures via smartctl.

     

    ** A working influxdb setup is required - see opening post **

     

    **Disclaimer: I am not a programmer and thus please use the scripts at your own risk. Please read the script to understand what it is trying to achieve. There is no error trapping in it and no check to see if it is already running, so in theory if the script running time is longer than the crontab interval you could end up in a ever increasing system load and potentially crash the server.**

     

    This uses smartctl to get the information output from the SMART for the device. Needless to say SMART needs to be turned on for the device otherwise it won't work. But I can't think of a reason why you wouldn't want to have SMART turned off in any case.

     

    You need to edit the script to add the devices you want measuring in the $tagsArray statement. I'm not clever enough to write a script that does it automatically. And you will need to change the parameters mentioned in the first post in the curl statement. You will need to use a unix type editor to do it e.g. Notepad++ such that the correct line endings are in the file. Save them somewhere that crontab can access them (mine are in /mnt/cache/appdata/myscripts/)

     

    #!/usr/bin/php
    <?php
    
    $tagsArray = array(
    "/dev/sdc", 
    "/dev/sdd", 
    "/dev/sde", 
    "/dev/sdg", 
    "/dev/sdh", 
    "/dev/sdi", 
    "/dev/sdj", 
    "/dev/sdb"
    );
    
    //do system call and parse output for tag and value
    
    foreach ($tagsArray as $tag) {
    
    $call = "smartctl -A ".$tag;
    $output = shell_exec($call);
    preg_match("/Temperature.+(\d\d)$/im", $output, $match);
    
    //send measurement, tag and value to influx
    
    sendDB($match[1], $tag);
    
    }
    
    //end system call
    
    
    //send to influxdb - you will need to change the parameters (influxserverIP, Tower, us-west) in the $curl to your setup, optionally change the telegraf to another database, but you must create the database in influxdb first. telegraf will already exist if you have set up the telegraf agent docker.
    
    function sendDB($val, $tagname) {
    
    $curl = "curl -i -XPOST 'http://influxServerIP:8086/write?db=telegraf' --data-binary 'HDTemp,host=Tower,region=us-west "
    .$tagname."=".$val."'";
    $execsr = exec($curl);
    
    }
    
    
    ?>

     

    Since HD temp doesn't change that quickly I have made the script run every 5 minutes in crontab:

     

    */5 * * * * /mnt/cache/appdata/myscripts/hdtemp.sh &>/dev/null 2>&1

     

    Grafana does not need any specific setup to show this metric since it is a simple value. The measurement HDTemp will appear in the list of measurements to select.

     

     

    Awesome script! Thank you.

     

    Curious if anyone else is having the same issues that I am...That being, I'm only getting data for two drives. No matter what order I put them in the array, I only get temp data for sda & sdb.

     

    edit: Want to add that SMART is enabled on all drives and when I run the command manually, I get data back.

     

     

    root@Hollywood:~# smartctl -A /dev/sde
    smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.1.18-unRAID] (local build)
    Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
    
    === START OF READ SMART DATA SECTION ===
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x000f   108   099   006    Pre-fail  Always       -       20659920
      3 Spin_Up_Time            0x0003   097   097   000    Pre-fail  Always       -       0
      4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       710
      5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
      7 Seek_Error_Rate         0x000f   078   060   030    Pre-fail  Always       -       61758002
      9 Power_On_Hours          0x0032   071   071   000    Old_age   Always       -       25798
    10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
    12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       298
    183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
    184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
    187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
    188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0 0 0
    189 High_Fly_Writes         0x003a   099   099   000    Old_age   Always       -       1
    190 Airflow_Temperature_Cel 0x0022   080   061   045    Old_age   Always       -       20 (Min/Max 17/22)
    191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
    192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       281
    193 Load_Cycle_Count        0x0032   001   001   000    Old_age   Always       -       768366
    194 Temperature_Celsius     0x0022   020   040   000    Old_age   Always       -       20 (0 14 0 0 0)
    197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
    198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
    199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
    240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       17417h+18m+05.179s
    241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       8300941312
    242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       48794130453
    
    root@Hollywood:~# smartctl -A /dev/sda
    smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.1.18-unRAID] (local build)
    Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
    
    === START OF READ SMART DATA SECTION ===
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
      3 Spin_Up_Time            0x0027   177   176   021    Pre-fail  Always       -       6133
      4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       311
      5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
      7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
      9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       3014
    10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
    11 Calibration_Retry_Count 0x0032   100   253   000    Old_age   Always       -       0
    12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       42
    192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       16
    193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       1004
    194 Temperature_Celsius     0x0022   128   119   000    Old_age   Always       -       22
    196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
    197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
    198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
    199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
    200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0