Jump to content

gfjardim

Community Developer
  • Posts

    2,213
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gfjardim

  1. So I'm having the same problem. I looked to make sure that the ip/port settings are correct. I even redeployed the docker several times, and on redeploy I'm able to connect to CrashPlan for a while. Then I'm not able to reconnect, the launcher on Windows just stays open, but does not say unable to connect to server. And it will actually stay open for a while and close when I shutdown the docker. So I know there is some sort of connection being formed. The only thing that I've come across is: http://support.code42.com/CrashPlan/Latest/Troubleshooting/Unable_To_Connect_To_The_Backup_Engine#Linux_Solution And I noticed in the docker file that one language is not en_US like the rest. I don't know if this is related or not as I haven't figured out yet how to manually edit the docker file. Ok, found the potential flaw, now I'll try to solve it.
  2. Ok, I think I did it: install.sh #!/bin/bash OWNCLOUD_VERSION="8.0.2" ######################################### ## ENVIRONMENTAL CONFIG ## ######################################### # Configure user nobody to match unRAID's settings export DEBIAN_FRONTEND="noninteractive" usermod -u 99 nobody usermod -g 100 nobody usermod -d /home nobody chown -R nobody:users /home # Disable SSH rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh ######################################### ## REPOSITORIES AND DEPENDENCIES ## ######################################### # Repositories add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty universe multiverse" add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse" # Install Dependencies apt-get update -qq apt-get install -qy php5-cli \ php5-gd \ php5-pgsql \ php5-sqlite \ php5-mysqlnd \ php5-curl \ php5-intl \ php5-mcrypt \ php5-ldap \ php5-gmp \ php5-imagick \ php5-fpm \ php5-gd \ smbclient \ nginx \ openssl \ wget \ bzip2 ######################################### ## FILES, SERVICES AND CONFIGURATION ## ######################################### # NGINX mkdir -p /etc/service/nginx cat <<'EOT' > /etc/service/nginx/run #!/bin/bash umask 000 exec /usr/sbin/nginx -c /etc/nginx/nginx.conf EOT # PHP-FPM mkdir -p /etc/service/php-fpm cat <<'EOT' > /etc/service/php-fpm/run #!/bin/bash umask 000 exec /usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf EOT # CONFIG cat <<'EOT' > /etc/my_init.d/config.sh #!/bin/bash # Fix the timezone if [[ $(cat /etc/timezone) != $TZ ]] ; then echo "$TZ" > /etc/timezone dpkg-reconfigure -f noninteractive tzdata sed -i -e "s#;date.timezone.*#date.timezone = ${TZ}#g" /etc/php5/fpm/php.ini fi # Set port if [[ -z ${PORT_HTTPS} ]]; then PORT_HTTPS="8000" fi sed -i -e "s|{PORT_HTTPS}|${PORT_HTTPS}|" /etc/nginx/sites-enabled/owncloud.site if [[ -f /var/www/owncloud/data/server.key && -f /var/www/owncloud/data/server.pem ]]; then echo "Found pre-existing certificate, using it." cp -f /var/www/owncloud/data/server.* /opt/ else if [[ -z $SUBJECT ]]; then SUBJECT="/C=US/ST=CA/L=Carlsbad/O=Lime Technology/OU=unRAID Server/CN=yourhome.com" fi echo "No pre-existing certificate found, generating a new one with subject:" echo $SUBJECT openssl req -new -x509 -days 3650 -nodes -out /opt/server.pem -keyout /opt/server.key \ -subj "$SUBJECT" ls /opt/ cp -f /opt/server.* /var/www/owncloud/data/ fi if [[ ! -d /var/www/owncloud/data/config ]]; then mkdir /var/www/owncloud/data/config fi if [[ -d /var/www/owncloud/config ]]; then rm -rf /var/www/owncloud/config ln -sf /var/www/owncloud/data/config/ /var/www/owncloud/config fi chown -R nobody:users /var/www/owncloud EOT #PHP-FPM config cat <<'EOT' > /etc/php5/fpm/pool.d/www.conf [global] daemonize = no [www] user = nobody group = users listen = /var/run/php5-fpm.sock listen.mode = 0666 pm = dynamic pm.max_children = 50 pm.start_servers = 3 pm.min_spare_servers = 2 pm.max_spare_servers = 4 pm.max_requests = 500 php_admin_value[upload_max_filesize] = 100G php_admin_value[post_max_size] = 100G php_admin_value[default_charset] = UTF-8 EOT # NGINX config cat <<'EOT' > /etc/nginx/nginx.conf user nobody users; daemon off; worker_processes 4; pid /run/nginx.pid; events { worker_connections 768; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; gzip on; gzip_disable "msie6"; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } EOT # NGINX site rm -f /etc/nginx/sites-enabled/default cat <<'EOT' > /etc/nginx/sites-enabled/owncloud.site upstream php-handler { server unix:/var/run/php5-fpm.sock; } server { listen 8000 ssl; server_name ""; ssl_certificate /opt/server.pem; ssl_certificate_key /opt/server.key; # Force SSL error_page 497 https://$host:{PORT_HTTPS}$request_uri; # Path to the root of your installation root /var/www/owncloud; client_max_body_size 100G; fastcgi_buffers 64 4K; rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect; rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect; rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect; index index.php; error_page 403 /core/templates/403.php; error_page 404 /core/templates/404.php; location = /robots.txt { allow all; log_not_found off; access_log off; } location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README) { deny all; } location / { # The following 2 rules are only needed with webfinger rewrite ^/.well-known/host-meta /public.php?service=host-meta last; rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; rewrite ^/.well-known/carddav /remote.php/carddav/ redirect; rewrite ^/.well-known/caldav /remote.php/caldav/ redirect; rewrite ^(/core/doc/[^\/]+/)$ $1/index.html; try_files $uri $uri/ index.php; } location ~ \.php(?|/) { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_pass php-handler; } # Optional: set long EXPIRES header on static assets location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { expires 30d; # Optional: Don't log access to assets access_log off; } } server { listen 8001; server_name ""; # Path to the root of your installation root /var/www/owncloud; client_max_body_size 100G; fastcgi_buffers 64 4K; rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect; rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect; rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect; index index.php; error_page 403 /core/templates/403.php; error_page 404 /core/templates/404.php; location = /robots.txt { allow all; log_not_found off; access_log off; } location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README) { deny all; } location / { # The following 2 rules are only needed with webfinger rewrite ^/.well-known/host-meta /public.php?service=host-meta last; rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; rewrite ^/.well-known/carddav /remote.php/carddav/ redirect; rewrite ^/.well-known/caldav /remote.php/caldav/ redirect; rewrite ^(/core/doc/[^\/]+/)$ $1/index.html; try_files $uri $uri/ index.php; } location ~ \.php(?|/) { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_pass php-handler; } # Optional: set long EXPIRES header on static assets location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { expires 30d; # Optional: Don't log access to assets access_log off; } } EOT chmod -R +x /etc/service/ /etc/my_init.d/ ######################################### ## INSTALLATION ## ######################################### # Install ownCloud mkdir -p /var/www/ wget -qO - "https://download.owncloud.org/community/owncloud-${OWNCLOUD_VERSION}.tar.bz2" | tar -jx -C /var/www ######################################### ## CLEANUP ## ######################################### # Clean APT install files apt-get clean -y rm -rf /var/lib/apt/lists/* /var/cache/* /var/tmp/* The PORT_HTTPS variable will change the redirection port. I couldn't find a way nginx would automatically detect the container external port. Please try and let me know. Since my "Movies Disaster", I don't have a running test environment.
  3. Well, I can change it, but you're the first complaining about this. I'll make the port adjustable. PS: Couldn't make it work without breaking the WebUI address on the unRAID webui. Any ideas?
  4. It's the container. Port 8000 is hardcoded, no redirection is allowed because HTTPS is enforced on that port. There's a HTTP service on port 8001 that would allow port redirection.
  5. Thanks. I've patched this a while ago, just waiting bonienl to release the update.
  6. Along with my earlier question how do I turn off https forcing? I'm working on getting this setup behind my entire public facing reverse proxy with an actual signed cert I have, so I don't want nginx/owncloud creating and forcing https at this layer. In my latest update, I create a plain text service on port tcp 8001. After my second update (removal of php5-acpu), I haven't experienced any 502/504 timeouts yet, so let's hope it has been fixed.
  7. Great - that fixed it! Tony Nice, that goes to the FAQ.
  8. This was the cause of php-fpm stalls: https://bugs.launchpad.net/ubuntu/+source/php-apcu/+bug/1374892 Is there a way to fix that by a docker exec something to upgrade that package? or it's harmless? It's a recommended package, not a required one, so I will remove it from the next update until Ubuntu put version 4.0.7 on the repository.
  9. This was the cause of php-fpm stalls: https://bugs.launchpad.net/ubuntu/+source/php-apcu/+bug/1374892 Try this: docker exec ownCloud sudo -u nobody -s /bin/bash -c "php /var/www/owncloud/occ upgrade" This will upgrade ownCloud from the terminal, and avoid the webgui timeouts.
  10. 1) The plugin suggest the "LABEL" as the script name, but you can choose to change it in the input. The LABEL variable is the label of the partition, if it exist, or the full serial number if it doesn't. 2) This could be tricky to archive. Maybe a "Check" in a new window?
  11. Ok, I added the ability to run scripts on disk mount/umount. Users have to click on the "Script" icon, define a name on the editor and click "Save". If You want to start with a new script, you can click "Default Script" and a template will be inserted on the text area. In your case, you could try something like this: #!/bin/bash PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin ## Available variables: # AVAIL : available space # USED : used space # SIZE : partition size # SERIAL : disk serial number # ACTION : if mounting, ADD; if unmounting, REMOVE # MOUNTPOINT : where the partition is mounted # FSTYPE : partition filesystem # LABEL : partition label # DEVICE : partition device, e.g /dev/sda1 beep_imperial() { for i in $(seq 1 ${1}); do beep -f 392 -l 450 -r 3 -D 150 -n -f 311.13 -l 400 -D 50 \ -n -f 466.16 -l 100 -D 50 -n -f 392 -l 500 -D 100 \ -n -f 311.13 -l 400 -D 50 -n -f 466.16 -l 100 -D 50 \ -n -f 392 -l 600 -D 600 -n -f 587.33 -l 450 -r 3 -D 150 \ -n -f 622.25 -l 400 -D 50 -n -f 466.16 -l 100 -D 50 \ -n -f 369.99 -l 500 -D 100 -n -f 311.13 -l 400 -D 50 \ -n -f 466.16 -l 100 -D 50 -n -f 392 -l 500 -D 100 sleep 2 done } DESTINATION="/mnt/user/Pictures/Recent/" case $ACTION in 'ADD' ) // do your stuff here rsync -a "${MOUNTPOINT}" "${DESTINATION}/" && \ newperms "${DESTINATION}" && \ /usr/local/sbin/usb_umount $DEVICE && beep_imperial 1 & ;; 'REMOVE' ) // do your stuff here echo "Removed" ;; esac Scripts are defined using their serial number, so if your card reader export it's own serial instead of the card's serial, every card inserted will run the same script.
  12. SNAP all the way. This plugin doesn't support custom commands, so it's useless to your scenario. This may change in the future, but it's time to mature the basic first.
  13. I'm using the latest version of ntfs-3g, so yes, it's safe.
  14. * Notice: our esteemed plugin author gfjardim has been out of touch for awhile, so caution is advised. The latest version of this plugin (from the Download link below the Demonstration video) has a few issues (for some users, not all), so it is recommended to install the newest version from the new Topic listed below. * "This plugin is no longer being supported from this support thread. There is a modified version of unassigned devices available here: >>>>>>- - - http://lime-technology.com/forum/index.php?topic=45807.0. - - - <<<<<< * This modified version works on all V6 versions and some fixes have been applied. Please post about this plugin on the new thread." * If you have a copy of the plugin already installed, uninstall it, then reboot, before installing the replacement plugin. * gfjardim, PLEASE remove all of this, retake control! Then PM squid to remove the mod comment in CA This plugin uses UDEV to mount and share disks that are not part of your unRAID array. Available devices are listed under "Main/Unassigned Devices" tab. Demonstration video: [glow=red,2,300]Download Link:[/glow] Link: https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/plugins/unassigned.devices.plg [glow=red,2,300]FAQ:[/glow] Q) Which filesystems are supported by this plugin? A) Currently, XFS, ReiserFS, VFAT, EXT4 and BTRFS are supported via unRAID's own tools; NTFS is supported through NTFS-3G (v.2014.2.15); HFS+ is supported through original kernel module (and it's own limitations, like no journaling) plus hfsprogs v.332.25; finally, EXFAT is supported through fuse-exfat v.1.1.0 and exfat-utils v.1.1.1. Q) Is there a way to verify my partition for errors? A) Yes, there is. You can click on the icon while the partition is unmounted (the exception is BTRFS which check requires a mounted partition). A new window will appear with the result of a read-only check. If needed, there is a "Run with CORRECT flag" button that will launch a read/write instance of the filesystem check utility. Q) Is this plugin suitable to mount a disk that can be used to store VMs or Docker images? A) Right now (v6 beta15), there's a race condition between those services and this plugin. LT will postpone Docker and VMs to a latter event, so there won't be any problems. I'll keep you posted about this. PS: Since unRAID v6.0-rc1, it's safe to use a disk managed by this plugin to store VM's and Docker images. Example script for those who mount disks used by Docker and/or VMs: #!/bin/bash PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin ## Available variables: # AVAIL : available space # USED : used space # SIZE : partition size # SERIAL : disk serial number # ACTION : if mounting, ADD; if unmounting, REMOVE # MOUNTPOINT : where the partition is mounted # FSTYPE : partition filesystem # LABEL : partition label # DEVICE : partition device, e.g /dev/sda1 # OWNER : "udev" if executed by UDEV, otherwise "user" case $ACTION in 'ADD' ) // do your stuff here /usr/local/emhttp/plugins/dynamix.vm.manager/event/started /usr/local/emhttp/plugins/dynamix.docker.manager/event/started ;; 'REMOVE' ) // do your stuff here /usr/local/emhttp/plugins/dynamix.vm.manager/event/stopping_svcs /usr/local/emhttp/plugins/dynamix.docker.manager/event/stopping_svcs ;; esac Q) Can I set commands to run when my disk is plugged in? Yes, you can. See the video below:
  15. Not yet, this bug is proving to be difficult to debug.
  16. Can you post the output for these?
  17. Your sysfs structure is very different from mine. Let's try some other commands: ls -la `dirname $(find /sys/devices -iname "fan*_input")` ls -la `dirname $(find /sys/devices -iname "pwm[0-9]")`
  18. Please post the result of this command: find -L /sys/class/hwmon/ -maxdepth 5 -iname "pwm[0-9]" 2>/dev/null Here you go: /sys/class/hwmon/hwmon1/device/pwm1 /sys/class/hwmon/hwmon1/device/pwm2 /sys/class/hwmon/hwmon1/device/pwm3 Those are the three possible pwm controls from my it87 board. Ok, I need one last command output: find /sys/devices -iname "hwmon[0-9]" -exec echo {} \; -exec ls -la {} \;
  19. Please post the result of this command: find -L /sys/class/hwmon/ -maxdepth 5 -iname "pwm[0-9]" 2>/dev/null
  20. Guys, I'm traveling until this Sunday. I will investigate this as soon as possible.
  21. You don't have a my-ownCloud.xml file under "/boot/config/plugins/dockerMan/templates-user/" directory.
×
×
  • Create New...