amigenius Posted June 27, 2016 Share Posted June 27, 2016 Hi, my last gitlab update was March 09,2016. cya Quote Link to comment
Bungy Posted June 29, 2016 Author Share Posted June 29, 2016 My guess is you have an issue with the postgres container that happened around March. Check this out: https://github.com/sameersbn/docker-gitlab/issues/39#issuecomment-203117506 Quote Link to comment
amigenius Posted June 29, 2016 Share Posted June 29, 2016 Hi, many many thanks. added DB_EXTENSION=pg_trgm to the env of the postgresql container and now it works again cya Quote Link to comment
cyriouslydylan Posted July 2, 2016 Share Posted July 2, 2016 I moved some files around with krusader, can someone help me with the proper commands to rescan the file system? Also is it possible to get this set up so that when I'm logged into the server as the root user I can move the files around manually? Quote Link to comment
Bungy Posted July 2, 2016 Author Share Posted July 2, 2016 I moved some files around with krusader, can someone help me with the proper commands to rescan the file system? Also is it possible to get this set up so that when I'm logged into the server as the root user I can move the files around manually? I'm uncertain which docker you're asking for help with. Is this a general unraid question or related to one of the dockers that I support? Quote Link to comment
cyriouslydylan Posted July 2, 2016 Share Posted July 2, 2016 I moved some files around with krusader, can someone help me with the proper commands to rescan the file system? Also is it possible to get this set up so that when I'm logged into the server as the root user I can move the files around manually? I'm uncertain which docker you're asking for help with. Is this a general unraid question or related to one of the dockers that I support? Apologies, I forgot this was a general repository thread. My question is specifically related to the OwnCloud docker. And to clarify I moved files from one folder within a single user's share to a different folder under that same user. Quote Link to comment
Bungy Posted July 2, 2016 Author Share Posted July 2, 2016 I moved some files around with krusader, can someone help me with the proper commands to rescan the file system? Also is it possible to get this set up so that when I'm logged into the server as the root user I can move the files around manually? I'm uncertain which docker you're asking for help with. Is this a general unraid question or related to one of the dockers that I support? Apologies, I forgot this was a general repository thread. My question is specifically related to the OwnCloud docker. I've never performed these actions, but you may be able follow the instructions in this link to rescan the file system: https://doc.owncloud.org/server/8.0/admin_manual/configuration_server/occ_command.html#file-operations As far as moving the files around, you can probably move them like you have an run the command in the above link. Remember you'll have to do this from within the docker. Let me know if you have issues with any of that and I may be able to help. Quote Link to comment
cyriouslydylan Posted July 2, 2016 Share Posted July 2, 2016 I moved some files around with krusader, can someone help me with the proper commands to rescan the file system? Also is it possible to get this set up so that when I'm logged into the server as the root user I can move the files around manually? I'm uncertain which docker you're asking for help with. Is this a general unraid question or related to one of the dockers that I support? Apologies, I forgot this was a general repository thread. My question is specifically related to the OwnCloud docker. I've never performed these actions, but you may be able follow the instructions in this link to rescan the file system: https://doc.owncloud.org/server/8.0/admin_manual/configuration_server/occ_command.html#file-operations As far as moving the files around, you can probably move them like you have an run the command in the above link. Remember you'll have to do this from within the docker. Let me know if you have issues with any of that and I may be able to help. I saw this documentation, I think my issue is coming from running the command from inside the docker, I'm not 100% sure how to do that. If you could point me in the right direction of even how to figure that out that would be amazing, as my searching hasn't turned out to be fruitful. When i try "cd" /var/www/owncloud" I get no such file or directory. I have "/var/www/html/apps" mapped to "/mnt/cache/appdata/owncloud/apps", and config mapped to the same but config instead of apps. When I try and run "sudo -u www-data php occ list" I get "unknown user www-data" and "unable to initialize policy plugin" in each of those directories. I must just be looking in the wrong place but I can't find "occ" or "console.php" anywhere on my server. So I think I understand how to execute in the docker. I tried: docker exec -it owncloud bash which returns root@(numberstring):/var/www/html# but when I then try and run sudo -u www-data php occ it returns bash: sudo: command not found Quote Link to comment
Bungy Posted July 2, 2016 Author Share Posted July 2, 2016 I moved some files around with krusader, can someone help me with the proper commands to rescan the file system? Also is it possible to get this set up so that when I'm logged into the server as the root user I can move the files around manually? I'm uncertain which docker you're asking for help with. Is this a general unraid question or related to one of the dockers that I support? Apologies, I forgot this was a general repository thread. My question is specifically related to the OwnCloud docker. I've never performed these actions, but you may be able follow the instructions in this link to rescan the file system: https://doc.owncloud.org/server/8.0/admin_manual/configuration_server/occ_command.html#file-operations As far as moving the files around, you can probably move them like you have an run the command in the above link. Remember you'll have to do this from within the docker. Let me know if you have issues with any of that and I may be able to help. I saw this documentation, I think my issue is coming from running the command from inside the docker, I'm not 100% sure how to do that. If you could point me in the right direction of even how to figure that out that would be amazing, as my searching hasn't turned out to be fruitful. When i try "cd" /var/www/owncloud" I get no such file or directory. I have "/var/www/html/apps" mapped to "/mnt/cache/appdata/owncloud/apps", and config mapped to the same but config instead of apps. When I try and run "sudo -u www-data php occ list" I get "unknown user www-data" and "unable to initialize policy plugin" in each of those directories. I must just be looking in the wrong place but I can't find "occ" or "console.php" anywhere on my server. So I think I understand how to execute in the docker. I tried: docker exec -it owncloud bash which returns root@(numberstring):/var/www/html# but when I then try and run sudo -u www-data php occ it returns bash: sudo: command not found This worked for me: docker exec -it owncloud bash chsh -s /bin/bash www-data su - www-data cd /var/www/html php occ files:scan That will show you the options for scanning files. When done, make sure you run this to return the www-data user to normal chsh -s /usr/sbin/nologin www-data Quote Link to comment
cyriouslydylan Posted July 2, 2016 Share Posted July 2, 2016 This worked for me: docker exec -it owncloud bash chsh -s /bin/bash www-data su - www-data cd /var/www/html php occ files:scan That will show you the options for scanning files. When done, make sure you run this to return the www-data user to normal chsh -s /usr/sbin/nologin www-data That all worked for me until I got to the last step Console has to be executed with the user that owns the file config/config.php Current user: www-data Owner of config.php: Try adding 'sudo -u ' to the beginning of the command (without the single quotes) It looks like I haven't set an owner for the config.php? Also, is the www-data user something that exists in all owncloud installs, because I don't have a user named that. Also when I try and do the last step, it asks for a password, which I don't have for a "www-data" user, so I get "authentication failure" Quote Link to comment
Bungy Posted July 2, 2016 Author Share Posted July 2, 2016 Which docker container are you using? The official one or l3iggs? Quote Link to comment
cyriouslydylan Posted July 2, 2016 Share Posted July 2, 2016 The official one, from your repository - Installed through community applications. Quote Link to comment
Bungy Posted July 2, 2016 Author Share Posted July 2, 2016 Then yeah the www-data user is automatically created. It looks like you didn't successfully switch your console to the www-data user which is what happens in that third command I sent you. Double check for typos. Quote Link to comment
cyriouslydylan Posted July 3, 2016 Share Posted July 3, 2016 Then yeah the www-data user is automatically created. It looks like you didn't successfully switch your console to the www-data user which is what happens in that third command I sent you. Double check for typos. user@UNRAIDNAME:~# docker exec -it owncloud bash user@'string':/var/www/html# chsh -s /bin/bash www-data user@'string':/var/www/html# su - www-data www-data@'string':~$ cd /var/www/html www-data@'string':~/html$ php occ files:scan Console has to be executed with the user that owns the file config/config.php Current user: www-data Owner of config.php: Try adding 'sudo -u ' to the beginning of the command (without the single quotes) This is copy and pasted right out of the terminal (I'm using PuTTY to ssh). I just edited out the username and teh string of numbers and letters after the '@' (I'm not sure if thats unique to my server and someone could ID mine from it somehow) Quote Link to comment
Bungy Posted July 3, 2016 Author Share Posted July 3, 2016 Hmm sounds like the owner of your config.php file is off. Try running this from within the docker as the root user: chown www-data:www-data /var/www/html/config/config.php Then retry the previous commands. Quote Link to comment
cyriouslydylan Posted July 3, 2016 Share Posted July 3, 2016 Hmm sounds like the owner of your config.php file is off. Try running this from within the docker as the root user: chown www-data:www-data /var/www/html/config/config.php Then retry the previous commands. chown www-data:www-data /var/www/html/config/config.php chown: invalid user: ‘www-data:www-data’ This was while ssh logged into the server as my root user Quote Link to comment
Bungy Posted July 3, 2016 Author Share Posted July 3, 2016 Gotcha, that should have been run from inside the docker. Sorry for that problem. If running from unraid do chown sshd:sshd PATH_TO_CONFIG.PHP Your path will be specific to where you keep your config.php file, but probably something like /mnt/users/appdata/owncloud/config/config.php Quote Link to comment
cyriouslydylan Posted July 3, 2016 Share Posted July 3, 2016 Gotcha, that should have been run from inside the docker. Sorry for that problem. If running from unraid do chown sshd:sshd PATH_TO_CONFIG.PHP Your path will be specific to where you keep your config.php file, but probably something like /mnt/users/appdata/owncloud/config/config.php You f**king did it you glorious bastard. Thank you SO much for your help. I should have recognized that it was a command from inside the docker when I saw the "/var/www/...". Seriously, thank you so much. Quote Link to comment
Bungy Posted July 3, 2016 Author Share Posted July 3, 2016 No problem! I'm glad it worked out for you! Quote Link to comment
cyriouslydylan Posted July 4, 2016 Share Posted July 4, 2016 No problem! I'm glad it worked out for you! The only issue I seem to be having is with the last command you gave me chsh -s /usr/sbin/nologin www-data It asks me for a password, and then returns: chsh: PAM: Authentication failure Quote Link to comment
Bungy Posted July 4, 2016 Author Share Posted July 4, 2016 You can ignore that command then. If you remove and recreate the container, everything will be set back to normal. It's more of a minor security concern. Quote Link to comment
peter_sm Posted July 13, 2016 Share Posted July 13, 2016 nzbgetvpn We need this docker to be updated according the new PIA certs. See binhex VPN dockers //Peter Quote Link to comment
grasfer Posted July 31, 2016 Share Posted July 31, 2016 Hello, anyone know how to sudo gitlab-ctl reconfigure gitlab docker? Need to reconfigure after editing gitlab.yml. Trying to disable rack attack. // Gras Quote Link to comment
ponack Posted August 2, 2016 Share Posted August 2, 2016 nzbgetvpn We need this docker to be updated according the new PIA certs. See binhex VPN dockers //Peter Indeed! Bungy are you able to do this? Thanks, and so far I have been loving the NZBGETVPN Docker you've provided. Quote Link to comment
Bungy Posted August 2, 2016 Author Share Posted August 2, 2016 nzbgetvpn We need this docker to be updated according the new PIA certs. See binhex VPN dockers //Peter Indeed! Bungy are you able to do this? Thanks, and so far I have been loving the NZBGETVPN Docker you've provided. I put a bit of time into it, but didn't get very far. I ran into a self-signed cert issue, and I ran out of time to work on it. I'm a bit swamped with work at the moment, so I can't quite do this right now, but maybe over the weekend. I want to switch to binhex's baseimage and use his awesome openvpn setup, but I'll have to postpone until things calm down a bit. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.